Skip to content

Commit

Permalink
- file name compatible with Terra
Browse files Browse the repository at this point in the history
  • Loading branch information
emattei committed Jan 22, 2025
1 parent 301e77a commit 2e2991d
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion modules/igvf-kallisto-bustools/run_kallisto.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,8 @@ def check_and_unzip(file_path):
str: Path to the unzipped file.
"""
if file_path.endswith('.gz'):
unzipped_file_path = file_path[:-3] # Remove the .gz extension
file_name = file_path.split('/')[-1]
unzipped_file_path = file_name[:-3] # Remove the .gz extension
with gzip.open(file_path, 'rb') as f_in:
with open(unzipped_file_path, 'wb') as f_out:
shutil.copyfileobj(f_in, f_out)
Expand Down

0 comments on commit 2e2991d

Please sign in to comment.