From 1e403623792daca83875b5fefd5193455facb88e Mon Sep 17 00:00:00 2001 From: zsloan Date: Tue, 12 Jul 2022 19:06:07 +0000 Subject: Include genotypes for F1s/reference/non-reference strains when fetching sample data for genotype traits --- wqflask/base/data_set.py | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/wqflask/base/data_set.py b/wqflask/base/data_set.py index a7811a30..211c6752 100644 --- a/wqflask/base/data_set.py +++ b/wqflask/base/data_set.py @@ -1022,6 +1022,14 @@ class GenotypeDataSet(DataSet): results = g.db.execute(query, (webqtlDatabaseFunction.retrieve_species_id(self.group.name), trait, self.name)).fetchall() + + if self.group.name in webqtlUtil.ParInfo: + f1_1, f1_2, ref, nonref = webqtlUtil.ParInfo[self.group.name] + results.append([f1_1, 0, None, "N/A", f1_1]) + results.append([f1_2, 0, None, "N/A", f1_2]) + results.append([ref, -1, None, "N/A", ref]) + results.append([nonref, 1, None, "N/A", nonref]) + return results -- cgit v1.2.3