Skip to content

Returns N50 (or N of your choice) and other stats of a fasta/q file of sequences.

License

Notifications You must be signed in to change notification settings

sandyjmacdonald/fast_stats

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 

Repository files navigation

fast_stats.py

Returns N50 (or N of your choice) and other stats of a fasta/fastq file (can be gzipped) of sequences. N50 is calculated as the sequence length above which 50% of the total sequence length lies when the sequences are sorted in order of descending length.

Dependencies

Requires Numpy for calculating the median read length.

Usage

python fast_stats.py -i <infile> -n 50
Arguments

-i The fasta/q file (can be gzipped) for which you want to calculate the stats.

-n The value of n (usually 50) that you want to use.

-h Displays help.

About

Returns N50 (or N of your choice) and other stats of a fasta/q file of sequences.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages