Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/sandyjmacdonald/fast_stats

Returns N50 (or N of your choice) and other stats of a fasta/q file of sequences.
https://github.com/sandyjmacdonald/fast_stats

Last synced: 13 days ago
JSON representation

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

Awesome Lists containing this project

README

        

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](http://www.numpy.org) for calculating the median read length.

### Usage

python fast_stats.py -i -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.