No project description provided
Project description
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
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
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file relseg-0.1.0.tar.gz.
File metadata
- Download URL: relseg-0.1.0.tar.gz
- Upload date:
- Size: 26.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.10.0
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
d35aebc9f485277a8e6eeccbc4ec96b49d1e04007b61a907fb62ed9001d9acb8
|
|
| MD5 |
7a73c96daf599321f1b05da008ecb148
|
|
| BLAKE2b-256 |
5c7bc4aa3053846708410f7128194a39b7608175d16390c52eb63d6bbc840bb6
|
File details
Details for the file relseg-0.1.0-py3-none-any.whl.
File metadata
- Download URL: relseg-0.1.0-py3-none-any.whl
- Upload date:
- Size: 32.2 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.10.0
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
a3da64f781bc4f8b3077b5ba450a0eda8208d0869d1985690a3d2763199b4d59
|
|
| MD5 |
309c8502a7e5ac8043b0926331390211
|
|
| BLAKE2b-256 |
cf43a4e5aab948f0c0d3728bcc0d42bd41771e1281bf3285d13df0c8197ff7fa
|