File tree Expand file tree Collapse file tree 1 file changed +7
-1
lines changed
v03_pipeline/lib/reference_datasets Expand file tree Collapse file tree 1 file changed +7
-1
lines changed Original file line number Diff line number Diff line change 12
12
CLINVAR_PATHOGENICITIES_LOOKUP ,
13
13
)
14
14
from v03_pipeline .lib .model .definitions import ReferenceGenome
15
- from v03_pipeline .lib .reference_datasets .misc import copy_to_cloud_storage , vcf_to_ht
15
+ from v03_pipeline .lib .reference_datasets .misc import (
16
+ BIALLELIC ,
17
+ copy_to_cloud_storage ,
18
+ vcf_to_ht ,
19
+ )
16
20
17
21
CLINVAR_GOLD_STARS_LOOKUP = hl .dict (
18
22
{
@@ -166,6 +170,8 @@ def get_ht(
166
170
shutil .copyfileobj (r .raw , tmp_file )
167
171
cloud_tmp_file = copy_to_cloud_storage (tmp_file .name )
168
172
ht = vcf_to_ht (cloud_tmp_file , reference_genome )
173
+ # Filter deletions present as single alleles
174
+ ht = ht .filter (hl .len (ht .alleles ) == BIALLELIC )
169
175
submitters_ht = get_submission_summary_ht ()
170
176
ht = ht .annotate (
171
177
submitters = submitters_ht [ht .rsid ].Submitters ,
You can’t perform that action at this time.
0 commit comments