Casanovo uses model weights (.ckpt extension) to define the neural network's functionality. These can be used during training, sequencing, or evaluation.
Automatic Weight Loading
If you do not provide a weights file, Casanovo automatically downloads and caches the most recent compatible weights from the official Casanovo GitHub repository. Weights are matched based on the Casanovo release version (major, minor, patch).
Model Types
Casanovo supports models optimized for different instruments:
- orbitrap: The default model.
- timsstof: Specified via the
--model timstof flag.
Selection Logic:
- Matching is case-insensitive and ignores separators (e.g.,
Orbitrap, orbitrap, and orbi-trap all resolve to orbitrap). - Partial names are accepted if they match exactly one model (e.g.,
tims resolves to timsstof). - If weights for an identical release are unavailable, Casanovo attempts to find weights with matching (i) major and minor versions, or (ii) just matching major versions.
Custom Weights
You can provide custom weights by specifying:
- A local file system path.
- A URL pointing to a compatible
.ckpt file (which will be downloaded and cached locally).