Skip to content

Commit 3b1a6a4

Browse files
Another bug fix in extract_all_unmapped
1 parent 2a95b97 commit 3b1a6a4

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

kb_python/extract.py

+1-5
Original file line numberDiff line numberDiff line change
@@ -106,10 +106,6 @@ def extract_matching_reads_by_header(input_fastq, reference_fastq, output_fastq)
106106
based on headers and writes them to the output FASTQ (.gz) file.
107107
"""
108108

109-
print(input_fastq)
110-
print(reference_fastq)
111-
print(output_fastq)
112-
113109
# Read headers from the reference FASTQ file
114110
reference_headers = read_headers_from_fastq(input_fastq)
115111

@@ -371,7 +367,7 @@ def extract(
371367
# Save unmapped reads in a separate fastq file
372368
unmapped_fastq = os.path.join(out_dir, "all_unmapped/1.fastq.gz")
373369
mapped_fastq = os.path.join(extract_out_folder, "1.fastq.gz")
374-
extract_matching_reads_by_header(mapped_fastq, fastq, unmapped_fastq)
370+
extract_matching_reads_by_header(mapped_fastq, fastq[0] if isinstance(fastq, list) else fastq, unmapped_fastq)
375371

376372
else:
377373
if not mm:

0 commit comments

Comments
 (0)