Skip to content
/ nx Public

Contig statistic (N50, L50, .....) for large .fastq files

License

Notifications You must be signed in to change notification settings

ondra-m/nx

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Nx

Contig statistic (N50, L50, ........) for .fastq files (gz and bz2 compresions are supported).

Designed for large data.

Build

  1. Clone this repository
  2. Install rust language
  3. Install cargo package manager
  4. Build the project
cargo build --release

The binary is located at target/release/nx

Usage

nx BUCKET_COUNT GLOB_PATTERN [*glob_pattern2]
  • BUCKET_COUNT
    • number of bucket
    • e.g. 2 calculate N50, L50
    • e.g. 3 calculate N33, N66, L33, L66
  • GLOB_PATTERN
    • pattern for .fastq, .fastq.gz or .fastq.buz2 files
    • or files itself

Examples

Calculate N50 from all .fastq files

nx 2 data/*.fastq

Calculate N10 .. N90 from .gz files

nx 10 data/data1.fastq.gz data/data2.fastq.gz

About

Contig statistic (N50, L50, .....) for large .fastq files

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages