Length of scaffolds in a FASTA file
1
2
Entering edit mode
3.6 years ago

Hello everyone,

A simple question, but I have not found a clear answer anywhere else. It seems very simple to do.

I try to calculate the size of a genome scaffolds using simple bash commands. For example the first Scaffold:

head -2 genome.faa | tail -1 | wc -c

And whatever the row, characters are grouped by row of 81 (except headers).

Would anybody know how to calculate the length of the full scaffold?

Furthermore, I have figured out how to use a while loop to analyze all the scaffolds one after the other (using the headers list as input). But is there anything more simple than this?

Edit: spelling mistake in header.

fasta genome bash scaffold • 2.1k views
ADD COMMENT
1
Entering edit mode
ADD COMMENT

Login before adding your answer.

Traffic: 1855 users visited in the last hour
Help About
FAQ
Access RSS
API
Stats

Use of this site constitutes acceptance of our User Agreement and Privacy Policy.

Powered by the version 2.3.6