ballgown(samples = NULL, dataDir = NULL, samplePattern = NULL, bamfiles = NULL, pData = NULL, verbose = TRUE, meas = "all")tablemaker). If samples is
provided, dataDir and samplePattern are not used.samples is NULL.dataDir containing data to be loaded into the ballgown object (and
only those subdirectories). Only used if samples is NULL.samples). Default NULL.data.frame with rows corresponding to samples and
columns corresponding to phenotypic variables.TRUE, print status messages and timing information
as the object is constructed.ballgown
pData correctly. In particular, it's
really important that the rows of pData (corresponding to samples)
are ordered the same way as samples or the
dataDir/samplePattern combo. You can run
file.path(path = dataDir, pattern = samplePattern) to see the sample
order if samples was not used.If you are creating a ballgown object for a large experiment, this function may run slowly and use a large amount of RAM. We recommend running this constructor as a batch job and saving the resulting ballgown object as an rda file. The rda file usually has reasonable size on disk, and the object in it shouldn't take up too much RAM when loaded, so the time and memory use in creating the object is a one-time cost.
ballgownrsem, for loading RSEM output into a ballgown
object
bg = ballgown(dataDir=system.file('extdata', package='ballgown'),
samplePattern='sample')
pData(bg) = data.frame(id=sampleNames(bg), group=rep(c(1,0), each=10))
Run the code above in your browser using DataLab