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

fixed weight assignment when computing leading edge #254

Merged
merged 1 commit into from
Feb 10, 2021

Conversation

loremendez
Copy link
Contributor

Weights of genes in final regulons didn't match the weights from the regression (adjacencies data frame).

The problem is when we compute the leading edge, where genes are sorted by ranking for pruning. Then, when we assign them the weights back, weights are sorted by alphabetical order. This leads to a gene-weight mismatch.

The leading_edge function in the recovery.py file was modified, so the weights get also sorted by ranking and the weight assignment now is fixed.

@cflerin
Copy link
Contributor

cflerin commented Feb 10, 2021

Indeed, this looks like a sorting problem with the original code. Thanks for spotting this and making a patch!

@cflerin cflerin merged commit fc0a56a into aertslab:dev Feb 10, 2021
cflerin added a commit that referenced this pull request Feb 10, 2021
- Include PR #254
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

Successfully merging this pull request may close these issues.

2 participants