View Single Post
Old 10-08-2009, 03:32 AM   #22
Location: PRC

Join Date: May 2009
Posts: 33

Originally Posted by edge View Post
If I got a long list of contents:
scaff_123 20
scaff_223 60
scaff_122 1000
scaff_125 15
scaff_23 30
scaff_13 26
scaff_230 50
scaff_153 500
scaff_173 200

Based on the column two,
Do you have any idea how to calculate the N50 and N90 from this long list of contents?
I need to do descending order of this long list of contents before I calculate the N50 and N90,right?
Thanks again for your help
hi edge,

I have written a PERL script for stat. length and gc content of FASTA/FASTQ file, hope it ould help you.
Attached Files
File Type: pl (4.2 KB, 194 views)

Last edited by BENM; 12-15-2009 at 12:59 AM.
BENM is offline   Reply With Quote