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

Memory error #13

Open
george-githinji opened this issue Jul 18, 2019 · 4 comments
Open

Memory error #13

george-githinji opened this issue Jul 18, 2019 · 4 comments

Comments

@george-githinji
Copy link

Running into a memory error after compiling on Linux centos (params - t 4 -k 12 -s 2000

double free or corruption (!prev): 0x00007f64a40008c0

@edawson
Copy link
Owner

edawson commented Jul 18, 2019

That looks like a memory error, and I have a feeling I know where it got introduced. Which data did you test with? Also, which command did you run? The stream and hpv16 commands are the most robust currently. Call and classify are essentially deprecated, though I am planning to fix them in the late Fall.

I ran the following command on a fresh compile, which seems to work:

./rkmh stream -t 4 -k 12 -s 2000 -r data/zika.refs.fa -f data/zika.fa
gb|KU963574|	gi|226377833|ref|NC_012532.1(ZIKA)|	839	2000

Thanks so much for trying rkmh out and finding some bugs for me to fix!

@george-githinji
Copy link
Author

Thank you very much for your response and thanks for a useful tool. I tried this on CHKV virus dataset that I am working on and I would like to remove the human reads contamination and I therefore ran the filter command.

@nmb85
Copy link

nmb85 commented Nov 12, 2022

I got a similar memory error running the following command:
rkmh filter -f /datapool/basespace/skinmg/235258034/Data/Intensities/BaseCalls/sample0031_S339_L001_R1_001.fastq.gz -r ~/beta_hpv.fna -k 21 -s 1000 -t 1

Here is the error msg:

double free or corruption (!prev)
Aborted

Any changes to this code? Note: rkmh stream does indeed work fine on same dataset and reference.

@nmb85
Copy link

nmb85 commented Nov 13, 2022

A sub-optimal workaround in the meantime: use rkmh stream to extract read headers, then grep out the entire read record.

rkmh stream -t 1 -k 12 -s 2000 -r reference.fna -f sample001_R1.fastq.gz | cut -f 2 | zgrep -A3 -f - sample001_R1.fastq.gz > extracted_reads.fastq

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