{% macro cancer_individuals_table(case, institute, tissues, gens_info=None) %}
{% 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 CGH Tissue
{{ ind.display_name }}{% if gens_info.display and ind.analysis_type|upper == "WGS" %} CN profile {% endif %}N/A{{ ind.phenotype_human }} {{ ind.analysis_type|upper }} {{ ind.tmb or 'N/A' }} {{ ind.msi or 'N/A' }}
{% if not ind.tumor_purity or ind.tumor_purity|float < 0.2 %}
{% endif %}
N/A {% if ind.vcf2cytosure %} {% else %} N/A {% endif %}
{% endmacro %} {% macro individuals_table(case, institute, tissues, display_rerunner, gens_info=None) %}
{% if display_rerunner %}
{% endif %}
{% for ind in case.individuals %} {% endfor %}
Sample Sex Age Phenotype Sequencing Ancestry (pred.) Kinship CGH Tissue
{% if gens_info.display %} CN profile {% endif %}
{% if ind.sex_human in ['female','male'] %} {% if ind.sex_human == 'female' %} F {% elif ind.sex_human == 'male' %} M {% else %} {{ind.sex_human}} {% endif %} {% 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 %}