[R] Error related to matrix system is exactly singular
@okov|c@@n@m@r|j@ @end|ng |rom gm@||@com
Wed Dec 4 19:04:45 CET 2019
I was running this software https://github.com/eleporcu/TWMR
Rscript MR.R ENSG00000154803
my files are located here:
I got this error:
Error in solve.default(C) :
Lapack routine dgesv: system is exactly singular: U[15,15] = 0
Calls: solve -> solve.default
in the original code I changed this:
and I also in order to run it I changed the beginning of the code to be:
cmd_args <- commandArgs(TRUE)if (length(cmd_args) == 0L) stop("No
gene<-cmd_args[length(cmd_args)] ## Last argument is the 'gene'
file<-paste(gene,"matrix",sep=".")if (!file.exists(file)) stop("File
not found: ", file)
when I was running it with just 3 columns in .matrix file.
Please advise, is it something wrong with the format of my files now?
[[alternative HTML version deleted]]
More information about the R-help