{% extends "./atlas.html" %} {% comment %} Gene expression and orthologs comparison page for a gene from a given species Features: - Gene selection via select element or using URL path parameters, such as `/atlas/Homo_sapiens/gene/BRCA1` - Mockup plot if no gene is selected - Expression data for selected gene and orthologs: - Fetches via REST API - Plots for data - Download data button - Copy link to clipboard button Input: - species: Species object from `models.py` {% endcomment %} {% block title %} {{ dataset }} {{ gene|default:'Gene' }} {% endblock title %} {% block structured_data %} {% comment %} The canonical Gene entity page is `entry/gene/...`, so the emitted node points its `url` there and records this page as `mainEntityOfPage`. {% endcomment %} {% load bioschemas %} {% bioschemas_gene gene %} {% endblock structured_data %} {% block content %} {% include "../components/modals/list_editor.html" with id="selection" type="gene_lists" %}
{% include "../components/select/gene.html" with gene=gene placeholder="Search gene by symbol, description or domains..." display="all" redirect="arg" %} {% include "../components/warning_alert.html" %} {% if gene %} {% load headings %} {% h1 gene.get_html_link id="gene" %}

Description: {{ gene.description|default:"No description available" }}

Pfam domains {{ gene.get_domain_html_links|default:'—' }}
Gene lists {{ gene.get_genelist_html_links|default:'—' }}
Gene modules {% for member in gene.modules.all %} {% if member.module.dataset == dataset %} {{ member.module.get_html_link }}: {{ member.membership_score }}
{% endif %} {% empty %} — {% endfor %}
Orthogroups {{ gene.get_orthogroup_html_links|default:"—" }}
{% h1 "Metacell projection" id="projection" %} {% include "../components/plots/metacell_projection.html" with id="projection" %} {% h1 "Gene expression" id="expression" %} {% include "../components/plots/expression_plot.html" with species=species gene=gene %} {% h1 "Correlated genes" id="correlation" %} {% include "../components/tables/gene_correlation.html" with id="correlation" dataset=dataset species=species gene=gene gene2="" %} {% h1 "Orthologs" id="orthologs" %} {% include "../components/tables/expression_conservation.html" with id="orthologs" dataset=dataset species=species gene=gene %} {% else %} {% include "../components/mockup/barplot.html" %} {% endif %} {% endblock content %}