{% extends "base.html" %} {% block content %} {% with record = data.norm_metadata %} {# --------------------------- Schema.org / Bioschemas JSON-LD --------------------------- #} {# --------------------------- Helper macros --------------------------- #} {% macro val(v, default='—') %} {%- if v is none -%}{{ default }} {%- elif v is string and (v|trim == '' or v|lower == 'na' or v|lower == 'n/a' or 'no response' in v|lower) -%}{{ default }} {%- elif v is sequence and (v is not string) and (v|length == 0) -%}{{ default }} {%- else -%}{{ v }} {%- endif -%} {% endmacro %} {% macro fmt_date(d, default='—') %} {# expects YYYY-MM-DD or any string; show first 10 chars if ISO #} {%- if not d -%}{{ default }} {%- else -%}{{ d[:10] }} {%- endif -%} {% endmacro %} {% macro bytes_mb(n, default='') %} {%- if n is number -%}{{ (n / 1000000) | round(1) }} MB {%- else -%}{{ default }} {%- endif -%} {% endmacro %} {# --------------------------- Page header --------------------------- #}

{{ val(record.title, 'Dataset') }}

{% if record.description %}

{{ record.description }}

{% endif %}
{# --------------------------- Study-level data extracted once — available to all tabs Safe defaults ensure non-study records don't break --------------------------- #} {% set subs_bio = [] %} {% set bio_models = [] %} {% set ns_bio = namespace(organisms=[], organ=None, organ_url=None, tissue=None, tissue_url=None, cell_type=None, cell_type_url=None, bioassays=[], aop_name=None, aop_url=None, aop_events=[]) %} {% if record.type == "study" %} {% set sec_attrs = data.metadata.raw_data.section.attributes if data.metadata and data.metadata.raw_data and data.metadata.raw_data.section else [] %} {% set subs_bio = data.metadata.raw_data.section.subsections if data.metadata and data.metadata.raw_data and data.metadata.raw_data.section else [] %} {% for a in sec_attrs %} {% if a.name == 'Organism' %} {% set ont = namespace(url=None) %} {% for qq in a.valqual or [] %} {% if qq.name == 'Ontology' and qq.value == 'NCBITaxon' %} {% set ont.url = 'https://www.ncbi.nlm.nih.gov/Taxonomy/Browser/wwwtax.cgi?id=' ~ (a.valqual | selectattr('name','equalto','TermId') | map(attribute='value') | first | replace('NCBITaxon_','')) %} {% endif %} {% endfor %} {% set _ = ns_bio.organisms.append({'value': a.value, 'url': ont.url}) %} {% elif a.name == 'Organ' %} {% for q in a.valqual or [] %} {% if q.name == 'TermId' %}{% set ns_bio.organ_url = 'https://purl.obolibrary.org/obo/' ~ q.value | replace(':','_') %}{% endif %} {% endfor %} {% set ns_bio.organ = a.value %} {% elif a.name == 'Tissue' %} {% for q in a.valqual or [] %} {% if q.name == 'TermId' %}{% set ns_bio.tissue_url = 'https://purl.obolibrary.org/obo/' ~ q.value | replace(':','_') %}{% endif %} {% endfor %} {% set ns_bio.tissue = a.value %} {% elif a.name == 'Bioassay' %} {% set ba = namespace(url=None, bao_url=None, ontology=None) %} {% for q in a.valqual or [] %} {% if q.name == 'URL' %}{% set ba.url = q.value %}{% endif %} {% if q.name == 'TermId' %}{% set ba.bao_url = 'https://www.bioassayontology.org/bao#' ~ q.value %}{% endif %} {% if q.name == 'Ontology' %}{% set ba.ontology = q.value %}{% endif %} {% endfor %} {% set _ = ns_bio.bioassays.append({'value': a.value, 'url': ba.url, 'bao_url': ba.bao_url, 'ontology': ba.ontology}) %} {% elif a.name == 'AOP' %} {% set aop_q = namespace(url=None) %} {% for q in a.valqual or [] %} {% if q.name == 'URL' %}{% set aop_q.url = q.value %}{% endif %} {% endfor %} {% set ns_bio.aop_name = a.value %} {% set ns_bio.aop_url = aop_q.url %} {% elif a.name == 'AOP event' %} {% set ev_q = namespace(url=None) %} {% for q in a.valqual or [] %} {% if q.name == 'URL' %}{% set ev_q.url = q.value %}{% endif %} {% endfor %} {% set _ = ns_bio.aop_events.append({'value': a.value, 'url': ev_q.url}) %} {% endif %} {% endfor %} {% set bio_models = [] %} {% for s in subs_bio %} {% if s.type and s.type|lower == 'biological model information' %} {% set _ = bio_models.append(s) %} {% endif %} {% endfor %} {% endif %}
{# --------------------------- GENERAL TAB (norm_metadata) --------------------------- #}
Details
Type
{{ val(record.type) }}
Internal ID
{{ val(record.id) }}
Release date
{{ fmt_date(record.ReleaseDate) }}
Version
{{ val(record.version) }}
License
{{ val(record.license) }}
URL
{% if record.url %} {{ record.url }} {% else %}—{% endif %}
DOI
{% if record.doi_url %} {{ record.doi }} {% elif record.doi %}{{ record.doi }} {% else %}—{% endif %}
Publications
{% if record.publications and record.publications|length > 0 %} {% else %}

No linked publications available.

{% endif %}
Files
{% if record.files and record.files|length > 0 %}
    {% for f in record.files %}
  • {% if f.url %} {{ val(f.name) }} {% else %} {{ val(f.name) }} {% endif %} {% if f.size %} ({{ bytes_mb(f.size) }}){% endif %} {% if f.checksum %}
    {{ f.checksum }}{% endif %}
  • {% endfor %}
{% else %}

No files listed.

{% endif %}
Authors
{% if record.authors and record.authors|length > 0 %}
    {% for a in record.authors %}
  • {{ val(a.name) }} {% if a.affiliation %}
    {{ a.affiliation }} {% endif %} {% if a.orcid %}
    ORCID iD {{ a.orcid }} {% endif %}
  • {% endfor %}
{% else %}

No author information available.

{% endif %}
Funding
{% if record.funding and record.funding|length > 0 %}
    {% for f in record.funding %}
  • {{ val(f.funder) }} {% if f.acronym %} ({{ f.acronym }}){% endif %} {% if f.code %}
    {{ f.code }} {% endif %} {% if f.url %}
    Project {% endif %}
  • {% endfor %}
{% else %}

No funding information available.

{% endif %}
{# --------------------------- PLACEHOLDER TABS (fill later) --------------------------- #}
{% if bio_models %}
{% for bm in bio_models %} {% set ns_bm = namespace(cell_line=None, rrid=None, rrid_url=None, supplier=None, cell_type=None, cell_type_url=None, organ=None, organ_url=None, tissue=None, tissue_url=None, description=None, extra=[]) %} {% for a in bm.attributes or [] %} {% if a.name == 'Cell line' %} {% set ns_bm.cell_line = a.value %} {% elif a.name == 'RRID' %} {% set ns_bm.rrid = a.value %} {% for q in a.valqual or [] %} {% if q.name == 'URL' %}{% set ns_bm.rrid_url = q.value %}{% endif %} {% endfor %} {% elif a.name == 'Supplier' %} {% set ns_bm.supplier = a.value %} {% elif a.name == 'Cell type' %} {% for q in a.valqual or [] %} {% if q.name == 'URL' %}{% set ns_bm.cell_type_url = q.value %} {% elif q.name == 'TermId' %}{% set ns_bm.cell_type_url = 'https://purl.obolibrary.org/obo/' ~ q.value | replace(':','_') %}{% endif %} {% endfor %} {% set ns_bm.cell_type = a.value %} {% elif a.name == 'Organ' %} {% for q in a.valqual or [] %} {% if q.name == 'URL' %}{% set ns_bm.organ_url = q.value %} {% elif q.name == 'TermId' %}{% set ns_bm.organ_url = 'https://purl.obolibrary.org/obo/' ~ q.value | replace(':','_') %}{% endif %} {% endfor %} {% set ns_bm.organ = a.value %} {% elif a.name == 'Tissue' %} {% for q in a.valqual or [] %} {% if q.name == 'URL' %}{% set ns_bm.tissue_url = q.value %} {% elif q.name == 'TermId' %}{% set ns_bm.tissue_url = 'https://purl.obolibrary.org/obo/' ~ q.value | replace(':','_') %}{% endif %} {% endfor %} {% set ns_bm.tissue = a.value %} {% elif a.name and a.name|lower == 'description' %} {% set ns_bm.description = a.value %} {% else %} {% if a.value %}{% set _ = ns_bm.extra.append(a) %}{% endif %} {% endif %} {% endfor %}
{# Primary: cell line name #}
{{ ns_bm.cell_line or '—' }}
{# RRID link #} {% if ns_bm.rrid %}
RRID: {% if ns_bm.rrid_url %} {{ ns_bm.rrid }} {% else %} {{ ns_bm.rrid }} {% endif %} {% if ns_bm.supplier %} {% if ns_bm.rrid %} · {% endif %}Supplier: {{ ns_bm.supplier }} {% endif %}
{% endif %} {# Muted secondary details #}
{% if ns_bio.organisms %} {% for org in ns_bio.organisms %} {% if org.url %} {{ org.value }} {% else %} {{ org.value }} {% endif %} {% if not loop.last %}, {% endif %} {% endfor %} {% endif %} {# Organ/Tissue: prefer per-cell-line (e.g. multi-model studies), fall back to section-level #} {% set _organ = ns_bm.organ or ns_bio.organ %} {% set _organ_url = ns_bm.organ_url or ns_bio.organ_url %} {% if _organ %} · {% if _organ_url %} {{ _organ }} {% else %} {{ _organ }} {% endif %} {% endif %} {% set _tissue = ns_bm.tissue or ns_bio.tissue %} {% set _tissue_url = ns_bm.tissue_url or ns_bio.tissue_url %} {% if _tissue %} · {% if _tissue_url %} {{ _tissue }} {% else %} {{ _tissue }} {% endif %} {% endif %} {% if ns_bm.cell_type %} · {% if ns_bm.cell_type_url %} {{ ns_bm.cell_type }} {% else %} {{ ns_bm.cell_type }} {% endif %} {% endif %} {% for a in ns_bm.extra %}
{{ a.name }}: {{ a.value }} {% endfor %}
{% if ns_bm.description %}

{{ ns_bm.description }}

{% endif %}
{% endfor %}
{% else %}

No biological model information available.

{% endif %}
{% set subs = data.metadata.raw_data.section.subsections if data.metadata and data.metadata.raw_data and data.metadata.raw_data.section else [] %} {% set chemicals = [] %} {% for s in subs %} {% if s.type and s.type|lower == 'chemical information' %} {% set _ = chemicals.append(s) %} {% endif %} {% endfor %} {% if chemicals|length > 0 %}
{% for chem in chemicals %} {# ---- Extract chemical fields from subsection attributes ---- #} {% set ns = namespace( name=None, cas=None, cid=None, cc_id=None, cc_url=None ) %} {% for a in chem.attributes or [] %} {% if a.name == 'Chemical' %} {% set ns.name = a.value %} {% elif a.name == 'CAS' %} {% set ns.cas = a.value %} {% elif a.name in ['CID', 'PubChemCID', 'PubChem CID'] %} {% set ns.cid = a.value %} {% elif a.name == 'CompoundCloudID' %} {% set ns.cc_id = a.value %} {% for q in a.valqual or [] %} {% if q.name == 'URL' %} {% set ns.cc_url = q.value %} {% endif %} {% endfor %} {% endif %} {% endfor %} {# ---- Render card in col-md-6 ---- #}
{# Optional: PubChem structure image (only if CID present) #} {% if ns.cid %}
Structure for CID {{ ns.cid }}
{% else %}
{% endif %}
{# Chemical name -> VHP4Safety platform compound page (derived from the CompoundCloud/Wiki ID) #}
{% if ns.cc_id and '[DRAFT]' not in ns.cc_id %} {{ ns.name or '—' }} {% else %} {{ ns.name or '—' }} {% endif %}
{# Identifiers row #}
{# CAS -> Common Chemistry search #} {% if ns.cas %} CAS: {{ ns.cas }} {% endif %} {# PubChem CID link #} {% if ns.cid %} {% if ns.cas %}
{% endif %} PubChem: CID {{ ns.cid }} {% endif %} {# CompoundCloud ID link (if you want it explicitly as well) #} {% if ns.cc_id %}
CompoundCloud: {% if ns.cc_url %} {{ ns.cc_id }} {% else %} {{ ns.cc_id }} {% endif %} {% endif %}
{% endfor %}
{% else %}

No chemical information available.

{% endif %}
{% set exposure_subs = [] %} {% for s in subs_bio %} {% if s.type and s.type|lower == 'exposure information' %} {% set _ = exposure_subs.append(s) %} {% endif %} {% endfor %} {% if exposure_subs %}
{% for ex in exposure_subs %} {% set ns_ex = namespace(exp_type=None, duration=None, duration_unit=None, bioassays=[], extra=[]) %} {% for a in ex.attributes or [] %} {% if a.name == 'Exposure type' %}{% set ns_ex.exp_type = a.value %} {% elif a.name == 'Exposure duration' %}{% set ns_ex.duration = a.value %} {% set du = (a.valqual | selectattr('name','equalto','Unit') | map(attribute='value') | list) if a.valqual else [] %} {% set ns_ex.duration_unit = du[0] if du else None %} {% elif a.name == 'Bioassay' %}{% set _ = ns_ex.bioassays.append(a.value) %} {% else %}{% if a.value %}{% set _ = ns_ex.extra.append(a) %}{% endif %} {% endif %} {% endfor %} {# nested per-regimen subsections (shared-parent + regimen-deltas form) #} {% set regimens = [] %} {% for grp in ex.subsections or [] %} {% for s in grp %} {% if s.type and s.type|lower == 'exposure regimen' %}{% set _ = regimens.append(s) %}{% endif %} {% endfor %} {% endfor %} {% if regimens %} {# auto-detect regimen attributes common to ALL regimens (vs varying) #} {% set names = [] %} {% for r in regimens %}{% for a in r.attributes or [] %}{% if a.name not in ['Bioassay','Regimen'] and a.name not in names %}{% set _ = names.append(a.name) %}{% endif %}{% endfor %}{% endfor %} {% set common = [] %} {% for nm in names %} {% set cn = namespace(vals=[], count=0) %} {% for r in regimens %}{% for a in r.attributes or [] %}{% if a.name == nm %}{% set cn.count = cn.count + 1 %}{% if a.value not in cn.vals %}{% set _ = cn.vals.append(a.value) %}{% endif %}{% endif %}{% endfor %}{% endfor %} {% if cn.count == regimens|length and cn.vals|length == 1 %}{% set _ = common.append(nm) %}{% endif %} {% endfor %} {% for r in regimens %} {% set rb = namespace(name=None, bioassays=[], uniq=[]) %} {% for a in r.attributes or [] %} {% if a.name == 'Regimen' %}{% set rb.name = a.value %} {% elif a.name == 'Bioassay' %}{% set _ = rb.bioassays.append(a.value) %} {% elif a.name not in common and a.value %}{% set _ = rb.uniq.append(a) %}{% endif %} {% endfor %}
{% if rb.uniq %}{% for a in rb.uniq %}{% if not loop.first %} · {% endif %}{{ a.name }}: {{ a.value }}{% set u = (a.valqual | selectattr('name','equalto','Unit') | map(attribute='value') | list) if a.valqual else [] %}{% if u %} {{ u[0] }}{% endif %}{% endfor %}{% else %}{{ rb.name or 'Regimen' }}{% endif %}
{# shared items — valid for all regimens, repeated in each card for clarity #} {% if ns_ex.extra or common or ns_ex.bioassays %}
{% set sp = namespace(n=false) %} {% for a in ns_ex.extra %}{% if sp.n %} · {% endif %}{{ a.name }}: {{ a.value }}{% set eu = (a.valqual | selectattr('name','equalto','Unit') | map(attribute='value') | list) if a.valqual else [] %}{% if eu %} {{ eu[0] }}{% endif %}{% set sp.n = true %}{% endfor %} {% for nm in common %}{% if sp.n %} · {% endif %}{% set fa = regimens[0].attributes | selectattr('name','equalto',nm) | list | first %}{{ nm }}: {{ fa.value }}{% set u = (fa.valqual | selectattr('name','equalto','Unit') | map(attribute='value') | list) if fa.valqual else [] %}{% if u %} {{ u[0] }}{% endif %}{% set sp.n = true %}{% endfor %} {% if ns_ex.bioassays %}{% if sp.n %} · {% endif %}Bioassays: {% for bn in ns_ex.bioassays %}{% if not loop.first %}, {% endif %}{% set m = namespace(url=None) %}{% for b in ns_bio.bioassays %}{% if b.value and b.value|lower|trim == bn|lower|trim %}{% set m.url = b.url or b.bao_url %}{% endif %}{% endfor %}{% if m.url %} {{ bn }}{% else %}{{ bn }}{% endif %}{% endfor %}{% endif %}
{% endif %} {% if rb.bioassays %}
Bioassays: {% for bn in rb.bioassays %}{% if not loop.first %}, {% endif %}{% set m = namespace(url=None) %}{% for b in ns_bio.bioassays %}{% if b.value and b.value|lower|trim == bn|lower|trim %}{% set m.url = b.url or b.bao_url %}{% endif %}{% endfor %}{% if m.url %} {{ bn }}{% else %}{{ bn }}{% endif %}{% endfor %}
{% endif %}
{% endfor %} {% else %}
{{ ns_ex.exp_type | capitalize if ns_ex.exp_type else '—' }} exposure
{% if ns_ex.duration %}
Duration: {{ ns_ex.duration }}{% if ns_ex.duration_unit %} {{ ns_ex.duration_unit }}{% endif %}
{% endif %} {% if ns_ex.bioassays %}
Bioassays: {% for bn in ns_ex.bioassays %}{% if not loop.first %}, {% endif %}{% set m = namespace(url=None) %}{% for b in ns_bio.bioassays %}{% if b.value and b.value|lower|trim == bn|lower|trim %}{% set m.url = b.url or b.bao_url %}{% endif %}{% endfor %}{% if m.url %} {{ bn }}{% else %}{{ bn }}{% endif %}{% endfor %}
{% endif %} {% if ns_ex.extra %}
{% for a in ns_ex.extra %}{% if not loop.first %} · {% endif %}{{ a.name }}: {{ a.value }}{% set eu = (a.valqual | selectattr('name','equalto','Unit') | map(attribute='value') | list) if a.valqual else [] %}{% if eu %} {{ eu[0] }}{% endif %}{% endfor %}
{% endif %}
{% endif %} {% endfor %}
{% else %}

No exposure information available.

{% endif %}
{% set endpoint_subs = [] %} {% for s in subs_bio %} {% if s.type and s.type|lower == 'endpoint readout information' %} {% set _ = endpoint_subs.append(s) %} {% endif %} {% endfor %} {% if endpoint_subs %}
Bioassays
    {% for ep in endpoint_subs %} {% set ns_ep = namespace(bioassay_name=None, aop_events=[], instrument=None, manufacturer=None, measured_entity=None, readout=None, readout_unit=None, time_point=None, time_point_unit=None, replicates=None, tech_replicates=None, pos_controls=[], description=None, extra=[]) %} {% for a in ep.attributes or [] %} {% if a.name == 'Bioassay' %}{% set ns_ep.bioassay_name = a.value %} {% elif a.name == 'AOP event' %} {% set ev = namespace(url=None) %} {% for q in a.valqual or [] %}{% if q.name == 'URL' %}{% set ev.url = q.value %}{% endif %}{% endfor %} {% set _ = ns_ep.aop_events.append({'value': a.value, 'url': ev.url}) %} {% elif a.name == 'Detection instrument' %}{% set ns_ep.instrument = a.value %} {% elif a.name == 'Instrument manufacturer' %}{% set ns_ep.manufacturer = a.value %} {% elif a.name == 'Measured entity' %}{% set ns_ep.measured_entity = a.value %} {% elif a.name == 'Endpoint readout' %}{% set ns_ep.readout = a.value %} {% set ru = (a.valqual | selectattr('name','equalto','Unit') | map(attribute='value') | list) if a.valqual else [] %} {% set ns_ep.readout_unit = ru[0] if ru else None %} {% elif a.name == 'Time point' %}{% set ns_ep.time_point = a.value %} {% set tu = (a.valqual | selectattr('name','equalto','Unit') | map(attribute='value') | list) if a.valqual else [] %} {% set ns_ep.time_point_unit = tu[0] if tu else None %} {% elif a.name == 'Replicates' %}{% set ns_ep.replicates = a.value %} {% elif a.name == 'Technical replicates' %}{% set ns_ep.tech_replicates = a.value %} {% elif a.name == 'Positive control' %} {% set pc = namespace(name=a.value, url=None, conc=None, conc_unit=None, dur=None, dur_unit=None) %} {% for q in a.valqual or [] %} {% if q.name == 'URL' %}{% set pc.url = q.value %} {% elif q.name == 'CID' and not pc.url %}{% set pc.url = 'https://pubchem.ncbi.nlm.nih.gov/compound/' ~ q.value %} {% elif q.name|lower == 'concentration' %}{% set pc.conc = q.value %} {% set cu = (q.valqual | selectattr('name','equalto','Unit') | map(attribute='value') | list) if q.valqual else [] %}{% set pc.conc_unit = cu[0] if cu else None %} {% elif q.name == 'Exposure duration' %}{% set pc.dur = q.value %} {% set du = (q.valqual | selectattr('name','equalto','Unit') | map(attribute='value') | list) if q.valqual else [] %}{% set pc.dur_unit = du[0] if du else None %} {% endif %} {% endfor %} {% set _ = ns_ep.pos_controls.append(pc) %} {% elif a.name and a.name|lower == 'description' %}{% set ns_ep.description = a.value %} {% else %}{% if a.value %}{% set _ = ns_ep.extra.append(a) %}{% endif %} {% endif %} {% endfor %} {# Resolve which bioassay this readout block describes #} {% set ns_ba = namespace(value=None, url=None, bao_url=None, ontology=None) %} {% if ns_ep.bioassay_name %} {% for b in ns_bio.bioassays %} {% if b.value and b.value|lower|trim == ns_ep.bioassay_name|lower|trim %} {% set ns_ba.value = b.value %} {% set ns_ba.url = b.url %} {% set ns_ba.bao_url = b.bao_url %} {% set ns_ba.ontology = b.ontology %} {% endif %} {% endfor %} {% if not ns_ba.value %}{% set ns_ba.value = ns_ep.bioassay_name %}{% endif %} {% elif ns_bio.bioassays|length == 1 %} {% set ns_ba.value = ns_bio.bioassays[0].value %} {% set ns_ba.url = ns_bio.bioassays[0].url %} {% set ns_ba.bao_url = ns_bio.bioassays[0].bao_url %} {% set ns_ba.ontology = ns_bio.bioassays[0].ontology %} {% endif %}
  • {% if ns_ba.value %} {% set ba_link = ns_ba.url or ns_ba.bao_url %} {% if ba_link %} {{ ns_ba.value }} {% else %} {{ ns_ba.value }} {% endif %} {% if ns_ba.ontology %} {% if ns_ba.bao_url %} {{ ns_ba.ontology }} {% else %} {{ ns_ba.ontology }} {% endif %} {% endif %} {% else %} {{ ns_ep.instrument or '—' }} {% endif %}
    {% if ns_ep.aop_events %} {% for ev in ns_ep.aop_events %}
    {% if ev.url %}{{ ev.value }}{% else %}{{ ev.value }}{% endif %}
    {% endfor %} {% endif %} {% if ns_ba.value and ns_ep.instrument %}
    Instrument: {{ ns_ep.instrument }}
    {% endif %} {% if ns_ep.manufacturer %}
    Manufacturer: {{ ns_ep.manufacturer }}
    {% endif %}
    {% set sep = namespace(needed=false) %} {% if ns_ep.measured_entity %} Measured: {{ ns_ep.measured_entity }} {% set sep.needed = true %} {% endif %} {% if ns_ep.readout %} {% if sep.needed %} · {% endif %} Readout: {{ ns_ep.readout }}{% if ns_ep.readout_unit %} ({{ ns_ep.readout_unit }}){% endif %} {% set sep.needed = true %} {% endif %} {% if ns_ep.time_point %} {% if sep.needed %} · {% endif %} Time point: {{ ns_ep.time_point }}{% if ns_ep.time_point_unit %} {{ ns_ep.time_point_unit }}{% endif %} {% set sep.needed = true %} {% endif %} {% if ns_ep.replicates %} {% if sep.needed %} · {% endif %} Replicates: {{ ns_ep.replicates }} {% set sep.needed = true %} {% endif %} {% if ns_ep.tech_replicates %} {% if sep.needed %} · {% endif %} Technical replicates: {{ ns_ep.tech_replicates }} {% set sep.needed = true %} {% endif %} {% for pc in ns_ep.pos_controls %} {% if sep.needed %} · {% endif %} Positive control: {% if pc.url %}{{ pc.name }}{% else %}{{ pc.name }}{% endif %}{% if pc.conc %} ({{ pc.conc }}{% if pc.conc_unit %} {{ pc.conc_unit }}{% endif %}{% if pc.dur %}, {{ pc.dur }}{% if pc.dur_unit %} {{ pc.dur_unit }}{% endif %}{% endif %}){% endif %} {% set sep.needed = true %} {% endfor %} {% for a in ns_ep.extra %}
    {{ a.name }}: {{ a.value }}{% set eu = (a.valqual | selectattr('name','equalto','Unit') | map(attribute='value') | list) if a.valqual else [] %}{% if eu %} {{ eu[0] }}{% endif %} {% endfor %}
  • {% endfor %}
{% endif %} {% if not endpoint_subs and not ns_bio.bioassays %}

No endpoint readout information available.

{% endif %} {# AOP Linkage: key events aggregated from the per-bioassay endpoint readouts (single source of truth), each annotated with the bioassay(s) that measure it. #} {% set ns_aop = namespace(events=[], names=[]) %} {% for ep in endpoint_subs %} {% set epx = namespace(ba=None, evs=[]) %} {% for a in ep.attributes or [] %} {% if a.name == 'Bioassay' %}{% set epx.ba = a.value %} {% elif a.name == 'AOP event' %} {% set ev = namespace(url=None) %} {% for q in a.valqual or [] %}{% if q.name == 'URL' %}{% set ev.url = q.value %}{% endif %}{% endfor %} {% set _ = epx.evs.append({'value': a.value, 'url': ev.url}) %} {% endif %} {% endfor %} {% for ev in epx.evs %} {% set key = ev.value|lower|trim %} {% if key in ns_aop.names %} {% set idx = ns_aop.names.index(key) %} {% if epx.ba and epx.ba not in ns_aop.events[idx].bioassays %}{% set _ = ns_aop.events[idx].bioassays.append(epx.ba) %}{% endif %} {% else %} {% set _ = ns_aop.names.append(key) %} {% set _ = ns_aop.events.append({'value': ev.value, 'url': ev.url, 'bioassays': ([epx.ba] if epx.ba else [])}) %} {% endif %} {% endfor %} {% endfor %} {% if ns_bio.aop_name or ns_aop.events %}
AOP Linkage
    {% if ns_bio.aop_name %}
  • {% if ns_bio.aop_url %} {{ ns_bio.aop_name }} {% else %} {{ ns_bio.aop_name }} {% endif %}
  • {% endif %} {% for ev in ns_aop.events %}
  • {% if ev.url %} {{ ev.value }} {% else %} {{ ev.value }} {% endif %}
  • {% endfor %}
{% endif %}

Coming soon: normalization, model fitting, statistics, QC, etc.

{# --------------------------- PUBLICATIONS TAB (DOI-based) --------------------------- #}
{% if record.doi %}

Loading dataset citation…

{% else %}

No DOI available for citation.

{% endif %}
{% if record.type=="study"%} {% endif %}
{% endwith %} {% endblock %}