diff options
author | zsloan | 2022-07-12 19:06:07 +0000 |
---|---|---|
committer | zsloan | 2022-07-12 19:06:07 +0000 |
commit | 1e403623792daca83875b5fefd5193455facb88e (patch) | |
tree | 1c86c4681812a3be52f1021a1ad4d61c35f1b43e /wqflask/base | |
parent | 81f5855a2e7b671bff41ee4b05cbdaeba5ea2792 (diff) | |
download | genenetwork2-1e403623792daca83875b5fefd5193455facb88e.tar.gz |
Include genotypes for F1s/reference/non-reference strains when fetching
sample data for genotype traits
Diffstat (limited to 'wqflask/base')
-rw-r--r-- | wqflask/base/data_set.py | 8 |
1 files changed, 8 insertions, 0 deletions
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 |