Skip to main content

Pyseqfile is a python wrapper on top of [seq_file](https://github.com/noporpoise/seq_file) which allow for reading multiple sequence file formats.

Project description

# pyseqfile

Pyseqfile is a python wrapper on top of [seq_file](https://github.com/noporpoise/seq_file) which allow for reading multiple sequence file formats.

Currently supports:

FASTA & FASTQ

TO DO:

* SAM & BAM (make seq_file with htslib)
* gzipped FASTA
* gzipped FASTQ

# Install

pip install pyseqfile

# Usage

from pyseqfile import Reader

reader = Reader('path/to/seqfile{.fq,.fq,.fa,bam,.sam}')
for r in reader:
print(r)

# Benchmarks

pyseqfile is *much* faster than Biopython.

$ python benchmark.py

Reading 10k lines 100 times: Biopython : 6.6768401420122245s
Reading 10k lines 100 times: seqfile : 0.1060560290061403s

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

pyseqfile-0.2.tar.gz (1.4 kB view details)

Uploaded Source

File details

Details for the file pyseqfile-0.2.tar.gz.

File metadata

  • Download URL: pyseqfile-0.2.tar.gz
  • Upload date:
  • Size: 1.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for pyseqfile-0.2.tar.gz
Algorithm Hash digest
SHA256 35a918115b50abac614794be4000528a9d56617ee477caed399aecec287110a2
MD5 453bb8aae12ead1a18bd6f0a8ab2c30a
BLAKE2b-256 f0df61b7f035a8e2d52029fb0be2c4cf733a7c5ef8863272dd7952c1e82a1c3f

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page