Skip to content

Commit f0fc321

Browse files
committed
removed some extraa comments
1 parent 8aa378d commit f0fc321

1 file changed

Lines changed: 0 additions & 4 deletions

File tree

scripts/map_improve_sample_ids.py

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -333,19 +333,15 @@ def rewrite_other_file(file_path, sample_id_mapping, datasets=None, dataset=None
333333
print(f"Dataset not specified for {file_path}. Skipping.")
334334
return
335335

336-
# Figure out the underlying extension (ignoring .gz) to determine delimiter
337336
actual_ext = _get_file_extension_ignore_gz(file_path)
338337
if actual_ext == '.tsv':
339338
delim = '\t'
340339
else:
341-
# Default to comma for .csv or unknown extensions
342340
delim = ','
343341

344342
print(f"Rewriting other file: {file_path}")
345-
# Decompress if needed (returns unzipped path plus a flag indicating if it was gzipped)
346343
file_path, was_gz = decompress_gz_if_needed(file_path)
347344
if not os.path.exists(file_path):
348-
# If decompressed file doesn’t exist or is empty, re-compress (if needed) and skip
349345
recompress_if_needed(file_path, file_path, was_gz)
350346
print(f"File not found or empty after decompression: {file_path}")
351347
return

0 commit comments

Comments
 (0)