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

Segmentation fault (core dumped) when odgi extract #576

Closed
yeeus opened this issue Jun 17, 2024 · 1 comment
Closed

Segmentation fault (core dumped) when odgi extract #576

yeeus opened this issue Jun 17, 2024 · 1 comment

Comments

@yeeus
Copy link

yeeus commented Jun 17, 2024

I have extracted a subgraph in advance, and I'd like to extract another subgraph from the former which might be faster than the whole graph. Here is my command:

odgi extract -i APGp1-HPRCp1-HGSVCp3_MC_chr6.gfav1.HLA.strlen_5k.og -o APGp1-HPRCp1-HGSVCp3_MC_chr6.gfav1.HLA.og.manual_bubble/HLA_H_to_J.og -r CHM13_Hap_chr6#0#CHM13_Hap_chr6#0[988-58288940]:29746295-33010476:29752492-29874846 -t12 -E -P

where CHM13_Hap_chr6#0#CHM13_Hap_chr6#0[988-58288940]:29746295-33010476 looks odd which was mentioned also by #574, and I got an error:

[odgi::extract] extracting path ranges 100.00% @ 1.99e+00 bp/s elapsed: 00:00:00:00 remain: 00:00:00:00
[odgi::extract] merge subpaths closer than 300000 bps - iteration 1 (max 6) 100.00% @ 1.62e+02 bp/s elapsed: 00:00:00:03 remain: 00:00:00:00
Segmentation fault (core dumped)

But when I extract from the whole graph with the command here:

odgi extract -i APGp1-HPRCp1-HGSVCp3_MC_chr6.gfav1.og -o APGp1-HPRCp1-HGSVCp3_MC_chr6.gfav1.HLA.og.manual_bubble/HLA_H_to_J.og -r CHM13_Hap_chr6#0#CHM13_Hap_chr6#0[988-58288940]:29752492-29874846 -t12 -E -P

it run correctly without any errors:

[odgi::extract] merge subpaths closer than 300000 bps - iteration 1 (max 6) 20.37% @ 7.19e-01 bp/s elapsed: 00:00:14:30 remain: 00:00:56:41
[odgi::extract] merge subpaths closer than 300000 bps - iteration 1 (max 6) 20.99% @ 7.41e-01 bp/s elapsed: 00:00:14:30 remain: 00:00:54:37
[odgi::extract] merge subpaths closer than 300000 bps - iteration 1 (max 6) 100.00% @ 3.24e+00 bp/s elapsed: 00:00:15:48 remain: 00:00:00:00
[odgi::extract] adding connecting edges 100.00% @ 3.02e+04 bp/s elapsed: 00:00:00:00 remain: 00:00:00:00
[odgi::extract] adding subpaths 100.00% @ 8.69e+01 bp/s elapsed: 00:00:01:46 remain: 00:00:00:00
[odgi::extract] checking missing edges and empty subpaths 100.00% @ 1.08e+03 bp/s elapsed: 00:00:00:00 remain: 00:00:00:00

So I want to ask why? And can I solve the problem when I want to extract from the subgraph?
Best wishes!

@yeeus
Copy link
Author

yeeus commented Jun 19, 2024

I have solved this problem caused by the coordinate offset..

@yeeus yeeus closed this as completed Jun 19, 2024
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

1 participant