Not able to executing all text files from one folder by a Rscript

178 views Asked by At

This is an R script for array quality metrics. The first step is going well but after the execution of the 2nd step an error occurs.

library(arrayQualityMetrics)

library(limma)

library(tcltk)
X <-tk_choose.files(caption = "Choose X")

maData<-read.maimages(X, source="agilent", other.columns = "g", green.only=TRUE)

eSet<-new("ExpressionSet", exprs = maData$other$g, annotation =maData$genes[,7])

arrayQualityMetrics(eSet, outdir="QC_C", force = TRUE, do.logtransform = TRUE)

The program is running now but it is showing this warning message:

The directory 'QC_C' has been created.
Warning messages:

1: In svgStyleAttributes(style) :
  Removing non-SVG style attribute name(s): subscripts, group.number, group.value

2: In svgStyleAttributes(style) :
  Removing non-SVG style attribute name(s): subscripts, group.number, group.value

Where am I getting wrong? Is this the errors in the file or the Rscript is wrong....

1

There are 1 answers

7
Joswin K J On BEST ANSWER

Give the full path of the folder under path as below:

scanFiles<-dir(path='/path/to/folder/',pattern = ".*.txt$")