File tree Expand file tree Collapse file tree 2 files changed +12
-5
lines changed Expand file tree Collapse file tree 2 files changed +12
-5
lines changed Original file line number Diff line number Diff line change @@ -245,12 +245,19 @@ def import_imputed_sex(imputed_sex_path: str) -> hl.Table:
245
245
246
246
247
247
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
+ )
249
256
ht = ht .select (
250
257
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 ,
254
261
)
255
262
return ht .key_by (ht .s )
256
263
Original file line number Diff line number Diff line change @@ -231,7 +231,7 @@ def sample_qc_json_path(
231
231
dataset_type ,
232
232
),
233
233
'sample_qc' ,
234
- f'{ hashlib . sha256 (callset_path . encode ( "utf8" )). hexdigest ( )} .json' ,
234
+ f'{ _callset_path_hash (callset_path )} .json' ,
235
235
)
236
236
237
237
You can’t perform that action at this time.
0 commit comments