Read 'MSnSet'
This function reads data files to generate an
MSnSet
instance. It is a wrapper around
Biobase
's readExpressionSet
function with an
additional featureDataFile
parameter to include feature data.
See also readExpressionSet
for more details.
readMSnSet2
is a simple version that takes a single text
spreadsheet as input and extracts the expression data and feature
meta-data to create and MSnSet
.
Note that when using readMSnSet2
, one should not set
rownames
as additional argument to defined feature names. It is
ignored and used to set fnames
if not provided otherwise.
readMSnSet(exprsFile, phenoDataFile, featureDataFile, experimentDataFile, notesFile, path, annotation, exprsArgs = list(sep = sep, header = header, row.names = row.names, quote = quote, ...), phenoDataArgs = list(sep = sep, header = header, row.names = row.names, quote = quote, stringsAsFactors = stringsAsFactors, ...), featureDataArgs = list(sep = sep, header = header, row.names = row.names, quote = quote, stringsAsFactors = stringsAsFactors, ...), experimentDataArgs = list(sep = sep, header = header, row.names = row.names, quote = quote, stringsAsFactors = stringsAsFactors, ...), sep = "\t", header = TRUE, quote = "", stringsAsFactors = FALSE, row.names = 1L, widget = getOption("BioC")$Base$use.widgets, ...) readMSnSet2(file, ecol, fnames, ...)
Arguments direclty passed to readExpressionSet
. The description
is from the readExpressionSet
documentation page.
exprsFile |
(character) File or connection from which to read
expression values. The file should contain a matrix with rows as
features and columns as samples. |
phenoDataFile |
(character) File or connection from which to read
phenotypic data. |
experimentDataFile |
(character) File or connection from which to
read experiment data. |
notesFile |
(character) File or connection from which to read
notes; |
path |
(optional) directory in which to find all the above files. |
annotation |
(character) A single character string indicating the annotation associated with this ExpressionSet. |
exprsArgs |
A list of arguments to be used with
|
phenoDataArgs |
A list of arguments to be used (with
|
experimentDataArgs |
A list of arguments to be used (with
|
sep, header, quote, stringsAsFactors, row.names |
arguments used
by the |
widget |
A boolean value indicating whether widgets can be
used. Widgets are NOT yet implemented for
|
... |
Further arguments that can be passed on to the
|
Additional argument, specific to readMSnSet
:
featureDataFile |
(character) File or connection from which to read
feature data. |
featureDataArgs |
A list of arguments to be used (with
|
Arguments for readMSnSet2
:
file |
A Passing a |
ecol |
A |
fnames |
An optional |
An instance of the MSnSet
class.
Laurent Gatto <lg390@cam.ac.uk>
## Not run: exprsFile <- "path_to_intensity_file.csv" fdatafile <- "path_to_featuredata_file.csv" pdatafile <- "path_to_sampledata_file.csv" ## Read ExpressionSet with appropriate parameters res <- readMSnSet(exprsFile, pdataFile, fdataFile, sep = "\t", header=TRUE) ## End(Not run) library("pRolocdata") f0 <- dir(system.file("extdata", package = "pRolocdata"), full.names = TRUE, pattern = "Dunkley2006") basename(f0) res <- readMSnSet2(f0, ecol = 5:20) res head(exprs(res)) ## columns 5 to 20 head(fData(res)) ## other columns
Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.