RelSeg
Relevance Based Segmentation of Nanopore Reads
RelSeg is used to align the basecalled sequence to the signal of nanopore reads. It relies on the bonito basecaller of ONT. The lxt and zennit packages are used for the Layer-wise Relevance Propagation.
A transformer model which no longer requires flash_attn is implemented.
Installation
$ pip install relseg
Usage
$ relseg rna004_130bps_sup@v5.0.0 /path/data/reads --rna > basecall.txt
$ relseg rna004_130bps_sup@v5.0.0 /path/data/reads --rna --save_relevance > basecall.txt
Output
| Column | Description |
|---|---|
| read_id | Unique identifier for the read |
| base | The base (nucleotide) called at the specific position |
| start | The start position of the base in the signal alignment (-1 for not aligned) |
| end | The end position of the base in the signal alignment (-1 for not aligned) |
Example Output
read_id base start end
5a729d16-b785-4e8c-ad91-314d862d980b T 140 157
5a729d16-b785-4e8c-ad91-314d862d980b C 157 157
5a729d16-b785-4e8c-ad91-314d862d980b T 157 181
5a729d16-b785-4e8c-ad91-314d862d980b C -1 -1
The normal basecalls including the moves table are also output.
Relevance for Consecutive Bases
Sequence Aligned to Signal
Metadata
Release files for relseg 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 | Actions |
|---|---|---|---|---|
| relseg-0.1.0.tar.gz | 26.7 kB | Without provenance | Details for relseg-0.1.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| relseg-0.1.0-py3-none-any.whl | Python 3 | none | any | Details for relseg-0.1.0-py3-none-any.whl |
Total release size: 58.9 kB
Release files / relseg-0.1.0.tar.gz
| Download URL | relseg-0.1.0.tar.gz |
|---|---|
| Size | 26.7 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
d35aebc9f485277a8e6eeccbc4ec96b49d1e04007b61a907fb62ed9001d9acb8
|
|
BLAKE2b-256 checksum How to use checksums |
5c7bc4aa3053846708410f7128194a39b7608175d16390c52eb63d6bbc840bb6
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.1.0 CPython/3.10.0
|
Release files / relseg-0.1.0-py3-none-any.whl
| Download URL | relseg-0.1.0-py3-none-any.whl |
|---|---|
| Size | 32.2 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
a3da64f781bc4f8b3077b5ba450a0eda8208d0869d1985690a3d2763199b4d59
|
|
BLAKE2b-256 checksum How to use checksums |
cf43a4e5aab948f0c0d3728bcc0d42bd41771e1281bf3285d13df0c8197ff7fa
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.1.0 CPython/3.10.0
|
Security for relseg 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.