Results for "fasta"

Wire posts

  • samtools view -Sb pilonCor_round1.fasta.out.sam | samtools sort -m 4G -@ 40 -o pilonCor_round1.fasta.out.sorted.bam - && samtools index -@ 40 pilonCor_round1.fasta.out.sorted.bam #SAM2BAM

    1927 days ago

  • One liner to remove the description information from a fasta file and just keep the identifier $ perl -p -i -e 's/>(.+?) .+/>$1/g' sample1.fa #clean #header #fasta

    1922 days ago

  • Fastq 2 fasta convert $ sed '/^@/!d;s//>/;N' sample1.fq > sample1.fa #fastq2fasta #fastqtwofasta

    1922 days ago

  • Extract fasta with pattern $ perl -n -e '$on=(/^>(A)/) if (/^>/); print $_ if ($on);' pilonCor_round1.fasta > A_set.fa #Pattern #Extract #Fasta

    1921 days ago

  • #Rename the #fasta #header and #keep first $ perl -ne 'if (/^(>\S+)/){print "$1\n";}else{print $_;}' realTestDATA.fa > realTestDATA_headerCorrected.fa #Perl

    1644 days ago

  • Multifasta 2 singlefasta cat toy.fasta| awk '{ if (substr($0, 1, 1)==">" {filename=(substr($0,2) ".fa")} print $0 > filename }' #Split #fasta #multifasta

    1634 days ago

  • Perl onliner to add string to each of the fasta header. $ perl -p -e 's/^(>.*)$/$1-origin/g' in.fasta > out.fasta #String #Header #Fasta

    1630 days ago

  • Grep a term from a file in Linux. $ grep -A1 "term" input.fasta > output.fasta #Grep #Term

    1610 days ago

  • #Convert #FASTQ to FASTA and set bases of #quality lower than 20 to N $ seqtk seq -aQ64 -q20 -n N IN.fastq > OUT.fasta

    1000 days ago

  • Count number of fasta sequence $ awk '/^>/ { f = !a[$0]++ } f' aaaa.fa > bbbb.fa #count #fasta #oneliner

    988 days ago