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

getPatternGeneSet: replace pathways column with gene.set #108

Merged
merged 3 commits into from
May 29, 2024

Conversation

jmitchell81
Copy link
Collaborator

Avoids redundant data frame column issue by renaming the "pathways" column to "gene.set" before converting this column to a factor ordered by adjusted p-value.

Bug found in issue #107. Creating a separate column for "gene.set" apart from the "pathways" column generated by the fgsea and fora functions led to gene set names being associated with the wrong rows. To avoid this kind of issue of redundant columns naming the gene sets that caused this bug, the pathways column is renamed to gene.set then converted to a factor ordered by adjusted p-value.
Tests for gene set plotting now include a check for a sig_p1 gene set that should be associated with pattern 1.
@jmitchell81 jmitchell81 linked an issue May 29, 2024 that may be closed by this pull request
@dimalvovs dimalvovs self-requested a review May 29, 2024 17:07
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

thank you for adding tests!

Copy link
Contributor

@dimalvovs dimalvovs left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@dimalvovs dimalvovs merged commit f6287a2 into master May 29, 2024
3 checks passed
@jmitchell81 jmitchell81 deleted the jacob-visualizations branch May 29, 2024 18:19
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.

getPatternGeneSet gives wrong gene.set names
2 participants