{# The blocks of the evidence extensions of pkpdsim and of its battery hook in the report of an assessment of sbmlsim (`sbmlsim.credibility.report`), see `pkpdsim.credibility.blocks`: the ratio pairs and the temporal validation after the acceptance of a context, the inputs after its uncertainty, the section of the study data and the fates of the doses after the table of the battery. #} {% macro ratio_pairs(ratios) %}

Ratio pairs

The ratio of the summary of an arm over the one of its reference arm in the same study, of the data and of the predictions; a pair is within when the predicted ratio lies within the limit of Guest et al. (2011) of the observed ratio, 1.25 at a ratio of 1 and towards 2 for a large ratio.

{% if ratios %}
{% for r in ratios %} {% endfor %}
quantityfitstudyarmsobservedpredictedlimitresult
{{ r.quantity }} {{ r.fit }} {{ r.experiment }} {{ r.numerator }} / {{ r.denominator }} {{ r.observed | number }} {{ r.predicted | number }} {{ r.limit | number }} {% if r.within is none %}not evaluable{% elif r.within %}within{% else %}outside{% endif %}
{% else %}

No study has both arms of a ratio in the decisive points.

{% endif %} {% endmacro %} {% macro temporal(t, minimum_points) %}

Temporal validation

The decisive points of the studies the model collected after the day its fit ran, data which did not exist for the model when it was fitted; the day of the collection is the record of the study in the data of the model. The points are part of the acceptance above, the verdict does not change.

{% if t.studies %}
{% for a in t.acceptance %} {% endfor %}
rulevaluelimitresult
{{ a.name }} new studies {{ a.value | number }} {{ a.limit }} {% if a.met is none %}not evaluable{% elif a.met %}met{% else %}not met{% endif %}

{{ t.n_evaluable }} evaluable points of the new studies, the minimum of the verdict is {{ minimum_points }}; {{ t.n_known }} decisive {{ "study was" if t.n_known == 1 else "studies were" }} collected before {{ "its" if t.n_known == 1 else "their" }} fit.

{% for s in t.studies %} {% endfor %}
studyfitfit rancollectedreleasedpointsevaluable
{{ s.study }} {{ s.fit }} {{ s.fit_date }} {{ s.collected }} {% if s.released %}{{ s.released }} {{ s.pkdb_id }}{% else %}not released{% endif %} {{ s.n_points }} {{ s.n_evaluable }}
{% else %}

No decisive study was collected after its fit: {{ t.n_known }} collected before{% if t.undated %}, {{ t.undated | length }} without a date{% endif %}.

{% endif %} {% if t.undated %}

Without a day of collection (collected before the records of the studies existed, or without a record): {{ t.undated | join(", ") }}.

{% endif %} {% endmacro %} {% macro inputs(inp) %}

Inputs

The simulated covariates of the subjects and the doses of {{ inp.n_checked }} of the {{ inp.n_mappings }} decisive mappings against the groups, individuals and interventions their studies report. A covariate is equivalent within 10 % of the reported mean (the value of an individual) and in the range within the reported minimum and maximum (else two standard deviations around the mean), a dose is equivalent within 2 % of a reported dose; the simulated range is what the evidence covers.

{% for s in inp.inputs %} {% endfor %}
inputmappingssimulatedequivalentin rangediffernot reported
{{ s.target }}{% if s.kind == "dose" %} dose{% endif %} {{ s.n_mappings }} {% if s.low == s.high %}{{ s.low | number }}{% else %}{{ s.low | number }} to {{ s.high | number }}{% endif %} {{ s.unit }} {{ s.n_equivalent }} {{ s.n_in_range }} {% if s.n_differs %}{{ s.n_differs }}{% else %}0{% endif %} {{ s.n_not_reported }}
{% if inp.differs %}

The inputs which differ from the reported ones, the ratio is the simulated over the reported value{% if inp.differs | selectattr("source", "equalto", "model") | list %}; model marks the value of the model, which the simulation does not set{% endif %}:

{% for d in inp.differs %} {% endfor %}
mappinginputsimulatedreportedreported byratio
{{ d.experiment }}/{{ d.mapping }} {{ d.target }}{% if d.source == "model" %} model{% endif %} {{ d.simulated | number }} {{ d.unit }} {{ d.reported | number }} {{ d.unit }}{% if d.low is not none %}, {{ d.low | number }} to {{ d.high | number }}{% endif %} {{ d.reported_by | join(", ") }} {{ d.ratio | number }}
{% endif %} {% endmacro %} {% macro studies(studies) %} {% set unrecorded = studies | rejectattr("recorded") | list %} {% set changed = studies | selectattr("changed") | list %}

The data of every study with points in the adopted fits, as the simulations read it from the data folders of the model, and the record of its collection from pkdb_data: the day of the first collection (from the collection itself or from the git history of the model), the day of the latest collection, the release in PK-DB and the commit of the checkout. A table which differs from the record was changed after the collection.

{{ studies | length }} studies, {{ studies | length - unrecorded | length }} with a record of their collection{% if changed %}, {{ changed | length }} with tables changed after the collection{% endif %}.

{% for s in studies %} {% if s.recorded %} {% else %} {% endif %} {% endfor %}
studypointsfirst collectedlatest collectionreleasedpkdb_datasource digesttables
{{ s.study }}{% if s.folder %}
{{ s.folder }}
{% endif %}
{{ s.n_points }}{{ s.collected or "unknown" }}{% if s.dating == "git" %} (git){% endif %} {{ s.updated or "unknown" }} {% if s.released %}{{ s.released }} {{ s.pkdb_id }}{% else %}not released{% endif %} {% if s.pkdb_data_commit %}{{ s.pkdb_data_commit[:12] }}{% if s.pkdb_data_dirty %} with uncommitted changes{% endif %}{% else %}unknown{% endif %} {{ s.source_digest[:12] if s.source_digest else "" }} {% if s.changed is none %}no digests{% elif s.changed %}changed: {{ s.changed | join(", ") }}{% else %}{{ s.n_tables }} as collected{% endif %}{% if s.folder %}no record of the collection{% else %}no data folder of the study{% endif %}
{% endmacro %} {% macro fates(fates) %}

Fate of the doses

Where a dose is at the end of the simulation, as a share of the dose, relative to the simulation without a dose: in the body, in the urine and the feces (the unabsorbed part of a rectal dose among them), in the loss of an injected depot (what it does not absorb), not yet applied (dose) and moved by every reaction which reads no dose (negative an elimination, positive a production, e.g. of a metabolite).

{% for f in fates %} {% endfor %}
builddosemmolepartsimbalance
{{ f.build }} {{ f.dose }} {{ f.amount | number }} {% for name, value in f.parts.items() %}{{ name }} {{ (value / f.amount) | number }}{% if not loop.last %}, {% endif %}{% endfor %} {{ f.imbalance | number }}
{% endmacro %}