Skip to content

quadram-institute-bioscience/readfx

 
 

Repository files navigation

readfx

A fork of readfq for made for future versions of SeqFu.

A Nim wrapper for Heng Li's kseq/readfq, an efficient and fast parser for FastQ and Fasta files. nimreadfq supports reading of FastQ and Fasta files from stdin (use "-"), gzipped or flat files and is fast (see benchmark below).

The main function is readFQ(), an iterator that yields FQRecord(s). An alternative is readFQPtr(), which returns FQRecordPtr(s). The difference is that the latter uses ptr char instead of strings and is thus potentially faster but memory is reused during iterations.

See example.nim and tests/tester.nim for code examples.

About

SeqFu FASTX parser (klib)

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Nim 65.0%
  • C 33.8%
  • Shell 1.2%