{% load customtags %}
{%if show_detail != True %}
{% include "compound_smiles_draw.html" with id=compound.id smile=compound.canonical_smile %}

{{ compound.id }}{% if compound.replaced_with is not None %} replaced with {{ compound.replaced_with.id }}{% elif compound.is_validated is False %}not validated{% endif %}

{% if compound.tanimoto != None %}

{{ compound.tanimoto }}

{% endif %}

Chemistry rules

Lipinski's RO5 Veber Pfizer's 3/75
{% rule_status_icon compound.lipinsky "Lipinski's RO5" %} {% rule_status_icon compound.veber "Veber" %} {% rule_status_icon compound.pfizer "Pfizer" %}
{% endif %}

Identifiers

{%if compound.pubchem_id or compound.chembl_id or compound.chemspider_id or compound.ligand_id %}

External links

{% include "compound_db_links.html" %} {% endif %} {%if show_detail == True and compound.inchikey %}

External search

{% include "compound_dbsearch_links.html" %} {% endif %} {% if compound.biblio_refs %}

Bibliography ({{compound.biblio_refs.count}})

{% for biblio_ref in compound.biblio_refs %} {% endfor %}
Publication Name
{% include "biblio_citation.html" with bibliography=biblio_ref.bibliography%} {{ biblio_ref.compound_name }}

Pharmacological data

{% include "compound_test_counts.html" with compound=compound show_bibrefs=False %}

Targets

{% for row in compound.get_target_activities_table %} {% endfor %}
PPI family Best activity Diseases MMoA
{{ row.family.name }} {{ row.best_activity|floatformat:2 }} {% for disease in row.diseases %} {{ disease.name }} {% if not forloop.last %}, {% endif %} {% endfor %} {% for modulation_type in row.modulation_types %} {{ modulation_type }} {% if not forloop.last %}, {% endif %} {% endfor %}
{% endif %}