Poonam Mahapatra3170 days ago
I received a new genome to annotated. I need your help to quickly count the occurance of all the letters in fasta file.
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
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