- Read5 is a python wrapper to read fast5, slow5/blow5 and pod5 files using the same overloaded functions from different APIs.
- Read5_ont is a python wrapper to read fast5 and pod5 files using the same overloaded functions from different APIs.
Table of Content
Installation
Pypi/pip
pip install read5_ont
Conda
Pod5 is now available via conda (19.07.2023).
mamba create -n read5_ont -c jannessp read5_ont
conda activate read5_ont
Usage
Click here to see a full documentation about the classes and function.
my_file can be a fast5, slow5, blow5 or pod5 file. The wrapper detects the file format depending on the file extension.
Small example:
from read5 import read # or from read5.Reader import read
r5 = read(my_file) # file with on of these extensions: .fast5, .slow5, .blow5, .pod5
for readid in r5:
signal = r5.getSignal(readid) # returns raw integer values stored in the file
pA_signal = r5.getpASignal(readid) # returns pA signal
norm_signal = r5.getZNormSignal(readid) # returns normalised read signal: norm_signal = (signal - median(signal)) / mad(signal)
polyAstdSignal = r5.getPolyAStandardizedSignal(readid, polyAstart, polyAend) # returns polyA standardized read signal
channel = r5.getChannelNumber(readid)
sampleid = r5.getSampleID(readid)
runid = r5.getRunID(readid)
readid_list = r5.getReads()
File Reader Classes
If you want to use the file readers you can import the corresponding class like this:
from read5.Fast5Reader import Fast5Reader # contains the Fast5 Reader class
from read5.Slow5Reader import Slow5Reader # contains the Slow5 Reader class - !not available in read5_ont!
from read5.Pod5Reader import Pod5Reader # contains the Pod5 Reader class
Abstract File Reader Class
from read5.AbstractFileReader import AbstractFileReader
Possible Exceptions
from read5.Exceptions import UnknownFileFormatException, UnknownNormalizationMode
- UnknownFileFormatException: is raised, when the file extension does not match one of ['.fast5', '.slow5', '.blow5', '.pod5'] (or ['.fast5', '.pod5'] in read5_ont)
- UnknownNormalizationMode: is raised, when an unknown mode is provided for the signal normalization function
Full Documentation
Metadata
Release files for read5-ont 1.2.8
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 | Actions |
|---|---|---|---|---|
| read5_ont-1.2.8.tar.gz | 23.8 kB | Without provenance | Details for read5_ont-1.2.8.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| read5_ont-1.2.8-py3-none-any.whl | Python 3 | none | any | Details for read5_ont-1.2.8-py3-none-any.whl |
Total release size: 49.5 kB
Release files / read5_ont-1.2.8.tar.gz
| Download URL | read5_ont-1.2.8.tar.gz |
|---|---|
| Size | 23.8 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
cb9df5d0b96b772ea83c8906f33b5f202f8ac2c889d217fcd4d6b0cd57a5dd4a
|
|
BLAKE2b-256 checksum How to use checksums |
6f2669159894a05db715b041d078742fae963fc6aa75bfccc7a03993661672e2
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.1.0 CPython/3.12.8
|
Release files / read5_ont-1.2.8-py3-none-any.whl
| Download URL | read5_ont-1.2.8-py3-none-any.whl |
|---|---|
| Size | 25.7 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
84917377ed8759dac4ea1d9bea9bac6d6100e0eba097db2fc43ee939edc0f51f
|
|
BLAKE2b-256 checksum How to use checksums |
65943688e66bfbdec2c0059937669b4174405db1a51eb27e561cdeab3577af0e
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.1.0 CPython/3.12.8
|
Security for read5-ont 1.2.8
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.