From 8e4e15ae62989f07d3ca8512165ba2a93c42aa94 Mon Sep 17 00:00:00 2001 From: Frederick Muriuki Muriithi Date: Fri, 12 Apr 2024 09:17:49 +0300 Subject: Consistently check for possibly non-existent data The "geno-dataset", "tissue", "pheno-study" and "pheno-dataset" data "objects" might not exist for a particular uploaded bundle, so we check in a consistent manner to ensure they are provided when needed. --- qc_app/templates/rqtl2/summary-info.html | 11 +++++++++++ 1 file changed, 11 insertions(+) (limited to 'qc_app/templates/rqtl2') diff --git a/qc_app/templates/rqtl2/summary-info.html b/qc_app/templates/rqtl2/summary-info.html index 3882c9c..9a9b6dd 100644 --- a/qc_app/templates/rqtl2/summary-info.html +++ b/qc_app/templates/rqtl2/summary-info.html @@ -19,14 +19,25 @@
Population
{{population.InbredSetName}}
+ {%if geno_dataset%}
Genotype Dataset
{{geno_dataset.Name}} ({{geno_dataset.FullName}})
+ {%endif%} + {%if tissue%} +
Tissue
+
{{tissue.TissueName}} ({{tissue.Name}}, {{tissue.Short_Name}})
+ {%endif%} + + {%if probe_study%}
ProbeSet Study
{{probe_study.Name}} ({{probe_study.FullName}})
+ {%endif%} + {%if probe_dataset%}
ProbeSet Dataset
{{probe_dataset.Name2}} ({{probe_dataset.FullName}})
+ {%endif%}