Closed lucblassel closed 2 years ago
Hi @lucblassel , Thanks for reporting this issue. Actually, winnowmap doesn't support separate indexing (reason below*). You can combine indexing and mapping steps. Since indexing time is low for a human genome (only about 2-3 minutes), there is not much to gain by saving the index in a file.
meryl count k=15 output merylDB reference.fasta
meryl print greater-than distinct=0.9998 merylDB > repetitive_k15.txt
winnowmap -W repetitive_k15.txt -k 15 -c reference.fasta reads.fasta > mapping.paf
*While indexing, winnowmap also builds a data structure to store frequently occurring k-mers in the reference sequence. While dumping index to a file, this information is not saved unfortunately. The seg-fault occurred because it could not find this structure in memory during mapping. Running indexing + mapping in a single step will resolve this.
Thank you very much for the quick answer @cjain7!
Since I am running the mapping step in parallel many times to the same reference I figured computing the index once would save time on the long run.
Would it be complicated to dump the frequent k-mer data structure with/in the index somehow ?
Would it be complicated to dump the frequent k-mer data structure with/in the index somehow ?
No, I can try to look into this if I find time.
Hello,
I am trying to map simulated reads to an indexed reference. To do this I take the following steps:
The mapping starts and then is killed by a segmentation fault, here is the log:
I have tried several configurations for the mapping stage:
-W
flag-t 16
And I have tried on 2 different references, simulating 1000 reads with nanosim each time.
In all the cases I get a segmentation fault when mapping to the index.
I tried the same thing with
minimap2
using the following commands and everything works as expected:Software versions:
2.02
meryl snapshot (v1.0)
Am I doing something wrong or is this a software issue ? Thanks in advance