Skip to content

Commit 7644ea5

Browse files
committed
merge
2 parents 5805f61 + 1987548 commit 7644ea5

File tree

81 files changed

+263
-66
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

81 files changed

+263
-66
lines changed

requirements-dev.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ idna==3.6
3838
# requests
3939
imagesize==1.4.1
4040
# via sphinx
41-
jinja2==3.1.2
41+
jinja2==3.1.3
4242
# via
4343
# -c requirements.txt
4444
# sphinx

requirements.in

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
elasticsearch==7.9.1
22
google-api-python-client>=1.8.0
3-
hail==0.2.122
3+
hail==0.2.128
44
luigi>=3.4.0
55
gnomad==0.6.4
6+
google-cloud-storage>=2.14.0

requirements.txt

Lines changed: 8 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -16,8 +16,6 @@ asttokens==2.4.1
1616
# via stack-data
1717
async-timeout==4.0.3
1818
# via aiohttp
19-
asyncinit==0.2.4
20-
# via hail
2119
attrs==23.1.0
2220
# via aiohttp
2321
avro==1.11.3
@@ -68,7 +66,7 @@ commonmark==0.9.1
6866
# via rich
6967
contourpy==1.2.0
7068
# via bokeh
71-
cryptography==42.0.0
69+
cryptography==42.0.4
7270
# via
7371
# azure-identity
7472
# azure-storage-blob
@@ -119,19 +117,19 @@ google-auth-httplib2==0.1.1
119117
# via google-api-python-client
120118
google-auth-oauthlib==0.8.0
121119
# via hail
122-
google-cloud-core==2.3.3
120+
google-cloud-core==2.4.1
123121
# via google-cloud-storage
124-
google-cloud-storage==2.13.0
125-
# via hail
122+
google-cloud-storage==2.14.0
123+
# via -r requirements.in
126124
google-crc32c==1.5.0
127125
# via
128126
# google-cloud-storage
129127
# google-resumable-media
130-
google-resumable-media==2.6.0
128+
google-resumable-media==2.7.0
131129
# via google-cloud-storage
132130
googleapis-common-protos==1.61.0
133131
# via google-api-core
134-
hail==0.2.122
132+
hail==0.2.128
135133
# via -r requirements.in
136134
hdbscan==0.8.33
137135
# via gnomad
@@ -204,7 +202,7 @@ numpy==1.26.2
204202
# scipy
205203
oauthlib==3.2.2
206204
# via requests-oauthlib
207-
orjson==3.9.10
205+
orjson==3.9.11
208206
# via hail
209207
packaging==23.2
210208
# via
@@ -254,9 +252,7 @@ pygments==2.17.2
254252
# ipython
255253
# rich
256254
pyjwt[crypto]==2.8.0
257-
# via
258-
# msal
259-
# pyjwt
255+
# via msal
260256
pyparsing==3.1.1
261257
# via httplib2
262258
pyspark==3.3.3

v03_pipeline/lib/annotations/enums.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -204,7 +204,7 @@
204204
'Likely_pathogenic/Likely_risk_allele',
205205
'Established_risk_allele',
206206
'Likely_risk_allele',
207-
'Conflicting_interpretations_of_pathogenicity',
207+
'Conflicting_classifications_of_pathogenicity',
208208
'Uncertain_risk_allele',
209209
'Uncertain_significance/Uncertain_risk_allele',
210210
'Uncertain_significance',

v03_pipeline/lib/annotations/fields_test.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,14 +31,16 @@ def setUp(self) -> None:
3131
),
3232
)
3333

