Skip to main content

seq-miner

seq-miner is a lightweight tool to extract and filter reads from BAM or FASTQ files based on:

  • Specific read IDs
  • Mean quality score threshold
  • Minimum read length
  • Multi-threading (FASTQ)
  • JSON/CSV-ready summary (optional)

Installation

pip install seq-miner

Or clone from source:

git clone https://github.com/your-org/seq-miner.git
cd seq-miner
pip install .

Usage

Extract reads from BAM

seq-miner -i reads.bam -o filtered.bam -f bam -r read_ids.txt --min-qscore 10 --min-length 200

Filter FASTQ reads in parallel

seq-miner -i reads.fastq -o filtered.fastq -f fastq --min-qscore 15 --min-length 1000 --threads 4

Show version

seq-miner --version

Command-line Options

Option Description
-i, --input Input BAM or FASTQ file
-o, --output Output file for passed reads
-f, --format File format: bam or fastq
-r, --read-ids Optional file with read IDs (one per line)
--min-qscore Minimum mean Q-score (default: 0.0)
--min-length Minimum read length (default: 0)
--threads Number of CPU threads (only used for FASTQ)
--verbose Enable verbose logging
--version Print the current version

Output Summary

When finished, you'll see:

Summary:
Passed reads     : 12345
Low-quality reads : 54
Short reads      : 91

Optionally, you can pipe this to JSON or CSV (coming soon).

Auto Version + Release

  • Version is stored in seqminer/__version__.py
  • Tagged automatically with GitHub Actions on push to main
  • Published to PyPI on GitHub release

License

MIT License © Theerayut
See LICENSE for full text.

Contact

For issues, please open an issue on GitHub.

Metadata

Release files for seq-miner 1.3.1

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

Source distribution (sdist)

Source distribution for seq-miner 1.3.1
File Size Uploaded Provenance
seq_miner-1.3.1.tar.gz 5.7 kB With provenance Details

Built distribution (wheel)

Table of built distributions (wheels) for seq-miner 1.3.1
File Interpreter ABI Platform
seq_miner-1.3.1-py3-none-any.whl Python 3 none any Details

Total release size: 12.1 kB

Release files / seq_miner-1.3.1.tar.gz

Download URL seq_miner-1.3.1.tar.gz
Size 5.7 kB
Tags Source
SHA-256 checksum
How to use checksums
8ef78d9b0748bea2889d15cf34c5e437be9ad67d04a69326cb5d2819e02a9cf1
BLAKE2b-256 checksum
How to use checksums
cdf401d17a59f67722034da4a78d3df96c47170f6a649b7cecd46d4c08fa3413
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/6.1.0 CPython/3.12.9

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.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Jul 22, 2025.

Transparency log

Release files / seq_miner-1.3.1-py3-none-any.whl

Download URL seq_miner-1.3.1-py3-none-any.whl
Size 6.4 kB
Tags Python 3
SHA-256 checksum
How to use checksums
4d8ef02596427e4b013dedac2c4eafbe292d24ae9f0440e25abe8b0e053090bc
BLAKE2b-256 checksum
How to use checksums
d1c4c564e4aa87b6afc025c35b58b12b71be73da34e106523ddfde48c6b45ff1
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/6.1.0 CPython/3.12.9

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.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Jul 22, 2025.

Transparency log

Security for seq-miner 1.3.1

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.

Full provenance

All 2 files in this release have been uploaded with provenance metadata.

Select from 2 files

Attestation for seq_miner-1.3.1.tar.gz

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Jul 22, 2025.

Transparency log

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.

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