Description Usage Arguments Details Value See Also Examples
Allocate volumic information to a MRIaggr
object.
1 2 3 | ## S4 replacement method for signature 'MRIaggr'
allocTable(object, type,
overwrite = FALSE, verbose = optionsMRIaggr("verbose")) <- value
|
object |
an object of class |
value |
the volumic information. data.frame. REQUIRED. |
type |
the type of volumic information. Can be |
overwrite |
if tables are already stored in |
verbose |
should the execution of the function be traced ? logical. |
ARGUMENTS :
The validity of the value
object is not checked.
A valid format should match the result of the calcTableHypoReperf
and calcTableLesion
functions.
None.
calcTableHypoReperf
to compute the hypoperfusion and reperfusion tables.
calcTableLesion
to compute the lesion table.
selectTable
to extract the tables.
plotTableLesion
to display the lesion volume by slice.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 | ## load a MRIaggr object
data("MRIaggr.Pat1_red", package = "MRIaggr")
#### 1- lesion ####
## manual allocation
maskN <- c("MASK_DWI_t0","MASK_T2_FLAIR_t2")
resTable <- calcTableLesion(MRIaggr.Pat1_red, maskN = maskN, numeric2logical = TRUE)
allocTable(MRIaggr.Pat1_red, type = "lesion", overwrite = TRUE) <- resTable
## automatic allocation
resTable <- calcTableLesion(MRIaggr.Pat1_red, maskN = maskN,
numeric2logical = TRUE, update.object = TRUE, overwrite = TRUE)
## display
selectTable(MRIaggr.Pat1_red, type = "lesion")
#### 2- hypoperfusion and reperfusion ####
## manual allocation
resTable <- calcTableHypoReperf(MRIaggr.Pat1_red, param = c("TTP","MTT"), timepoint=c("t0","t1"))
allocTable(MRIaggr.Pat1_red, type = "hypoperfusion", overwrite = TRUE) <- resTable$volume_hypo
allocTable(MRIaggr.Pat1_red, type = "reperfusion", overwrite = TRUE) <- resTable$volume_reperf
## automatic allocation
resTable <- calcTableHypoReperf(MRIaggr.Pat1_red, param = c("TTP","MTT"),
timepoint = c("t0","t1"), update.object = TRUE, overwrite = TRUE)
## display
selectTable(MRIaggr.Pat1_red, type = "reperfusion")
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.