34+
@patch('v03_pipeline.lib.vep.validate_vep_config_reference_genome')
3435
@patch('v03_pipeline.lib.vep.hl.vep')
35-
def test_get_formatting_fields(self, mock_vep: Mock) -> None:
36+
def test_get_formatting_fields(self, mock_vep: Mock, mock_validate: Mock) -> None:
3637
ht = hl.read_table(TEST_COMBINED_1)
3738
mock_vep.return_value = ht.annotate(vep=MOCK_VEP_DATA)
39+
mock_validate.return_value = None
3840
ht = run_vep(
3941
ht,
4042
DatasetType.SNV_INDEL,
41-
None,
43+
ReferenceGenome.GRCh38,
4244
)
4345
ht = ht.annotate(rsid='abcd')
4446
for reference_genome, expected_fields in [

v03_pipeline/lib/annotations/shared_test.py

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,13 @@
1010

1111

1212
class SharedAnnotationsTest(unittest.TestCase):
13+
@patch('v03_pipeline.lib.vep.validate_vep_config_reference_genome')
1314
@patch('v03_pipeline.lib.vep.hl.vep')
14-
def test_sorted_transcript_consequences(self, mock_vep: Mock) -> None:
15+
def test_sorted_transcript_consequences(
16+
self,
17+
mock_vep: Mock,
18+
mock_validate: Mock,
19+
) -> None:
1520
ht = hl.Table.parallelize(
1621
[
1722
{
@@ -30,10 +35,11 @@ def test_sorted_transcript_consequences(self, mock_vep: Mock) -> None:
3035
key=['locus', 'alleles'],
3136
)
3237
mock_vep.return_value = ht.annotate(vep=MOCK_VEP_DATA)
38+
mock_validate.return_value = None
3339
ht = run_vep(
3440
ht,
3541
DatasetType.SNV_INDEL,
36-
None,
42+
ReferenceGenome.GRCh38,
3743
)
3844
ht = ht.select(
3945
sorted_transcript_consequences=sorted_transcript_consequences(ht),

v03_pipeline/lib/logger.py

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
LOG_CONFIG = {
44
'version': 1,
5-
'disable_existing_loggers': True,
5+
'disable_existing_loggers': False,
66
'propagate': True,
77
'formatters': {
88
'default': {
@@ -22,6 +22,12 @@
2222
'handlers': ['default'],
2323
'propagate': True,
2424
},
25+
'py4j': {
26+
'level': 'CRITICAL',
27+
},
28+
'urllib3': {
29+
'level': 'CRITICAL',
30+
},
2531
},
2632
}
2733

v03_pipeline/lib/model/definitions.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,8 +60,10 @@ def contig_recoding(self, include_mt: bool = False) -> dict[str, str]:
6060
},
6161
}[self]
6262

63-
if include_mt:
63+
if include_mt and self == ReferenceGenome.GRCh38:
6464
recode.update({'MT': 'chrM'})
65+
if include_mt and self == ReferenceGenome.GRCh37:
66+
recode.update({'chrM': 'MT'})
6567

6668
return recode
6769

v03_pipeline/lib/model/definitions_test.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -104,7 +104,7 @@ def test_contig_recoding(self):
104104
'chr22': '22',
105105
'chrX': 'X',
106106
'chrY': 'Y',
107-
'MT': 'chrM',
107+
'chrM': 'MT',
108108
}
109109
self.assertDictEqual(
110110
ReferenceGenome.GRCh37.contig_recoding(include_mt=True),
@@ -136,8 +136,9 @@ def test_contig_recoding(self):
136136
'22': 'chr22',
137137
'X': 'chrX',
138138
'Y': 'chrY',
139+
'MT': 'chrM',
139140
}
140141
self.assertDictEqual(
141-
ReferenceGenome.GRCh38.contig_recoding(),
142+
ReferenceGenome.GRCh38.contig_recoding(include_mt=True),
142143
expected_38_recode,
143144
)

v03_pipeline/lib/model/environment.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,8 @@
1818
'REFERENCE_DATASETS',
1919
'/seqr-reference-data',
2020
)
21+
VEP_CONFIG_PATH = os.environ.get('VEP_CONFIG_PATH', None)
22+
VEP_CONFIG_URI = os.environ.get('VEP_CONFIG_URI', None)
2123

2224

2325
@dataclass
@@ -30,3 +32,5 @@ class Env:
3032
LOADING_DATASETS: str = LOADING_DATASETS
3133
PRIVATE_REFERENCE_DATASETS: str = PRIVATE_REFERENCE_DATASETS
3234
REFERENCE_DATASETS: str = REFERENCE_DATASETS
35+
VEP_CONFIG_PATH: str | None = VEP_CONFIG_PATH
36+
VEP_CONFIG_URI: str | None = VEP_CONFIG_URI

0 commit comments

Comments
 (0)