Skip to main content
# 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

Metadata

Release files for pyseqfile 0.2

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for pyseqfile 0.2
File Size Uploaded Provenance Actions
pyseqfile-0.2.tar.gz 1.4 kB Without provenance Details for pyseqfile-0.2.tar.gz

Release files / pyseqfile-0.2.tar.gz

Download URL pyseqfile-0.2.tar.gz
Size 1.4 kB
Tags Source
SHA-256 checksum
How to use checksums
35a918115b50abac614794be4000528a9d56617ee477caed399aecec287110a2
BLAKE2b-256 checksum
How to use checksums
f0df61b7f035a8e2d52029fb0be2c4cf733a7c5ef8863272dd7952c1e82a1c3f
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Security for pyseqfile 0.2

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page