View source: R/utility_functions.R
SaveWithinSubjCovMatrices | R Documentation |
Save the ilr-transformed within subject covariance matricies needed for a CompDTUme analysis
SaveWithinSubjCovMatrices(
directory,
save_dir,
GibbsSamps,
curr_part_num,
nsamp,
CLE = TRUE,
CLEParam = 0.05
)
directory |
is the directory where previous datasets are saved by |
save_dir |
is the outer directory to save the full inferential replicate datasets in. Datasets can get quite large with a large number of samples or small number of parts so choose a directory with plenty of free space.
Specified directory should be the same in |
GibbsSamps |
is TRUE if the inferential replicates are Gibbs samples and FALSE if the replicates are bootstrap samples |
curr_part_num |
is the current part number that is being run. The genelist specified in |
nsamp |
is the number of biological samples/replicates used in the analysis |
CLE |
is TRUE if the |
CLEParam |
is the parameter (betwen 0 and 1) that controls the correction threshold (see details of |
This function is used to save the necessary within subject covariance matrices. See the file (3)SaveNecessaryDatasetsForCompDTUReg.R in the package's SampleCode folder for example code.
This function will save the sample-specific mean and covariance values across all inferential replicates on the ilr
scale for all genes within the current part number curr_part_num
. These files will be saved within the subdirectory
"ilrMeansCovs/" in the save_dir
folder and will be used by SaveGeneLevelFiles
if present.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.