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

lab does not properly output labels when column name is input #117

Open
rjferrer opened this issue Jun 15, 2023 · 2 comments
Open

lab does not properly output labels when column name is input #117

rjferrer opened this issue Jun 15, 2023 · 2 comments

Comments

@rjferrer
Copy link

Hi,

The documentation says the input for lab is a column name in the data table. But when I did this:

EnhancedVolcano(res,
lab = "X_1",
x = 'log2FoldChange',
y = 'padj')

The output is like this:
Screen Shot 2023-06-15 at 1 06 22 PM

This is the structure of my data table:

Screen Shot 2023-06-15 at 1 05 33 PM
@allaway
Copy link

allaway commented Aug 14, 2023

I also have this issue with the latest BioC release.

@allaway
Copy link

allaway commented Aug 14, 2023

FYI, a simple fix is to do something like this (in your example):

EnhancedVolcano(res,
lab = res$X_1,
x = 'log2FoldChange',
y = 'padj')

Note that this might not work in all situations, e.g. if there are parameters in EnhancedVolcano that filter out some of the rows...I have just started using it so not sure about this.

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

No branches or pull requests

2 participants