streamseqs
streamseqs is a tiny package to quickly read in sequences from stdin or from
(compressed) FAST(A/Q) files from disk.
It only performs barebones error checking and parsing and expects its input to be reasonably sane. If you need more sophisticated parsing and error checking, you are probably better of using Biopython.
Installation
pip install streamseqs
Usage
from streamseqs import stream_records
# Stream from file
for record in stream_records("seqs.fasta"):
process(record)
# Records are dicts:
# {"id": "sequence header", "seq": "ATGCT", "qual": "HHHHH"}
# For FASTA files, "qual" is `None`.
# Gzip compressed files are transparently handled
for record in stream_records("seqs.fastq.gz"):
process(record)
# Can stream from stdin. Expects a stream, not a TTY!
import sys
for record in stream_records(sys.stdin):
process(record)
# Format record for writing - as FASTQ if "qual" is present, as FASTA if not.
from streamseqs import format_record
format_record(record)
Metadata
Release files for streamseqs 0.1.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | |
|---|---|---|---|---|
| streamseqs-0.1.0.tar.gz | 4.1 kB | Without provenance | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| streamseqs-0.1.0-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 8.5 kB
Release files / streamseqs-0.1.0.tar.gz
| Download URL | streamseqs-0.1.0.tar.gz |
|---|---|
| Size | 4.1 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
4437387ee73c4df8dbf83b93dc9ef77f1173329efc7e3dc31e71a6d0605e709a
|
|
BLAKE2b-256 checksum How to use checksums |
e4cc5ca77e9590af23c3f0f42e7895e9570048fa1a230c8f04862eaea77cc6af
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.1 CPython/3.11.1
|
Release files / streamseqs-0.1.0-py3-none-any.whl
| Download URL | streamseqs-0.1.0-py3-none-any.whl |
|---|---|
| Size | 4.4 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
39a345e03621a025de63de2de6f945224a5b91fe88753797bbb5a8dbb143cdf8
|
|
BLAKE2b-256 checksum How to use checksums |
42aaf65ea5ce11815d5c159ae540909f37cfb320a79905b2cd0e659d89828777
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.1 CPython/3.11.1
|
Security for streamseqs 0.1.0
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.