Skip to content

Commit c49b0fa

Browse files
authored
update biotype and consequence enums ids (#825) (#826)
* update ids * ruff
1 parent ddeab77 commit c49b0fa

File tree

3 files changed

+11
-18
lines changed

3 files changed

+11
-18
lines changed

v03_pipeline/lib/annotations/enums.py

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,6 @@
4848
'ambiguous_orf',
4949
'sense_intronic',
5050
'sense_overlapping',
51-
'antisense/antisense_RNA',
5251
'antisense',
5352
'known_ncrna',
5453
'pseudogene',
@@ -64,12 +63,9 @@
6463
'unprocessed_pseudogene',
6564
'artifact',
6665
'lincRNA',
67-
'lincrna',
6866
'macro_lncRNA',
6967
'3prime_overlapping_ncRNA',
7068
'disrupted_domain',
71-
'vaultRNA/vault_RNA',
72-
'vaultRNA',
7369
'vault_RNA',
7470
'bidirectional_promoter_lncRNA',
7571
'3prime_overlapping_ncrna',
@@ -91,9 +87,6 @@
9187
'frameshift_variant',
9288
'stop_lost',
9389
'start_lost',
94-
'transcript_amplification',
95-
'feature_elongation',
96-
'feature_truncation',
9790
'inframe_insertion',
9891
'inframe_deletion',
9992
'missense_variant',

v03_pipeline/lib/annotations/snv_indel_test.py

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -132,7 +132,7 @@ def test_sorted_transcript_consequences_37(
132132
hgvsp='ENSP00000317992.6:p.Ser556Leu',
133133
transcript_id='ENST00000327044',
134134
biotype_id=39,
135-
consequence_term_ids=[12],
135+
consequence_term_ids=[9],
136136
is_lof_nagnag=None,
137137
lof_filter_ids=[0, 1],
138138
),
@@ -145,7 +145,7 @@ def test_sorted_transcript_consequences_37(
145145
hgvsp=None,
146146
transcript_id='ENST00000477976',
147147
biotype_id=38,
148-
consequence_term_ids=[26, 29],
148+
consequence_term_ids=[23, 26],
149149
is_lof_nagnag=None,
150150
lof_filter_ids=None,
151151
),
@@ -158,7 +158,7 @@ def test_sorted_transcript_consequences_37(
158158
hgvsp=None,
159159
transcript_id='ENST00000483767',
160160
biotype_id=38,
161-
consequence_term_ids=[26, 29],
161+
consequence_term_ids=[23, 26],
162162
is_lof_nagnag=None,
163163
lof_filter_ids=None,
164164
),
@@ -220,7 +220,7 @@ def test_sorted_transcript_consequences_38(
220220
mane_select='NM_015658.4',
221221
mane_plus_clinical=None,
222222
biotype_id=39,
223-
consequence_term_ids=[12],
223+
consequence_term_ids=[9],
224224
exon=hl.Struct(index=15, total=19),
225225
intron=None,
226226
alphamissense=hl.Struct(pathogenicity=0.10000000149011612),
@@ -251,7 +251,7 @@ def test_sorted_transcript_consequences_38(
251251
mane_select=None,
252252
mane_plus_clinical=None,
253253
biotype_id=38,
254-
consequence_term_ids=[26, 29],
254+
consequence_term_ids=[23, 26],
255255
exon=hl.Struct(index=13, total=17),
256256
intron=None,
257257
alphamissense=hl.Struct(pathogenicity=0.9700000286102295),
@@ -282,7 +282,7 @@ def test_sorted_transcript_consequences_38(
282282
mane_select=None,
283283
mane_plus_clinical=None,
284284
biotype_id=38,
285-
consequence_term_ids=[26, 16, 29],
285+
consequence_term_ids=[23, 13, 26],
286286
exon=hl.Struct(index=1, total=5),
287287
intron=None,
288288
alphamissense=hl.Struct(pathogenicity=None),

v03_pipeline/lib/tasks/update_variant_annotations_table_with_new_samples_test.py

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -540,11 +540,11 @@ def test_multiple_update_vat(
540540
ht.locus.position <= 878809, # noqa: PLR2004
541541
).sorted_transcript_consequences.consequence_term_ids.collect(),
542542
[
543-
[[12], [26, 29], [26, 16, 29]],
544-
[[12], [26, 29], [26, 16, 29]],
545-
[[12], [26, 29], [26, 16, 29]],
546-
[[12], [26, 29], [26, 16, 29]],
547-
[[12], [26, 29], [26, 16, 29]],
543+
[[9], [23, 26], [23, 13, 26]],
544+
[[9], [23, 26], [23, 13, 26]],
545+
[[9], [23, 26], [23, 13, 26]],
546+
[[9], [23, 26], [23, 13, 26]],
547+
[[9], [23, 26], [23, 13, 26]],
548548
],
549549
)
550550
self.assertCountEqual(

0 commit comments

Comments
 (0)