-
Notifications
You must be signed in to change notification settings - Fork 31
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
bwa index not found with -r #112
Comments
Hi Blake, bwa-mem2 usage was put in the code (#72 ) but not as part of a release yet. Are you using 0.6.1 or newer? |
Hey Ben, Thanks for your reply. Sorry for any confusion -- I'm not attempting to run bwa-mem2 within CoverM. I am running CoverM v0.6.1. I've used bwa v0.7.17 to index my genome database. But CoverM won't accept that via I have hundreds of metagenomes I want to map to thousands of MAGs, so I want to avoid building the index with each pass. I could map those myself and then handle the BAM files into CoverM but wanted to check here first if Thanks for your time! |
Ah, OK. My testing just below suggests coverm already picks up the stem of the DB as it is supposed to (this is for bwa-mem v0.7.17 / coverm 0.6.1 but the same held true for bwa-mem2 / coverm newest). Using 7seqs.fna from the tests/data directory.
Are you using it in the above way? |
Hi Ben,
|
Hi @fbeghini I would be surprised if TMPDIR being set would change the behaviour. Can you let me know the command line you are using and an Thanks, ben |
Hi @wwood ,
The folder has just the files produced by bwa |
Hi, In the call to coverm you specified the reference as I guess you used Did I get that right? |
I tried first using just the root of the index but coverm failed to run giving I found this post while looking if someone else was having the same issue and tried to run it by adding the file extension wondering if coverm would try to build the index after checking if all the index files are present.
|
Ah, right. That is a slight bug then. To work around that, you can just create an empty file i.e. I didn't quite understand that last part. Was there some reason that you needed to use |
The empty file trick works, thanks. Also, no reason to use |
Good good. Closing this now since I guess the underlying issue has been solved for the next release. |
Hello Ben, Can you please update the crates.io page for CoverM first? Thanks, Jianshu |
Hi Jianshu, I consider issues as closed when they are fixed in the main branch, which will make it into the next release (here, the one after 0.6.1). Having said that, a new release is quite overdue - hope to get to it soon. |
Thanks ben, I can compile it now but for those who have less knowledge about compiling, they may need a new binary or something. Jianshu |
Hi Ben,
I've been competitively mapping reads to a collection of ~7,000 draft genomes using bwa-mem2. Recently, I've tried switching to coverm to complete both mapping (still with bwa-mem) and depth calculation (seqdepth calculation is much faster than the ad hoc python scripts I was using previously) for these genomes.
My longterm aim is to run multiple metagenomes through coverm but since my genome set is so large, I want to avoid building a new index each time I start the process over with a new metagenome. So I wanted to offer
coverm genome
my bwa index via-r
for each run. Based on reading the help documentation, I'm attempting to callcoverm genome
in this way:Where the variables follow:
fwd/rev: forward and reverse gzipped FASTQ,
index: path to a bwa-mem index, including the stem
g_dir: path to directory containing genomes (suffix matches default .fna)
output: what I want the output .tsv saved as
When I run this, coverm is not able to recognize my BWA index (passed with my index variable above) despite a lot of fiddling on my end. I see the following error before coverm exits:
Any thoughts or feedback would be greatly appreciated.
Cheers,
Blake
The text was updated successfully, but these errors were encountered: