View source: R/formatdata4DRomics.R
formatdata4DRomics | R Documentation |
Build an R object that can be used as data input in data importation function from two inputs: the nitems x nsamples matrix coding for the signal and the nsamples vector of doses
formatdata4DRomics(signalmatrix, dose, samplenames)
signalmatrix |
the matrix of the data with one row for each item and one column
for each sample. The row names of this matrix will be taken to identify
the items.
Depending of the type of measured signal, look at the help of the corresponding
importation function especially to check that you use the good scale of data
|
dose |
a numeric vector giving the dose for each sample. |
samplenames |
a character vector giving the names of the samples (optional argument - if not given, the col names of signalmatrix are taken as sample names). |
an R object that corresponds to a dataframe that can be passed as input in the
first argument of the data importation functions RNAseqdata
,
microarraydata
, continuousomicdata
or
continuousanchoringdata
.
Marie-Laure Delignette-Muller
See RNAseqdata
, microarraydata
,
continuousomicdata
and
continuousanchoringdata
especially for specification of
the required scale of data in each case.
# (1) load of data
#
data(zebraf)
str(zebraf)
# (2) formating of data for use in DRomics
#
data4DRomics <- formatdata4DRomics(signalmatrix = zebraf$counts,
dose = zebraf$dose)
# (3) Normalization and transformation of data
#
o <- RNAseqdata(data4DRomics)
plot(o)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.