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 | |
|---|---|---|---|
| relseg-0.1.0.tar.gz | 26.7 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| relseg-0.1.0-py3-none-any.whl | Python 3 | none | any | Details |
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
|