Feature request: Joint calibration across cell lines and prediction from protein copy numbers
Nadie ha tomado este issue todavía.
Evaluación
- Dificultad
- 5/5
- Tiempo estimado
- Más de una semana
- Aptitud para principiantes
- 25/100
Línea de trabajo
Start by reading PyBNF's existing condition, experiment, parameter-routing, measurement, and pre-equilibration workflows, then identify their relevant implementation and tests. The request proposes a broad workflow spanning abundance import, joint fitting, prediction, grouped validation, and reporting, but names no specific files or entry points. Done means meeting the stated acceptance criteria, including a synthetic example and checks that withheld responses do not affect fitting.
Escrito por el modelo de indexación a partir del texto del issue.
Descripción
Feature request: Joint calibration across cell lines and prediction from protein copy numbers
Motivation
I propose an integrated PyBNF workflow for fitting one signaling network to multiple cell lines, with shared kinetic parameters and measured, cell-line-specific protein abundances, then predicting responses in additional cell lines without refitting the kinetics.
The motivating biological hypothesis is straightforward: the cell lines contain the same signaling network, and their different responses arise from differences in protein abundance. Binding, catalytic, phosphorylation, dephosphorylation, and other kinetic parameters are shared unless the modeler explicitly specifies otherwise.
The scientific question is:
How much of the variation in signaling across cell lines can a common network explain using measured protein abundance differences alone?
PyBNF already provides relevant building blocks, including conditions, experiments, parameter estimation, measurement models, and pre-equilibration. This request is to connect and extend those capabilities into a reproducible workflow, reducing the need for duplicated models, manually maintained condition definitions, and external scripts.
Example use case
A researcher has:
- One BNGL or SBML signaling model.
- Protein copy-number measurements for several cell lines.
- Signaling time courses and/or dose-response measurements under defined stimuli or inhibitors.
- A mapping from measured proteins to the model’s abundance inputs.
The researcher fits a single kinetic parameter set jointly against the training cell lines. PyBNF applies each cell line’s measured abundances and each experiment’s protocol before simulation.
The researcher can then supply the abundance profile of another cell line and predict its signaling responses using the fitted kinetics. Response measurements from that cell line can subsequently evaluate the prediction.
Protein abundances define the cellular context; dynamic or perturbation-response measurements provide the information needed to estimate kinetics. The feature would not imply that copy numbers alone determine reaction rates.
Requested behavior
1. Import cell-line abundance profiles
Support a table of protein copy numbers, an explicit mapping to model abundance parameters, and cell or compartment volumes where required.
Missing measurements, units, and any fallback values should be handled explicitly. The initial implementation could require models with clearly declared abundance inputs, rather than attempting to infer arbitrary protein-to-species mappings automatically.
2. Fit shared kinetics jointly
Evaluate each candidate kinetic parameter set across all training experiments, using the appropriate cell-line abundance profile and experimental protocol.
Combine likelihood contributions using the configured observation and noise models. Keep biological parameters distinct from assay-specific scaling, offsets, and noise parameters, with explicit sharing rules for those measurement parameters.
3. Predict additional cell lines without kinetic refitting
Save the calibrated shared model and the information required to reproduce predictions.
Accept a new abundance profile plus a simulation protocol and generate predicted observables. Where supported, propagate existing posterior samples or valid bootstrap fits into prediction intervals, clearly identifying the source of uncertainty.
4. Validate by withholding complete cell lines or experiments
Automate grouped cross-validation, including leave-one-cell-line-out validation.
For a withheld cell line, its measured abundance profile is an allowed prediction input; its signaling responses must not influence parameter fitting, model selection, or fitted observation scales. Any independent assay calibration needed to compare predictions with measurements should be declared.
5. Report performance at biologically useful levels
Produce measured-versus-predicted plots and error summaries by cell line, observable, and treatment, distinguishing training results from withheld predictions.
Highlight systematic failures of the shared-kinetics model. Such failures motivate further investigation; they do not by themselves establish that a particular rate constant differs between cell lines.
Important modeling details
Protein totals and initialization
Protein totals are not automatically initial free-species amounts. A measured total may include unbound, phosphorylated, and complex-bound protein.
The model should define how abundance inputs determine its initial state, potentially through an explicit allocation followed by basal pre-equilibration. For models with synthesis and degradation, the relationship between measured abundance and basal model state must also be specified.
The feature should preserve these declared assumptions rather than silently assign or clamp species.
Copy numbers, concentrations, and volumes
Copy numbers require consistent treatment of volume. A concentration-based model needs the appropriate conversion from molecules per cell to concentration.
In a count-based formulation, bimolecular coefficients may depend on volume even when the underlying concentration-based kinetic constant is shared. Volume should therefore be an explicit context input when needed.
Suggested implementation strategy
- Build on the existing condition, experiment, parameter-routing, measurement, and pre-equilibration machinery. An abundance table could expand into ordinary internal condition assignments, preserving the behavior of existing fitting methods.
- Represent cell-line identity separately from treatment identity. Construct each experiment from its abundance profile and protocol, with clear precedence rules and detection of conflicting assignments.
- Maintain one shared kinetic parameter vector. Apply fixed abundance inputs to each experiment before initialization and simulation.
- Reuse generated networks or prepared simulator structures where supported, while isolating mutable state between experiments. Parallelize independent simulations through the existing scheduler.
- Implement grouped validation as orchestration around ordinary fitting and prediction runs. Save split definitions, seeds, fitted parameters, resolved abundance assignments, and per-fold results so that runs are reproducible and resumable.
- Preserve existing noise-model and likelihood semantics. Alternative dataset-weighting choices should be explicit.
Initial scope and subsequent extension
The first release could keep measured abundances fixed and focus on the complete import → joint fit → prediction → validation workflow. It would not require a new optimizer or sampler.
A later, established statistical extension would account for uncertainty in protein measurements: treat true abundances as latent quantities constrained by a measurement likelihood and reported uncertainties. This would allow abundance uncertainty to propagate into predictions while retaining shared kinetics.
Automatically introducing cell-line-specific kinetic parameters should remain a separate modeling decision.
Suggested acceptance criteria
- A synthetic example with shared kinetics and different protein totals reproduces an equivalent manually configured joint fit and predicts an excluded cell line.
- Automated checks verify that withheld response measurements do not enter training or observation-scale estimation.
- Initialization and unit conversions are demonstrated and checked, including protein totals distributed across multiple molecular species.
- A worked biological example documents input tables, fitting, prediction, validation, and interpretation of failures.
- Existing single-cell-line workflows continue to work unchanged.
Established precedent
A relevant precedent is Fröhlich et al., Efficient Parameter Estimation Enables the Prediction of Drug Response Using a Mechanistic Pan-Cancer Pathway Model (2018), which combines shared kinetics with cell-line-specific expression and mutation context and evaluates predictions on withheld cell lines.
The proposed PyBNF workflow would support the related use case of directly measured protein abundances.
- Lenguaje dominante
- Python
- Estrellas
- 26
- Forks
- 25
- Merge medio
- 4 h 25 min
- PR fusionados (30 d)
- 9
Preparar el entorno
- Incluye un Dockerfile o un archivo de Docker Compose
- Sin plantilla de pull request
- Leer la guía de contribución
Primeros pasos
- Lee el issue completo y luego la guía de contribución del proyecto.
- Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
- Haz un fork del repositorio y trabaja en una rama.
- Abre un pull request que haga referencia al número del issue.
Más de lanl/PyBNF
-
bug
Dificultad 2/5 1-3 horas Aptitud para principiantes 78/100
-
min_objective stops a sampler run early and reports "Fitting complete": samplers should refuse itAbiertobug
Dificultad 2/5 1-3 horas Aptitud para principiantes 78/100
-
bug
Dificultad 2/5 1-3 horas Aptitud para principiantes 85/100
-
bug minor
Dificultad 1/5 1-3 horas Aptitud para principiantes 92/100
-
bug minor
Dificultad 2/5 1-3 horas Aptitud para principiantes 76/100
Todos los issues de lanl/PyBNF
Issues similares
-
Test: to_hijri() accepts datetime.datetime and uses only the date partPosiblemente ocupada Un pull request vinculado a esta issue está abierto o ya se fusionó. Abiertogood first issue
Dificultad 1/5 Menos de una hora Aptitud para principiantes 95/100
omarelshamy25x/shamy-hijri#63 · 3 comentarios ·
Los mantenedores suelen responder en 1 día
-
polish
Dificultad 2/5 1-3 horas Aptitud para principiantes 84/100
Los mantenedores suelen responder en 1 día
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 76/100
521xueweihan/HelloGitHub#4729 ·
-
[Bug]: Score parser reads parts of scientific notation as valid scoresPosiblemente ocupada @AshutoshSingh840 la tomó hoy. Abierto
Dificultad 2/5 1-3 horas Aptitud para principiantes 82/100
UKGovernmentBEIS/control-arena#992 ·
Los mantenedores suelen responder en 3 días
-
Dificultad 1/5 Menos de una hora Aptitud para principiantes 92/100
mvalentsev/awesome-free-ai-coding#70 ·
Los mantenedores suelen responder en 1 día