Skip to content

Commit

Permalink
Adding 'not hom alt' filter setting
Browse files Browse the repository at this point in the history
  • Loading branch information
holtgrewe committed Apr 7, 2021
1 parent 324181a commit 9c4751d
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 0 deletions.
2 changes: 2 additions & 0 deletions HISTORY.rst
Expand Up @@ -9,12 +9,14 @@ HEAD (unreleased)
End-User Summary
================

- Adding "not hom. alt." filter setting.
- Allowing users to easily copy case UUID by icon in case heading.
- Fixing bug that made the user icon top right disappear.

Full Change List
================

- Adding "not hom. alt." filter setting.
- Improving admin configuration documentation.
- Extending admin tuning documentation.
- Allowing users to easily copy case UUID by icon in case heading.
Expand Down
2 changes: 2 additions & 0 deletions variants/forms.py
Expand Up @@ -126,6 +126,7 @@ class Meta:
("ref", "0/0"),
("het", "0/1"),
("hom", "1/1"),
("non-hom", "0/0 or 0/1"),
("variant", "variant"),
("non-variant", "non-variant"),
("non-reference", "non-reference"),
Expand Down Expand Up @@ -178,6 +179,7 @@ class Meta:
"ref": ("0/0", "0|0", "0"),
"het": ("0/1", "0|1", "1/0", "1|0", "1"),
"hom": ("1/1", "1|1", "1"),
"non-hom": ("0/0", "0|0", "0", "0/1", "0|1", "1/0", "1|0", "1"),
"reference": ("0/0", "0|0", "0"),
"variant": ("1/0", "1|0", "0/1", "0|1", "1/1", "1|1", "1"),
"non-variant": ("0/0", "./.", "0"),
Expand Down
9 changes: 9 additions & 0 deletions variants/tests/test_queries.py
Expand Up @@ -2192,6 +2192,15 @@ def test_genotype_gt_variant_export(self):
def test_genotype_gt_variant_vcf(self):
self.run_query(CaseExportVcfQuery, {"%s_gt" % self.patient: "variant"}, 6)

def test_genotype_gt_non_hom_filter(self):
self.run_query(CasePrefetchQuery, {"%s_gt" % self.patient: "non-hom"}, 6)

def test_genotype_gt_non_hom_export(self):
self.run_query(CaseExportTableQuery, {"%s_gt" % self.patient: "non-hom"}, 6)

def test_genotype_gt_non_hom_vcf(self):
self.run_query(CaseExportVcfQuery, {"%s_gt" % self.patient: "non-hom"}, 6)

def test_genotype_gt_non_variant_filter(self):
self.run_query(CasePrefetchQuery, {"%s_gt" % self.patient: "non-variant"}, 2)

Expand Down

0 comments on commit 9c4751d

Please sign in to comment.