Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up

Wrapper to read fast5, slow5, blow5 and pod5 files.

License

NotificationsYou must be signed in to change notification settings

rnajena/read5

Repository files navigation

Alt text

  • Read5 is a python wrapper to read fast5, slow5/blow5 and pod5 files using the same overloaded functions from different APIs.PyPI - Python Version
  • Read5_ont is a python wrapper to read fast5 and pod5 files using the same overloaded functions from different APIs.PyPI - Python Version

License: GPL v3

PyPIPyPI - DownloadsPyPI - Status

Anaconda-Server BadgeCondaConda packageConda package

DOI

Twitter Follow


Table of Content

  1. Installation
  2. Usage
  3. Full Documentation

Installation

Pypi/pip

pip install read5

Conda

Pod5 is now available viaconda (19.07.2023).

conda install mambamamba create -n read5 -c jannessp read5conda activate 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:

fromread5importread# or from read5.Reader import readr5=read(my_file)# file with on of these extensions: .fast5, .slow5, .blow5, .pod5forreadidinr5:signal=r5.getSignal(readid)# returns raw integer values stored in the filepA_signal=r5.getpASignal(readid)# returns pA signalnorm_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 signalchannel=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:

fromread5.Fast5ReaderimportFast5Reader# contains the Fast5 Reader classfromread5.Slow5ReaderimportSlow5Reader# contains the Slow5 Reader class - !not available in read5_ont!fromread5.Pod5ReaderimportPod5Reader# contains the Pod5 Reader class

Abstract File Reader Class

fromread5.AbstractFileReaderimportAbstractFileReader

Possible Exceptions

fromread5.ExceptionsimportUnknownFileFormatException,UnknownNormalizationMode
  • UnknownFileFormatException: is raised, when the file extension does not match one of ['.fast5', '.slow5', '.blow5', '.pod5'] (or ['.fast5', '.pod5'] inread5_ont)
  • UnknownNormalizationMode: is raised, when an unknown mode is provided for the signal normalization function

Full Documentation

Created withpdoc3.Can be foundhere.


[8]ページ先頭

©2009-2025 Movatter.jp