##location of example files for sampleinfo and seriesinfo (i.e. provided
##with this vignette)
dataDirectory <- system.file(package='GEOsubmission', 'extdata')
## Define a directory and a file to write the generated example SOFT
## file out to (for the sake of this demo)
soft_example_fullpath <- tempfile(pattern='soft_example')
soft_example_name <- basename(soft_example_fullpath)
soft_example_dir <- dirname(soft_example_fullpath)
## Example with a dataset (series) named "neuronalCultures", comprised
## of 2 samples (named "1" and "2")
## This example is not run since the CEL files corresponding to sample
## "1" and "2" (and indicated in "sampleInfo.txt") do not exist (which
## would be purposedly detected by microarray2soft and cause it to
## stop).
## Not run:
# microarray2soft(c('1','2'), 'sampleInfo.txt', 'neuronalCultures',
# 'seriesInfo.txt', datadir=dataDirectory,
# writedir=soft_example_dir, softname=soft_example_name)
#
# ## End(Not run)
## The files "sampleInfo.txt" (as sampleInfo) and "seriesInfo.txt" (as
## seriesInfo) are provided as example files in the "extdata" directory of
## the package installation directory. Their content can be printed to the
## R console with
## Not run:
# dataDirectory<-system.file(package='GEOsubmission','extdata')
# read.delim(file.path(dataDirectory,'sampleInfo.txt'))
# read.delim(file.path(dataDirectory,'seriesInfo.txt'))
# ## End(Not run)
## Example specifying a separate file containing normalized expression
## values (here the example file "expressionNormalized.txt")
microarray2soft(c('1','2'), 'sampleInfo.txt', 'neuronalCultures',
'seriesInfo.txt', datadir=dataDirectory,
writedir=soft_example_dir, softname=soft_example_name,
expressionmatrix='expressionNormalized.txt')
## The file "expressionNormalized.txt" (as expressionmatrix) is provided
## as example file in the "extdata" directory of the package installation
## directory. It can be printed to the R console with
## Not run:
# dataDirectory<-system.file(package='GEOsubmission','extdata')
# read.delim(file.path(dataDirectory,'expressionNormalized.txt')
# ## End(Not run)
## Same as the preceding example but write the example SOFT file to the
##console (note the use of verbose=FALSE to suppress messages)
microarray2soft(c('1','2'), 'sampleInfo.txt', 'neuronalCultures',
'seriesInfo.txt', datadir=dataDirectory,
softname='', expressionmatrix='expressionNormalized.txt',
verbose=FALSE)
Run the code above in your browser using DataLab