-
Notifications
You must be signed in to change notification settings - Fork 41
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
Sorting graph with -Y
option triggers "Assertion `idx < this->size()' failed" error
#548
Comments
@sivico26 Could you please share both graphs? You can drop a mail to [email protected]. |
Hi @subwaystation, thanks for the quick reply. I am loading the graphs to our filesystem to see if I can send them that way. The graphs come from using I hope that helps. |
In theory, a link to download the graph should be in your mail. Let me know if it works.
|
I downloaded your graph, need to run your commands next. |
@sivico26 Using the most recent master of ODGI
Not sure if the file is corrupt, or does not fit the GFA specs. Which version of ODGI were you using? |
Hi @subwaystation, That's strange. Do you think it is related to #549? This is the same pruned graph I am referring to. It indeed deviates from GFA specs. |
I was expecting the raw, unpruned graph. But you already send me the pruned one? |
I realized that in your log In that case, running something like:
Should do the trick |
This is indeed the pruned graph. Sorry if it was not the desired one. I can send you the one before pruning. Should I proceed? |
Please do so! Thanks :) |
While it uses |
Yes, what is strange is |
Dear odgi team,
Thanks for developing
odgi
. I am working on a huge graph, so each processing step takes a long time. I was pruning some empty nodes from my graph to later explore it with some of my tools. Anyway, when I was optimizing the node space after the pruning, I met the following error:Looking at previous issues, I found that #430 was a lengthy, relevant discussion. In the end, I adjusted my command and removed the
-Y
fromodgi sort
(everything else equal), and it worked. So I can continue with my analyses.However, this is somewhat unsatisfactory since I cannot do the PG-SGD sort with my graph. If I understood the discussion, the possible reasons listed do not apply to this case since I pruned the graph without trouble. To be precise, this is the command I used:
Correct me if I am wrong, but this indicates that
odgi build
does not have any trouble with my graph, which should discard many of the possible problems (e.g. W lines). Furthermore, my input graph forodgi sort
was written byodgi prune
. Thus, I wonder what could be causing the assertion error.My graphs are big (before pruning
.gfa
~118 Gb, and.og
~245 Gb; after pruning.gfa
~112 Gb and.og
~ 179 Gb), so not so easily shareable, but maybe possible if needed. I can help to check or run commands on them if instructed.We are missing something around this problem. I wanted to report what I found and continue the discussion.
Let me know what you think.
P.S: Another minor issue: why does
odgi prune
require-E
for-c
to work? That does not make sense to me. If I remove some nodes, it follows that I want to get rid of the associated edges as well. The current behavior is that if you specify only-c
, it somehow thinks that, since no edges are being removed, you can not let the edges without their associated nodes, so it does not prune the nodes that match the criteria (thus the output graph is identical to the input). To me, this is not a sensible behavior. Why is it like that? I am probably missing something.The text was updated successfully, but these errors were encountered: