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

no reads generated after running extract_kraken_reads.py #95

Open
caizhangbin opened this issue Mar 28, 2024 · 2 comments
Open

no reads generated after running extract_kraken_reads.py #95

caizhangbin opened this issue Mar 28, 2024 · 2 comments

Comments

@caizhangbin
Copy link

caizhangbin commented Mar 28, 2024

Hi there, I am trying to use extract_kraken_reads.py to exclude the human reads.
I have kraken output file kraken.report.txt and kneaddata processed fastq file other_kneaddata.fastq as inputs:

~/KrakenTools/extract_kraken_reads.py -k kraken.report.txt -s other_kneaddata.fastq -r bac/kraken.report_2.txt -o bac/newoutput.fastq --taxid 9606 --exclude

While the program could not produce any reads:

PROGRAM START TIME: 03-28-2024 14:15:47
1 taxonomy IDs to parse

STEP 1: PARSING KRAKEN FILE FOR READIDS kraken.report.txt
0.00 million reads processed
200 read IDs saved
STEP 2: READING SEQUENCE FILES AND WRITING READS
0 read IDs found (11.76 mill reads processed)
0 read IDs found (13.48 mill reads processed)
0 reads printed to file
Generated file: bac/newoutput.fastq
PROGRAM END TIME: 03-28-2024 14:18:23

Any suggestions?

@tibitoy
Copy link

tibitoy commented May 14, 2024

Following this question in case someone drops an answer! Running into the same issue

@qikongwanli
Copy link

Hi there, I am trying to use extract_kraken_reads.py to exclude the human reads. I have kraken output file kraken.report.txt and kneaddata processed fastq file other_kneaddata.fastq as inputs:

~/KrakenTools/extract_kraken_reads.py -k kraken.report.txt -s other_kneaddata.fastq -r bac/kraken.report_2.txt -o bac/newoutput.fastq --taxid 9606 --exclude

While the program could not produce any reads:

PROGRAM START TIME: 03-28-2024 14:15:47 1 taxonomy IDs to parse

STEP 1: PARSING KRAKEN FILE FOR READIDS kraken.report.txt
0.00 million reads processed
200 read IDs saved
STEP 2: READING SEQUENCE FILES AND WRITING READS
0 read IDs found (11.76 mill reads processed)
0 read IDs found (13.48 mill reads processed)
0 reads printed to file
Generated file: bac/newoutput.fastq
PROGRAM END TIME: 03-28-2024 14:18:23

Any suggestions?

I also face the same issue, but I solve this problem. Please just make sure that the input file of "-k " is the "--output" results of kraken2.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants