-
Notifications
You must be signed in to change notification settings - Fork 20
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
InvalidIndexError when running ml code #188
Comments
InvalidIndexError
when running ml_analysis
The issue is because the pathways generated by mincostflow contain duplicate edges in the pathway.txt file. This seems to occur in many of the output pathways from mincostflow. This seems to be an issue with the mincostflow code along with the ml code. Here is an example of one the pathway.txt files with duplicate edges Node1 Node2 Rank Direction |
#191 this PR contains a test case that shows the error and how the error comes up |
My fix to this problem is to remove duplicate edges when the dataframes are being created before concating them together
|
In the end, this was not a SPRAS problem other than the fact the code wasn't robust about duplicate indices in the dataframes. The true problem lies in the mincostflow code implementation. |
I encountered a
InvalidIndexError
running the ml code during individual runs of parameter sweeps on mincostflow on the EGFR dataset. The issue happens in thesummarize_networks
function, related to reindexing, where non-unique index values are causing problems with pandas concatenation.Error Trace:
The text was updated successfully, but these errors were encountered: