Skip to content

fixed weight assignment when computing leading edge#254

Merged
cflerin merged 1 commit intoaertslab:devfrom
loremendez:add-weight-regulon-assignment
Feb 10, 2021
Merged

fixed weight assignment when computing leading edge#254
cflerin merged 1 commit intoaertslab:devfrom
loremendez:add-weight-regulon-assignment

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