Wrapper to read fast5, slow5, blow5 and pod5 files.
Project description
Installation
Pod5 is not available via conda (27.06.2023). Read5 Currently available via pipy.
pip install read5
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)
norm_signal = r5.getZNormSignal(readid) # returns normalised read signal: norm_signal = (signal - median(signal)) / mad(signal)
channel = r5.getChannelNumber(readid)
sampleid = r5.getSampleID(readid)
runid = r5.getSampleID(readid)
readid_list = r5.getReads()
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
from read5.Pod5Reader import Pod5Reader # contains the Pod5 Reader class
Full Documentation
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
read5-1.1.5.tar.gz
(46.3 kB
view hashes)
Built Distribution
read5-1.1.5-py2.py3-none-any.whl
(26.1 kB
view hashes)
Close
Hashes for read5-1.1.5-py2.py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 6c9f0e1695020b65e8d5ce999a637452a337309e1180b9062b1b32c29b0310ef |
|
MD5 | 381862feaffba054fa6d94985790b225 |
|
BLAKE2b-256 | 6dc3d2e8d33f69732c6a79af610e050f7312df0e7f52e8812d00b0e2119fd547 |