MRIaggr-allocNormalization: Allocate normalization values

Description Usage Arguments Details Value See Also Examples

Description

Allocate normalization values to a MRIaggr object.

Usage

1
2
3
## S4 replacement method for signature 'MRIaggr'
allocNormalization(object, 
         overwrite = FALSE, verbose = optionsMRIaggr("verbose")) <- value

Arguments

object

an object of class MRIaggr. REQUIRED.

value

the normalisation values. A list of data.frame. REQUIRED.

overwrite

if normalization values are already stored in object, can they be overwritten ? logical.

verbose

should the execution of the function be traced ? logical.

Details

ARGUMENTS:
To enable other methods of the package to use the normalization values the value argument should match the result of the calcNormalization function. This function only partially control the validity of the value argument.
A valid value argument should be composed a list of data.frame with the following names :

All the elements of the list must have column names that match the contrast parameters present in the object.
Appart from the first element of the list, all elements should have as many rows as slices contained in the object.

Value

None.

See Also

calcNormalization to compute the normalisation values.
selectNormalization to extract the normalisation values.

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
## load a MRIaggr object
data("MRIaggr.Pat1_red", package = "MRIaggr")

## parameters to normalize
param <- c("DWI_t0","T2_FLAIR_t2","T2_GRE_t0","TTP_t0")

## manual allocation
resNormalization <- calcNormalization(MRIaggr.Pat1_red, param = param)
allocNormalization(MRIaggr.Pat1_red, overwrite = TRUE) <- resNormalization

## automatic allocation
resNormalization <- calcNormalization(MRIaggr.Pat1_red, param = param,
                                      update.object = TRUE, overwrite = TRUE)

bozenne/MRIaggr documentation built on May 13, 2019, 1:39 a.m.