Gene enrichment analysis R studio error
Entering edit mode
2.4 years ago
iamsmor • 0

Hi everyone

I started gene enrichment analysis but I am started with R error mentioned below.

> library(clusterProfiler) library(GSEABase) library(
> filename<- "c7.all.v7.1.entrez.gmt" gmtfile <- system.file(filename)
> c6 <- read.gmt(gmtfile)

I get error

> Error in stack.default(res) : at least one vector element is required
In addition: Warning message:
In file(con, "r") :
  file("") only supports open = "w+" and open = "w+b": using the former

What should I do for it? Thank you

RStudio • 827 views
Entering edit mode
2.0 years ago
Thomas ▴ 10

This error is raised when the file exists but is empty, so you need to check that your file isn't empty. Note that if the file is in a folder that's synchronizing to a cloud solution that lets you decide whether a file is only in the cloud or always stored locally and you selected cloud, the file will appears as if it exists in the file system, but is actually empty (this happened to me with Nextcloud). The solution then is to make sure the file is downloaded and present on your local device.


Login before adding your answer.

Traffic: 1342 users visited in the last hour
Help About
Access RSS

Use of this site constitutes acceptance of our User Agreement and Privacy Policy.

Powered by the version 2.3.6