In case this was a compatability error, I have re-downloaded Rstudio (v1.3) and EnhancedVolcano from:
if (!requireNamespace('BiocManager', quietly = TRUE))
install.packages('BiocManager')
BiocManager::install('EnhancedVolcano')
But still encounter the same error.
pointSize, labSize
, are not autocompleting when typing the condition in my EnhancedVolcano script, which leads me to believe it is not recognized in my package.
DrawConnectors
autocompletes, but when used does not generate a plot (plot window in Rstudio is completely blank).
If I do not include DrawConnectors
, pointSize
, or labSize
, the plot generates, but when included I lose the plot
Error in EnhancedVolcano(df1, lab = row.names(df1), x = "log2FC", y = "Age.Adjusted.FDR", :
unused arguments (pointSize = c(ifelse(df1$log2FC > 0.3, 8, 1)), drawConnectors = TRUE)
EnhancedVolcano(df1,
lab = row.names(df1),
x = "log2FC",
y = "Age.Adjusted.FDR",
ylab = bquote(~-Log[10]~italic(FDR)),
title = "Volcano Plot",
pCutoff = 0.2,
FCcutoff = 0.3,
legendPosition = "right",
pointSize = c(ifelse(df1$log2FC > 0.3, 8, 1)),
labSize = 4.0,
col=c("black", "orange", "blue", "red"),
legend=c("NS","Log2 FC > |0.3|","FDR < 0.2","FDR < 0.2 & Log2 FC > |0.3|"),
drawConnectors = TRUE,
ylim = c(0,-log10(10e-4))
)
Is there an obvious reason I'm missing as to why these lines aren't working? Or an alternative method to increase the point size and label size of specific genes?
Thank you for the quick response,
I have updated R to the latest version - and attempted to reinstall Enhanced Volcano.
Is:
sufficient to bring the package up to date, or is:
better?
I do not know which version of R you are using. Can you share the output of
sessionInfo()
?Technically speaking,
devtools::install_github('kevinblighe/EnhancedVolcano')
will install the most updated version, but this will not solve the general issue of you using an old version of R. Some users cannot update their version for various reasons, like software installation being controlled centrally by IT Services, or something like this.Can you please share the output of
sessionInfo()
after you have also loaded EnhancedVolcano vialibrary()
?Yes here it is:
I see, you may want to upgrade your version of R to version 4.0.x, which will also, in turn, upgrade all of your packages. The version of EnhancedVolcano that you're using is the very first official release.
OK.
Is there a reason why certain lines are giving me errors?
I just tried to install the latest Enhanced Volcano in Rstudio, and continue to get:
I also downloaded R-4.2.0 and downloaded EnhancedVolcano using devtools in R (not studio), which worked, but am still getting an error - this time with the legend = c("custom legend") line.
In R, this time it says `
`, whereas before the error was
and argument 14 was not an issue.
Every R and Rstudio version is the latest release.
Thank you for taking time to upgrade your R version. Now the issue is back in my court because, between version 1.0.1 and the current version, I changed some parameter names and general functionality (I am the maintainer of this packge)
Can you take a look at the current official vignette in order to get a feel of the correct parameters to use? - https://bioconductor.org/packages/release/bioc/vignettes/EnhancedVolcano/inst/doc/EnhancedVolcano.html
Apologies about that.
For all intents and purposes, I think that you just need to change this:
...to:
Ah OK thank you!
I see the modified parameters in the latest vignette.
Last question - Is there a reason why I can't load the latest version of EnhancedVolcano in Rstudio, only in R?
What is the error message when you try to load it in RStudio?
When I use devtools, it stops at this step and the most updated commands do not work, so I don't think EnhancedVolcano successfully loads.
Strange. What happens when you try to first install ggrastr?
Ugh still not working.
And now it's giving me a different package error with 'ps' (instead of 'ggrastr') after I tried to install it after receiving this message.
Beginning to think it's not due to a specific package but some communication error.
Getting stranger. As you have updated your R version, though, you may have to do some 're-compiling'. Could you try this in order to re-compile the package on your OS:
Another option is to try to install direct from GitHub:
...or:
Hi Kevin,
Back at EnhancedVolcano plotting again, and I can't escape the
Using the above code and modifications, is there a clear reason why this is happening?
Hi, I cannot see which code you are running? It can be inferred from the warning message that the plot is nevertheless generated. Is it malformed in any way?
I used the code described above, after reloading the package with your latest version:
remotes::install_github('kevinblighe/EnhancedVolcano')
Thanks, but the plot still generates fine, is this correct? The warning message is deriving from ggrepel, a package used by EnhancedVolcano, and merely indicates that, at one specific location in the plot, there are too many variables (genes) that need to be labeled that can be feasibly labeled (I think). You can just ignore this warning.
Just realized the plot was only generating when I zoomed into the plot, so now I see it.
Last issue:
How can I increase the point (gene) label size?
The
labSize = 4
parameter is generatingAnd I have not been able to sort out why it is matching to multiple arguments.
Please check the manual page for the version of the package that you are using. Some of the parameter names changed in the early versions of this package.
Try
?EnhancedVolcano
I've looked and
labSize =
is the parameter for my version. But I can also let this go unless I get pushback from a journal.Thank you for all the help!