Expand description
lotrs — pure-Rust bacterial subcellular localization predictor.
A compact convolutional network that reads a full protein sequence and predicts its bacterial subcellular compartment. Architecture inspired by DeepLoc (Almagro Armenteros et al. 2017) — a sequence CNN with global pooling — but this is an independent clean-room implementation with its own code and its own weights, trained from scratch on public UniProt/SwissProt (reviewed bacterial entries with experimental localization, CC-BY 4.0). No DeepLoc source or weights are used.
Inference is self-contained: weights embedded at compile time, every op hand-rolled
(one-hot encode, conv1d + ReLU, global avg+max pool, linear head). No ML runtime.
let m = lotrs::Model::embedded();
let p = m.predict(b"MSKIVKIIGREIIDSRGNPTVEAEVHLEGGFVGMAAAPSGASTGSRE");
println!("{} ({:.2})", p.label, p.prob);Structs§
- Model
- A loaded lotrs model.
- Prediction
- A localization prediction.