Skip to content

Commit 0aac554

Browse files
committed
review
1 parent 5580bfc commit 0aac554

File tree

2 files changed

+12
-5
lines changed

2 files changed

+12
-5
lines changed

v03_pipeline/lib/misc/io.py

Lines changed: 11 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -245,12 +245,19 @@ def import_imputed_sex(imputed_sex_path: str) -> hl.Table:
245245

246246

247247
def import_tdr_qc_metrics(file_path: str) -> hl.Table:
248-
ht = hl.import_table(file_path)
248+
ht = hl.import_table(
249+
file_path,
250+
types={
251+
'contamination_rate': hl.tfloat32,
252+
'percent_bases_at_20x': hl.tfloat32,
253+
'mean_coverage': hl.tfloat32,
254+
},
255+
)
249256
ht = ht.select(
250257
s=ht.collaborator_sample_id,
251-
contamination_rate=hl.parse_float32(ht.contamination_rate),
252-
percent_bases_at_20x=hl.parse_float32(ht.percent_bases_at_20x),
253-
mean_coverage=hl.parse_float32(ht.mean_coverage),
258+
contamination_rate=ht.contamination_rate,
259+
percent_bases_at_20x=ht.percent_bases_at_20x,
260+
mean_coverage=ht.mean_coverage,
254261
)
255262
return ht.key_by(ht.s)
256263

v03_pipeline/lib/paths.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -231,7 +231,7 @@ def sample_qc_json_path(
231231
dataset_type,
232232
),
233233
'sample_qc',
234-
f'{hashlib.sha256(callset_path.encode("utf8")).hexdigest()}.json',
234+
f'{_callset_path_hash(callset_path)}.json',
235235
)
236236

237237

0 commit comments

Comments
 (0)