Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

FIX: remove original sequences after gzipping #152

Merged
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Next Next commit
FIX: remove original sequences after gzipping
  • Loading branch information
misialq committed Jan 25, 2023
commit ea1fa235acf6f5459c38915f9f0a8a6fb3abf4f4
2 changes: 2 additions & 0 deletions q2_fondue/sequences.py
Original file line number Diff line number Diff line change
Expand Up @@ -242,11 +242,13 @@ def _copy_to_casava(
fwd_path_in = os.path.join(tmp_dir, filenames[0])
fwd_path_out = os.path.join(casava_result_path, f'{filenames[0]}.gz')
rewrite_fastq(fwd_path_in, fwd_path_out)
os.remove(fwd_path_in)

if len(filenames) > 1:
rev_path_in = os.path.join(tmp_dir, filenames[1])
rev_path_out = os.path.join(casava_result_path, f'{filenames[1]}.gz')
rewrite_fastq(rev_path_in, rev_path_out)
os.remove(rev_path_in)


def _write2casava_dir(
Expand Down