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:
245245
246246
247247def 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
Original file line number Diff line number Diff 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
You can’t perform that action at this time.
0 commit comments