Entering edit mode
I'm trying to load flowCore library to read a flow cytometry file (.fcs), but I'm getting the following error:
> library (flowCore)
Error: package or namespace load failed for ‘flowCore’ in loadNamespace(j <- i[[1L]], c(lib.loc, .libPaths()), versionCheck = vI[[j]]):
there is no package called ‘mvtnorm’
In addition: Warning message:
package ‘flowCore’ was built under R version 3.4.3
> fcs1 <- read.FCS("MyFACsFile.fcs",transformation=FALSE)
Error in read.FCS("
MyFACsFile.fcs", transformation = FALSE) :
could not find function "read.FCS"
I tried re-installing the package, but still it didn't work, although I was able to read the same file using the same code few months ago. Any suggestions on what the problem is? and how to read .fcs files in R?
Hi,
Something went wrong during the installation of flowCore. You need to solve all the dependencies that flowCore will complain about. For example, you should install the mvtnorm package, either using install.packages("mvtnorm") or BiocInstaller::biocLite("mvtnorm"). Then try again library(flowCore), and solve any remaining dependency.
The read.FCS is unknown because flowCore was not loaded.
Thanks. I installed the dependency, and was able to load flowCore. However, I'm still unable to read the file. Getting the following error:
Error in read.FCS("MyFACsFile.fcs", transformation = FALSE) : 'MyFACsFile.fcs' is not a valid file
. Although I was able to access the exact same file before!Try the absolute full path to your fcs file.