-
Notifications
You must be signed in to change notification settings - Fork 424
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
Segmentation fault error with minimap2 #111
Comments
Screenshot? Do you have ref.fa and query.fa files? Do you put minimap2 on your $PATH? Have you run the examples in "Getting Started"? |
Please find the attached image. yes, I have valid files on the path the I
am using.
Thanks
…On Tue, Feb 13, 2018 at 2:56 PM, Heng Li ***@***.***> wrote:
Screenshot? Do you have ref.fa and query.fa files? Do you put minimap2 on
your $PATH? Have you run the examples in "Getting Started"?
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
<#111 (comment)>, or mute
the thread
<https://github.com/notifications/unsubscribe-auth/AddCBa9cjdeo4_QyN2sXElO8NFIZelMNks5tUSQfgaJpZM4SDPy5>
.
|
Thanks. What version are you using? How much memory does your machine have? |
cent OS 7
…On Tue, Feb 13, 2018 at 3:16 PM, Heng Li ***@***.***> wrote:
Thanks. What version are you using? How much memory does your machine have?
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
<#111 (comment)>, or mute
the thread
<https://github.com/notifications/unsubscribe-auth/AddCBQ_nBf04XhX7FeRXK32XyzN4CiC_ks5tUSjOgaJpZM4SDPy5>
.
|
I mean the minimap2 version. And memory? |
I used this command line to install it |
Thanks for the info. How much memory do you have? |
1 TB |
Interesting. I don't know what is happening. It has been a while since someone reported segfault for nanopore data. Could you try:
Also, are you sure N006_merge.fa is correctly formatted? Thanks. |
I just uploaded images of the command run the way u type it and an image of the N006_merge file opened by Notbad++ |
Ok. One possible cause: your N006_merge.fa is generated on Windows, which is malformatted on Linux. Could you can
and send "part.fa" to me. Or you can run
and send me the screenshot. Thanks! |
PS: your screenshot with --print-qname suggests minimap2 failed to parse N006_merge.fa. When you open the file with Notepad, there may be hidden characters that failed minimap2. |
I don't think N006_merg.fa has a problem because I used it successfully with blastn tool. |
Could you send me part.fa as a file, not as a screenshot? The blastn parser is probably more robust to errors. |
I will send it by e-mail because I could not upload it here. ( format is not supported ) |
Please send to: lh3@me.com |
Thanks a lot for the help! |
sent! thank you for your support |
I was wrong. Sorry. "part.fa" is correctly formatted. I am stuck. Have you tried the example files: git clone https://github.com/lh3/minimap2
cd minimap2 && make
./minimap2 test/MT-human.fa test/MT-orang.fa Does the last command line segfault? |
just copy and past it? |
yes |
Could you use the newly compiled minimap2 (not the precompiled binary you downloaded from the release page) on your files again? path/to/new/minimap2 human-refseq.fa N006_merge.fa Sorry for bothering you. It is hard to fix segfault without my reproducing the segfault on my machine. |
[rehab@iria minimap2]$ path/to/new/minimap2 human-refseq.fa N006_merge.fa |
Please replace "path/to/new/minimap2" with the path to the minimap2 you have just compiled. Thank you. |
Sorry typo. Should be: Please replace "path/to/new/minimap2" with the path to the minimap2 you have just compiled. Thank you. |
sorry, which command line you mean? the example? or not bothering at all thanks for your help. |
You don't need to open that file. Just run: ./minimap2 --print-qname ~/N006-minimap/human-refseq.fa ~/N006-minimap/N006_merge.fa What do you get? |
cc -c -msse4 -g -Wall -O2 -Wc++-compat -DHAVE_KALLOC -DKSW_CPU_DISPATCH ksw2_exts2_sse.c -o ksw2_exts2_sse41.o |
ÿR 125030 106176 106320 + NR_003038.2 524 284 423 63 144 34 tp:A:P cm:i:6 s1:i:63 s2:i:0 dv:f:0.1003 ÿR 125030 100981 101422 + NM_000987.3 602 92 516 60 441 0 tp:A:P cm:i:8 s1:i:56 s2:i:56 dv:f:0.1527 ÿR 125030 117223 117462 - NM_001032.4 386 59 292 45 239 5 tp:A:P cm:i:6 s1:i:44 s2:i:0 dv:f:0.1414 ÿR 125030 87077 87208 + XM_017016305.1 956 647 785 45 138 0 tp:A:P cm:i:3 s1:i:44 s2:i:44 dv:f:0.1265 ÿR 125030 99633 99737 - NM_003516.2 534 118 219 45 106 0 tp:A:P cm:i:3 s1:i:44 s2:i:44 dv:f:0.1328 |
Your last command line worked. You can now try: ./minimap2 ~/N006-minimap/human-refseq.fa ~/N006-minimap/N006_merge.fa > approx.paf Do you get a segfault? |
yes, I got segfault again. |
I am very certain that your N006_merge.fa is malformatted. It is a bit late on my side. Is it possible at all to send N006_merge.fa to me? Is it too large? Thanks. |
By "malformatted", I really mean the minimap2 fasta parser is not robust enough to detect the formatting issue. This is still something I need to improve in minimap2. |
I will send it. as a google drive link by email. Thanks a lot |
Could you also send the human-refseq.fa file to me? I am going to bed. One last thing: could you run the following command on your linux: hexdump -C N006_merge.fa | head -50 and send the screenshot to me here? Thanks a million. |
To add the path: hexdump -C ~/N006-minimap/N006_merge.fa | head -50 and paste me the screenshot here. Thank you. |
Okay..Nights! thank you for your help despite timezones :) |
Could you send me the screenshot? Thanks. |
[rehab@iria minimap2]$ hexdump -C ~/N006-minimap/N006_merge.fa | head -50 |
I can reproduce the segfault. Thank you very much for this example. I will come back to fix this tomorrow. |
You can try: tail ~/N006-minimap/N006_merge.fa You will see:
The end of the file is malformatted. You can use the following command line to fix the error: head -72556 N006_merge.fa > N006_merge.fixed.fa Meanwhile, I will try to make minimap2 more robust to wrong formats. Thank you. |
[rehab@iria minimap2]$ head -72556 N006_merge.fa > N006_merge.fixed.fa |
Please use: cd ~/N006-minimap/
head -72556 N006_merge.fa > N006_merge.fixed.fa |
The lack of robustness cost me several hours to identify.
I have improved the robustness of the minimap2 FASTA/Q parser. You can run the following: cd ~
rm -fr minimap2
git clone https://github.com/lh3/minimap2
cd minimap2 && make
./minimap2 ~/N006-minimap/human-refseq.fa ~/N006-minimap/N006_merge.fa > output.paf Of course, it is still much preferred to fix errors in your input file with: head -72556 ~/N006-minimap/N006_merge.fa > ~/N006-minimap/N006_merge.fixed.fa Otherwise it may cause troubles elsewhere. I am now closing the issue. Thank you very much for your patience. |
Thank you very much for your quick response.
Rehab
*************************************
*Rehab Fouad Abdelhamid, Ph.D.*
*モハメド レハブ*
*RIKEN, CLST*
…On Wed, Feb 14, 2018 at 12:04 AM, Heng Li ***@***.***> wrote:
I have improved the robustness of the minimap2 FASTA/Q parser. You can run
the following:
cd ~
rm -fr minimap2
git clone https://github.com/lh3/minimap2cd minimap2 && make
./minimap2 ~/N006-minimap/human-refseq.fa ~/N006-minimap/N006_merge.fa > output.paf
Of course, it is still much preferred to fix errors in your input file
with:
head -72556 ~/N006-minimap/N006_merge.fa > ~/N006-minimap/N006_merge.fixed.fa
Otherwise it may cause troubles elsewhere.
I am now closing the issue. Thank you very much for your patience.
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
<#111 (comment)>, or mute
the thread
<https://github.com/notifications/unsubscribe-auth/AddCBQbMpsNVG1QLFQFkAzfaajV_lh05ks5tUaSagaJpZM4SDPy5>
.
|
I got "segmentation error" while mappping, when the mmi index was made from FASTA in which sequence didn't have a name (there was only single sequence, with first line ">"). Using minimap2 version 2.12-r827. |
@lkie I just tried to reproduce that on 2.13 and it worked. The PAF output has a empty ID though. I will file an issue. |
hi,I met some very strange problems.When I ran minimap2, it worked normally at first, but after I successfully processed several files, it had such a problem.
Then this problem appeared again.
These two problems often appear. Even the same reference genome and the same data can run normally one second, and then it will be an error if you try again. These errors appear very randomly, and now they become more and more frequent. The server I use has enough memory. I hope you can help me. Thank you very much. |
@Maxwell-codesome did you find a solution to this? I am running into seg fault errors with minimap2 as well. |
Hello,
No, I have not found a solution to this!
Good luck
…On Wed, Apr 24, 2024 at 4:40 AM Ryan Moreno ***@***.***> wrote:
@Maxwell-codesome <https://github.com/Maxwell-codesome> did you find a
solution to this? I am running into seg fault errors with minimap2 as well.
—
Reply to this email directly, view it on GitHub
<#111 (comment)>, or
unsubscribe
<https://github.com/notifications/unsubscribe-auth/AHLUEBPJFAFIROTQGRM6HBTY622K5AVCNFSM4EQM7S42U5DIOJSWCZC7NNSXTN2JONZXKZKDN5WW2ZLOOQ5TEMBXGMZDQOBSHAZQ>
.
You are receiving this because you authored the thread.Message ID:
***@***.***>
|
I have encountered a problem when I use the minimap command line for alignment of nanopore data.
the command line is minimap2 ref.fa query.fa > approx-mapping.paf
This is the first attempt to use minimap2 ever. The error says Segmentation fault.
I am using cent OS 7.
The text was updated successfully, but these errors were encountered: