BaseNet
BaseNet: A Transformer-Based Toolkit for Nanopore Sequencing Signal Decoding
Install / Use
/learn @liqingwen98/BaseNetREADME
BaseNet
BaseNet: A Transformer-Based Toolkit for Nanopore Sequencing Signal Decoding
How to install
run the following commands:
git clone https://github.com/liqingwen98/BaseNet.git
cd BaseNet
pip install -e .
How to use
for training
from basenet.models.joint_model import Model
model = Model()
loss = model(signals, signal_lengths, bases, base_lengths)
loss.backward()
for inference
from basenet.models.joint_model import Model
from fast_ctc_decode import beam_search
beamsize=5
threshold=1e-3
alphabet = [ "N", "A", "C", "G", "T" ]
model = Model()
logits = model(signals).transpose(1,0)
for logit in torch.exp(logits).cpu().numpy():
seq, path = beam_search(logit, alphabet, beamsize, threshold)
Check point files can be found here: https://huggingface.co/liqingwen/BaseNet/tree/main
Citations
@article{LI20243430,
title = {BaseNet: A transformer-based toolkit for nanopore sequencing signal decoding},
journal = {Computational and Structural Biotechnology Journal},
year = {2024},
doi = {https://doi.org/10.1016/j.csbj.2024.09.016},
author = {Qingwen Li and Chen Sun and Daqian Wang and Jizhong Lou},
}
Related Skills
node-connect
345.9kDiagnose OpenClaw node connection and pairing failures for Android, iOS, and macOS companion apps
frontend-design
106.4kCreate distinctive, production-grade frontend interfaces with high design quality. Use this skill when the user asks to build web components, pages, or applications. Generates creative, polished code that avoids generic AI aesthetics.
openai-whisper-api
345.9kTranscribe audio via OpenAI Audio Transcriptions API (Whisper).
qqbot-media
345.9kQQBot 富媒体收发能力。使用 <qqmedia> 标签,系统根据文件扩展名自动识别类型(图片/语音/视频/文件)。
