Skip to content

Commit f477873

Browse files
committed
clinvar
1 parent a583a70 commit f477873

File tree

3 files changed

+4
-5
lines changed

3 files changed

+4
-5
lines changed

v03_pipeline/lib/reference_data/clinvar.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@
66
import hail as hl
77

88
from v03_pipeline.lib.annotations.enums import CLINVAR_PATHOGENICITIES_LOOKUP
9+
from v03_pipeline.lib.logger import get_logger
910
from v03_pipeline.lib.model.definitions import ReferenceGenome
1011

1112
CLINVAR_ASSERTIONS = [
@@ -33,6 +34,7 @@
3334
},
3435
)
3536

37+
logger = get_logger(__name__)
3638

3739
def safely_move_to_gcs(tmp_file_name, gcs_tmp_file_name):
3840
try:
@@ -45,8 +47,8 @@ def safely_move_to_gcs(tmp_file_name, gcs_tmp_file_name):
4547
],
4648
check=True,
4749
)
48-
except subprocess.CalledProcessError as e:
49-
print(e)
50+
except subprocess.CalledProcessError:
51+
logger.exception(f'Failed to move local tmp file {tmp_file_name} to gcs')
5052

5153

5254
def parsed_clnsig(ht: hl.Table):

v03_pipeline/lib/reference_data/compare_globals.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
import dataclasses
2-
import logging
32

43
import hail as hl
54

v03_pipeline/lib/tasks/reference_data/updated_reference_dataset_collection.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
1-
import logging
2-
31
import hail as hl
42
import luigi
53

0 commit comments

Comments
 (0)