MuriVerse: reported intravenous half-life of peptides in mouse and rat
Predicts the source-reported circulating pharmacokinetic half-life (hours) after an intravenous dose in a mouse or rat, from the SMILES of the whole dosed molecule, the animal, and a few study conditions. It is an equal-weight ensemble of ridge regression, an RBF support-vector regressor and a shallow XGBoost model on 71 features. The labels are not uniformly verified terminal elimination half-lives.
Two versions are distributed. postaudit (the default) is the final model, fitted on the 178
intravenous records confirmed by a primary-source audit. shipped is the original pre-audit model of
the paper, fitted on all 213 intravenous-labelled records, including 37 that the audit found discordant
with their primary source; it is kept unchanged so the paper's pre-audit results can be reproduced.
GitHub revision published. The matching code, data, post-audit models and reviewer-response analyses are published in release commit b0c1cf2. The final post-audit weights and membership ledger are also provided in this model repository.
- Code, curation and the paper's figures: https://github.com/JacobKMcPherson/MuriVerse
- Training data, curation ledger and revision analyses:
MuriVerse/rodent/strict/,MuriVerse/data/curation/andresults/revision_analysis/in the GitHub repository - Demo: https://huggingface.co/spaces/jacobkmcpherson/muriverse
- Paper: manuscript in preparation (see Citation)
Intended use
A coarse ranking aid for exploratory prioritization of peptides within the species and route studied (mouse or rat, intravenous). It is not an estimator of exposure: a single prediction should not be used to choose a dose or a sampling schedule. The final model's cross-validated MAE is 0.550 log10 h. Prospective benefit has not been established.
Use
pip install huggingface_hub numpy pandas rdkit xgboost safetensors
from muriverse_halflife import MuriVerseHalfLife # ships in this repository
model = MuriVerseHalfLife.from_pretrained("jacobkmcpherson/muriverse")
out = model.predict(smiles, species="rat", route="iv") # post-audit model (default)
out_pre = model.predict(smiles, species="rat", route="iv", model="shipped") # pre-audit model
out.half_life_h, out.log10_half_life_h, out.warnings
from_pretrained downloads the repository, so run snapshot_download("jacobkmcpherson/muriverse")
once and put the returned folder on sys.path to import the module, as the demo Space does.
Optional keyword arguments, with their defaults: dose_mg_kg=None, engineering="unmodified / none stated", topology="linear", chirality="l", sample_matrix="plasma", assay_method="LC-MS",
strain="unknown", sex="unknown", formulation_class="not reported", n_terminus_class="free",
c_terminus_class="free". model.allowed_values() lists the accepted levels; a level the model
never saw raises an error (pass strict=False to leave its columns at zero instead).
What a prediction means
- Route and species are inputs. A prediction is for an intravenous dose (
route="iv") in the animal you name. The model was fitted on intravenous records only. Other routes are accepted but flagged: after an extravascular dose the terminal slope can report absorption rather than elimination (flip-flop kinetics), so subcutaneous values are offset by roughly half a log unit and are not reliable. - The target is the reported log10(half-life in hours). It is what the source papers reported, often without stating the half-life phase (180 of the 213 pre-audit labels), so it is not guaranteed to be a terminal elimination half-life. The prediction is the mean of the three members.
- Pre-audit feature analysis: assay method has the largest individual influence, and molecular descriptors contribute jointly. Cross-fitted permutation importance is largest for assay method (increase in mean absolute error 0.074 log10 h, 95% CI 0.046 to 0.101); no single physicochemical descriptor exceeds 0.011. Study context alone scores Spearman ρ = 0.347 and, with the physicochemical descriptors, 0.522, so the descriptors carry predictive information collectively. Two different peptides under the same conditions differ only through the descriptors, the annotation and the terminal classes, so the model ranks molecules weakly and should not be used to pick between close analogues.
- Frozen pretrained sequence and SMILES embeddings (ESM-2, PeptideCLM) scored below these 71 columns at this cohort size when homologous families were withheld. That is a statement about held-out performance with frozen checkpoints; it does not exclude gains from task-adapted representations trained on larger datasets.
Primary-source audit of the training labels
Each of the 213 intravenous-labelled records was re-read against its primary source (the ledger is
MuriVerse/data/curation/halflife_label_verification.csv in the GitHub repository):
| outcome | records |
|---|---|
| verified in full primary-source text (article body, patent or open supporting information) | 170 |
| verified from the abstract only | 3 |
| value confirmed, no stated intravenous route | 3 |
| database value not supported by the source | 9 |
| contradicted by the source | 28 |
The last two rows are the 37 discordant records (17%). The 213-record analysis is retained as the
original/pre-audit benchmark; the audit does not make the 213 records verified intravenous
measurements. The post-audit training set is the 170 full-text-verified records, the 3 abstract-verified
records, 3 records whose label was replaced by the value the source prints for the same arm, and 2 whose
species was corrected; 35 records are excluded (postaudit_training_membership.csv).
Training data
postaudit: 178 source-verified intravenous records from 76 sources (150 rat, 28 mouse).
shipped (pre-audit): 213 intravenous-labelled records from 89 sources (34 mouse, 179 rat), curated
from the literature behind PEPlife2; these are not all source-verified intravenous measurements.
Structural eligibility requires a single peptide chain of at most 50 residues with no
half-life-extension partner and a SMILES representing the whole dosed molecule. The final post-audit
cohort additionally requires source-supported circulating half-life and intravenous route assignments,
with the value and species corrections described above. See the GitHub repository for the data,
membership ledger and curation rules (EXTRACTION_PROTOCOL.md).
Performance
Final post-audit model (178 records, default postaudit): fixed-configuration Spearman
rho 0.445 (95% CI 0.153-0.563); nested feature-configuration selection rho
0.297 (0.096-0.450). Pearson r is 0.485, RMSE 0.703 log10 h and MAE 0.550 log10 h.
These are five-fold, three-seed cross-validation estimates over 50 connected groups,
not training scores or an independent external test. Other development decisions were not nested.
The final model is refit on all 178 records after evaluation. The results below are
explicitly historical unless labeled post-audit.
Cross-validated by jointly withholding whole homology clusters and publication sources (three seeds;
point estimates are seed means, intervals are group bootstraps over the evaluation groups, which do
not capture uncertainty from model-development decisions), not a random split. Out-of-fold predictions
are in the GitHub repository (results/revision_analysis/clean_cohort_oof_predictions.csv
for the final model; MuriVerse/rodent/strict/oof_predictions_iv.csv is pre-audit).
Original pre-audit analysis (213 records, the shipped model):
| stratum | n | Spearman ρ | RMSE (log10 h) | MAE (log10 h) |
|---|---|---|---|---|
| both species | 213 | 0.574 (95% CI 0.322 to 0.655) | 0.675 | 0.517 |
| rat | 179 | 0.600 | 0.646 | 0.490 |
| mouse | 34 | 0.562 | 0.811 | 0.658 |
Pearson r is 0.568 (95% CI 0.381 to 0.651). 57% of predictions fall within threefold of the reported half-life (60% of rat and 41% of mouse observations). The AUC for half-life ≥ 6 h is 0.818 (95% CI 0.620 to 0.877) and is preliminary: only 17 of 213 observations (8%) are positive.
Selection optimism. The 71-feature configuration was chosen on the same folds that score it. Repeating the selection of the feature configuration inside each outer fold (nested feature-configuration selection) gives Spearman ρ = 0.460 (95% CI 0.267 to 0.548). It nests only that choice; other development decisions were made with the full cohort in view, so residual optimism may remain.
Source-verified subsets (fixed configuration, not reselected, so they do not remove the selection optimism): ρ 0.540 (0.282 to 0.617; n = 176) excluding discordant records; 0.474 (0.242 to 0.561; n = 170) for records verified in full primary-source text; 0.442 (0.204 to 0.595; n = 117) without the largest patent, which supplies 53 of the 170.
Post-audit model (178 records, the postaudit model): fixed configuration ρ 0.445 (0.153 to 0.563),
Pearson r 0.485, MAE 0.550 log10 h; with the feature configuration reselected inside each training fold,
ρ 0.297 (0.096 to 0.450). Label quality cannot be separated from training-set size and source mix: the
pre-audit model's out-of-fold predictions scored on the same 178 records give ρ 0.579. Ridge regression
alone has slightly lower error than the ensemble on this cohort (MAE 0.541 against 0.550).
Ensemble against its members (213 records, same folds): MAE 0.517 (ensemble), 0.529 (ridge), 0.570 (SVR), 0.592 (XGBoost) and 0.702 (training-fold species median). The ensemble had the lowest point-estimate error of the five estimators, but an advantage over ridge regression alone was not established.
Ranking in thirds (213 records): 59% (95% CI 36 to 71%) of the records in the observed top third of half-lives fall in the predicted top third (33% by chance); 15% (10 to 28%) of the predicted top third come from the observed bottom third.
Colistin and polymyxin B. The paper applies the post-audit model to four congeners (polymyxin B1
and B2, colistin A and B) absent from the training cohort, as an exploratory case study rather than an
independent external validation: 16 predictions (4 congeners × 2 species × 2 equivalent wordings of the
N-terminal acyl group), which are 8 distinct values of 0.57 to 0.92 h. Against intravenous reference half-lives the model
overpredicts in mouse (2.05-fold for colistin, 1.26-fold for polymyxin B) and underpredicts in rat (2.05-fold
and 3.06-fold), and a constant baseline was closer than the model in three of the four cells.
figures/tabs/table20_polymyxin_predictions.csv in the GitHub repository reproduces under the postaudit
model (see Reproducibility).
Files
| path | what |
|---|---|
muriverse_halflife.py | featurisation and inference |
peptide_physchem.py, halflife_model.py | descriptor code; the model class the joblib files unpickle through |
model.json, feature_names.json | block layout and the column order of every feature block |
weights/{postaudit,shipped,structural}.safetensors + .json + .xgb.json | pickle-free weights (default backend) |
weights/joblib/*.joblib | the original fitted objects, for exact reproduction |
postaudit_training_membership.csv | inclusion rule and label used for each of the 213 records in the post-audit fit |
SHA256SUMS | checksums of every weight file |
postaudit is the default and shipped the pre-audit model, both described above. structural is the
paper's pre-audit physicochemical-descriptor-best configuration: it drops the molecule-annotation block
(62 features, cross-validated ρ 0.587, against 0.574 for shipped) and was fitted on the 213 records. The
paper's other structural configuration, SMILES + descriptors + study context with a PeptideCLM embedding
(cross-validated ρ 0.247), needs PeptideCLM and is only in the GitHub repository.
Reproducibility
The pickle-free backend (backend="numpy", default) evaluates the ridge and SVR members in NumPy
and loads the booster from XGBoost JSON, so it does not depend on a scikit-learn version and loads no
pickles. The joblib backend (backend="joblib") needs the versions in requirements.txt and loads
pickles, so only use it with files you have checked against SHA256SUMS.
Verified against the paper's model: features rebuilt from raw inputs equal the training matrix for
all 320 strict-cohort rows (maximum difference 0); the two backends agree to 1e-5 log10 h for all three
models; and the 16 shipped-model polymyxin and colistin predictions in Table 20 are reproduced by the postaudit model: 12 rows exactly and the four literal N-terminal-wording rows of
polymyxin B2 and colistin B within 0.0006 log10 h, because the loader takes the N-terminal class rather than the
acyl text (structural is the pre-audit configuration and is not used in the case study). The reported values reproduce, to the reported precision, only with Python 3.11,
NumPy 2.4.6 and XGBoost 3.2.0; a different environment moved individual Spearman estimates by up to 0.02.
Limitations
- Mouse and rat only, and intravenous only. Not for human dose prediction.
- Small training set (178 records for
postaudit, 213 forshipped). Only 57% of pre-audit predictions fall within threefold of the reported value; errors are largest in mouse. Ranking close analogues is unreliable. - Labels are reported half-lives from heterogeneous publications. The pre-audit labels include 37 records found discordant with their sources, and the post-audit subset analyses do not remove other sources of label error (units, treatment-arm assignment, analyte definition, half-life estimation).
- Peptides of at most 50 residues without a large half-life-extension partner (albumin binder, Fc,
PEG). Outside that the descriptors do not describe what drives clearance. Peptidomimetics and
small molecules are not validated: the package still returns a number but attaches a warning when
the molecule has fewer than two alpha-amino-acid backbone links or any descriptor falls outside
the training range (
model.json,applicability). Treat such values as extrapolation. - Not validated for any clinical or regulatory purpose.
Citation
McPherson JK, Sharma S, Mishra B, Shehadeh F, Mylonakis E. MuriVerse: Predicting intravenous peptide half-life in rodents from molecular and study-level features. Manuscript in preparation.
License
MIT for the code and weights. The training data are in the GitHub repository (code MIT, data
CC BY 4.0, with records derived from PEPlife2 remaining under that database's terms); see its
DATA_SOURCES.md.