Our Sponsors



Download BioinformaticsOnline(BOL) Apps in your chrome browser.




Question: Question: How to count the occurance of letters in fasta file?

Poonam Mahapatra
3170 days ago

Question: How to count the occurance of letters in fasta file?

I received a new genome to annotated. I need your help to quickly count the occurance of all the letters in fasta file.

Answers
0

Hmmm, I think grep can help you better 

grep -v '^>' genome.fasta | tr -d '\n' | sed -e 's/\(.\)/\1\n/g' | sort | uniq -c | sort -rn