Results for "fasta"

Wire posts

  • Fasta sequence length: awk '/^>/ {if (seqlen){print seqlen}; print ;seqlen=0;next; } { seqlen += length($0)}END{print seqlen}' file.fa #Length #Linux #OneLiner

    2656 days ago

  • Get the fasta sequence of the coordinates http://bedtools.readthedocs.io/en/latest/content/tools/getfasta.html #Fasta #Bed #Coordinates #Bedtools

    2612 days ago

  • #Extract a #sequence from #multi-fasta file: $ perl -ne 'if(/^>(\S+)/){$c=grep{/^$1$/}qw(id1 id2)}print if $c' fasta.file

    2607 days ago

  • fastq to fasta convertor $ sed -n '1~4s/^@/>/p;2~4p' test.fastq > test.fasta #Convert #Fasta #Fastq #fa #fq

    2547 days ago

  • To add something to end of all header lines: $ sed 's/>.*/&WHATEVERYOUWANT/' file.fa > outfile.fa #Add #Fasta

    2568 days ago

  • To clean up a fasta file so only first column of the header is outputted:$ awk '{print $1}' file.fa > output.fa #Sed #Clean #Header #Fasta

    2568 days ago

  • Rename/number the multi-fasta file in ascending order. $ awk '/^>/{print ">" ++i; next}{print}' < Mix_assembly.fasta > Mix_assembly2.fasta #awk #oneliner

    2536 days ago

  • Filter #blank #lines from a #fasta file using sed. $ sed '/^$/d' finalSample.fa > finalSample_filtered.fa #Linux #Filter #FASTA #SED

    2529 days ago

  • Append the string to fasta header. $ sed 's/>.*/&_Bacteria/' foo.in > out.fasta #Sed #Fasta #String #Append

    2509 days ago

  • Count the number of bases in fasta file. grep -v ">" file.fasta | wc | awk '{print $3-$1}' #Fasta #Count #Bases

    2505 days ago