{% macro cancer_individuals_table(case, institute, tissues) %}
Individuals
{% for ind in case.individuals %} {% if ind.phenotype_human == "normal" %} {% else %} {% endif %} {% if ind.phenotype_human == "tumor" %} {% else %} {% endif %} {% endfor %}
Sample Tumor Type Phenotype Sequencing TMB MSI Tumor Purity Tissue
{{ ind.display_name }}N/A{{ ind.phenotype_human }} {{ ind.analysis_type|upper }} {{ ind.tmb or 'N/A' }} {{ ind.msi or 'N/A' }} {% if ind.tumor_purity|float <0.2 %}    {% endif %}N/A
{% endmacro %} {% macro individuals_table(case, institute, tissues) %}
Individuals
{% for ind in case.individuals %} {% endfor %}
Sample Sex Age Phenotype Sequencing Ancestry (pred.) Parenthood CGH Tissue
{{ ind.display_name }} {% if ind.sex_human in ['female','male'] %} {% else %} {{ind.sex_human}} {% endif %} {% if ind.confirmed_sex %} {% endif %} {{ ind.phenotype_human }} {{ ind.analysis_type|upper }} {{ ind.predicted_ancestry or 'N/A' }} {% if ind.confirmed_parent == True %} {% elif ind.confirmed_parent == False %} {% else %} N/A {% endif %} {% if ind.vcf2cytosure %} {% else %} N/A {% endif %}
{% endmacro %}