PLASMe
Transformer that classifies a contig as plasmid or not from its sequence of protein-cluster tokens.
Molecules, proteins and genomics · 38 operations Checked
Click or tap a spot to read it up close. Scroll or drag inside the diagram to move through it. Zoom with + and − or Ctrl and scroll. Press 0 for the whole graph. Swipe inside the diagram to move through it. Use + and − to zoom.
At a glance
- Parameters
- 93M
- Operations
- 38
- Framework
- PyTorch
- Recurrent
- No
- Published
- 2023, Nucleic Acids Research 51(15)
- Cited by
- 98 (as of 28 October 2026)
- Authors
- Xubo Tang, Jiayu Shang, Yongxin Ji, Yanni Sun
- Source
- GitHub: HubertTang/PLASMe
- Checked
- Passed: the trace was replayed operation by operation and matched the model's own output for this input.
Files
The file opened in a new tab. Use your browser's Save command there to keep it.
The diagram is a drawing of a TorchLens trace of the source code. It contains no code or weights.
Details
- Stable ID
- m19142
- Graph hash
- ce0f0e7c365402a052fbccbe8810c2493130e1140f00af9878d4c8101e30b346
- Skeleton hash
- 63eec344d17c32478e25ef3d6ee1e67a938f9d33dee6ab4360eb6443898663f7
- Architecture hash
- 056de6b9a3cb907615330b6fc01223d65c4d33f1449e5f41b9ceef74f5b502a0
- Diagram SHA-256
- 89f2eb34414ce19a62e3727817ebe30f3334759cd29d432e6abf504639605b9a
- TorchLens version
- 2.36.0
- Renderer
- graphviz 2.43.0+pyvips 3.2.0+libvips 8.18.7+render-opts@06c1f0d3
- Check
- Forward pass replayed in PyTorch
What it is
PLASMe identifies plasmid contigs in short-read assemblies using a Transformer. Closely related plasmids are caught by an alignment component, and diverged plasmids are predicted by Transformer models specific to each order.
The Transformer treats plasmids as a language defined on a vocabulary of proteins. The tokens are protein clusters (PCs) built from the reference plasmids, and keeping only clusters with at least two proteins leaves 151 086 PCs. Each contig is encoded as a vector of length 400, which covers 99.9% of the plasmids in the database. The network itself has an embedding layer, a multi-head attention block and fully connected layers that act as the classifier.
In the full pipeline, contigs that align to the plasmid database with high query coverage and identity, 90% by default, are classified as plasmids directly. The others are assigned to an order and passed to that order's Transformer, and the authors built 35 such models. The authors also tried an LSTM-based classifier for short contigs and report that the transformer still outperformed it.
Key idea. PLASMe treats plasmids as a language over a vocabulary of proteins and combines order-specific Transformers with sequence alignment to identify plasmid contigs.
- PLASMe
- plasmid identification
- plasmid detection
- plasmid contigs
- short-read assemblies
- metagenomics
- protein clusters
- genomic language model
AI-written summary, based on the paper and checked automatically against it; not reviewed by a person. Corrections welcome.
Cite the paper
@article{Tang_2023, title={PLASMe: a tool to identify PLASMid contigs from short-read assemblies using transformer}, volume={51}, ISSN={1362-4962}, url={http://dx.doi.org/10.1093/nar/gkad578}, DOI={10.1093/nar/gkad578}, number={15}, journal={Nucleic Acids Research}, publisher={Oxford University Press (OUP)}, author={Tang, Xubo and Shang, Jiayu and Ji, Yongxin and Sun, Yanni}, year={2023}, month=July, pages={e83–e83} }