Skip to content

Commit 5b33211

Browse files
authored
add apogee2 score (#955)
* add apogee2 score * update mitimpact script * fix other update vat test * score
1 parent c7c6fb9 commit 5b33211

23 files changed

+15
-15
lines changed

download_and_create_reference_datasets/v02/mito/write_mito_mitimpact_ht.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,13 +3,13 @@
33
from download_and_create_reference_datasets.v02.mito.utils import load
44

55
CONFIG = {
6-
'input_path': 'https://mitimpact.css-mendel.it/cdn/MitImpact_db_3.0.7.txt.zip',
6+
'input_path': 'https://mitimpact.css-mendel.it/cdn/MitImpact_db_3.1.3.txt.zip',
77
'input_type': 'tsv',
8-
'output_path': 'gs://seqr-reference-data/GRCh38/mitochondrial/MitImpact/MitImpact_db_3.0.7.ht',
8+
'output_path': 'gs://seqr-reference-data/GRCh38/mitochondrial/MitImpact/MitImpact_db_3.1.3.ht',
99
'annotate': {
1010
'locus': lambda ht: hl.locus('chrM', hl.parse_int32(ht.Start)),
1111
'alleles': lambda ht: [ht.Ref, ht.Alt],
12-
'APOGEE_score': lambda ht: hl.parse_float(ht.APOGEE_score),
12+
'APOGEE2_score': lambda ht: hl.parse_float(ht.APOGEE2_score),
1313
},
1414
}
1515

v03_pipeline/lib/reference_data/config.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -503,9 +503,9 @@ def custom_mpc_select(ht):
503503
},
504504
'mitimpact': {
505505
'38': {
506-
'version': '3.0.7',
507-
'path': 'gs://seqr-reference-data/GRCh38/mitochondrial/MitImpact/MitImpact_db_3.0.7.ht',
508-
'select': {'score': 'APOGEE_score'},
506+
'version': '3.1.3',
507+
'path': 'gs://seqr-reference-data/GRCh38/mitochondrial/MitImpact/MitImpact_db_3.1.3.ht',
508+
'select': {'score': 'APOGEE2_score'},
509509
},
510510
},
511511
'hmtvar': {

v03_pipeline/lib/tasks/reference_data/update_variant_annotations_table_with_updated_reference_dataset_test.py

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -604,13 +604,13 @@
604604
'mitimpact': {
605605
'38': {
606606
**CONFIG['mitimpact']['38'],
607-
'source_path': 'gs://seqr-reference-data/GRCh38/mitochondrial/MitImpact/MitImpact_db_3.0.7.ht',
607+
'source_path': 'gs://seqr-reference-data/GRCh38/mitochondrial/MitImpact/MitImpact_db_3.1.3.ht',
608608
'custom_import': lambda *_: hl.Table.parallelize(
609609
[],
610610
hl.tstruct(
611611
locus=hl.tlocus('GRCh38'),
612612
alleles=hl.tarray(hl.tstr),
613-
APOGEE_score=hl.tfloat64,
613+
APOGEE2_score=hl.tfloat64,
614614
),
615615
key=['locus', 'alleles'],
616616
globals=hl.Struct(),
@@ -1008,7 +1008,7 @@ def test_update_vat_with_updated_rdc_mito_38(
10081008
helix_mito='gs://seqr-reference-data/GRCh38/mitochondrial/Helix/HelixMTdb_20200327.ht',
10091009
hmtvar='gs://seqr-reference-data/GRCh38/mitochondrial/HmtVar/HmtVar%20Jan.%2010%202022.ht',
10101010
mitomap='gs://seqr-reference-data/GRCh38/mitochondrial/MITOMAP/mitomap-confirmed-mutations-2022-02-04.ht',
1011-
mitimpact='gs://seqr-reference-data/GRCh38/mitochondrial/MitImpact/MitImpact_db_3.0.7.ht',
1011+
mitimpact='gs://seqr-reference-data/GRCh38/mitochondrial/MitImpact/MitImpact_db_3.1.3.ht',
10121012
clinvar_mito='https://ftp.ncbi.nlm.nih.gov/pub/clinvar/vcf_GRCh38/clinvar.vcf.gz',
10131013
dbnsfp_mito='gs://seqr-reference-data/GRCh38/dbNSFP/v4.2/dbNSFP4.2a_variant.with_new_scores.ht',
10141014
high_constraint_region_mito='gs://seqr-reference-data/GRCh38/mitochondrial/Helix high constraint intervals Feb-15-2022.tsv',
@@ -1019,7 +1019,7 @@ def test_update_vat_with_updated_rdc_mito_38(
10191019
helix_mito='20200327',
10201020
hmtvar='Jan. 10 2022',
10211021
mitomap='Feb. 04 2022',
1022-
mitimpact='3.0.7',
1022+
mitimpact='3.1.3',
10231023
clinvar_mito='2023-07-22',
10241024
dbnsfp_mito='4.2',
10251025
high_constraint_region_mito='Feb-15-2022',
@@ -1095,7 +1095,7 @@ def test_update_vat_with_updated_rdc_mito_38(
10951095
),
10961096
hmtvar=hl.Struct(score=0.6700000166893005),
10971097
mitomap=None,
1098-
mitimpact=hl.Struct(score=0.5199999809265137),
1098+
mitimpact=hl.Struct(score=0.42500001192092896),
10991099
high_constraint_region_mito=True,
11001100
local_constraint_mito=hl.Struct(score=0.5),
11011101
),

v03_pipeline/lib/tasks/update_variant_annotations_table_with_new_samples_test.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -971,7 +971,7 @@ def test_mito_update_vat(
971971
helix_mito='gs://seqr-reference-data/GRCh38/mitochondrial/Helix/HelixMTdb_20200327.ht',
972972
hmtvar='gs://seqr-reference-data/GRCh38/mitochondrial/HmtVar/HmtVar%20Jan.%2010%202022.ht',
973973
mitomap='gs://seqr-reference-data/GRCh38/mitochondrial/MITOMAP/mitomap-confirmed-mutations-2022-02-04.ht',
974-
mitimpact='gs://seqr-reference-data/GRCh38/mitochondrial/MitImpact/MitImpact_db_3.0.7.ht',
974+
mitimpact='gs://seqr-reference-data/GRCh38/mitochondrial/MitImpact/MitImpact_db_3.1.3.ht',
975975
local_constraint_mito='gs://seqr-reference-data/GRCh38/mitochondrial/local_constraint.tsv',
976976
),
977977
versions=hl.Struct(
@@ -982,7 +982,7 @@ def test_mito_update_vat(
982982
helix_mito='20200327',
983983
hmtvar='Jan. 10 2022',
984984
mitomap='Feb. 04 2022',
985-
mitimpact='3.0.7',
985+
mitimpact='3.1.3',
986986
local_constraint_mito='2024-07-24',
987987
),
988988
enums=hl.Struct(
Binary file not shown.
Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
This folder comprises a Hail (www.hail.is) native Table or MatrixTable.
2-
Written with version 0.2.133-4c60fddb171a
3-
Created at 2024/11/02 15:10:48
2+
Written with version 0.2.132-678e1f52b999
3+
Created at 2024/11/07 10:28:31

0 commit comments

Comments
 (0)