Skip to content

Pure Python FASTQ reader. Faster than you think.

License

Notifications You must be signed in to change notification settings

ahcm/pyfastq_reader

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 

Repository files navigation

pyfastq_reader

Pure Python FASTQ reader. Faster than you think.

Installation

pip3 install --user pyfastq_reader

Usage

See also https://github.com/ahcm/pyfastq_filter

Either provide a filename (fastq_reader):

import pyfastq_filter
for filename in sys.argv[1:]:
  count = 0
  for head, seq, qual in pyfastq_reader.fastq_reader(filename):
    count += 1
  print(count)

Or a filehandle (fastq_reader_fh):

import pyfastq_filter
for filename in sys.argv[1:]:
  count = 0
  for head, seq, qual in pyfastq_reader.fastq_reader_fh(open(filename, 'r')):
    count += 1
  print(count)

About

Pure Python FASTQ reader. Faster than you think.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages