Description Usage Arguments Details Value Author(s) Examples
View source: R/write.scaling.factors.R
Write scaling factors to file
1 | write.scaling.factors(scaling.factors, scaling.factor.files.dir=NULL)
|
scaling.factors |
list with the scaling factors created by calculate.scaling |
scaling.factor.files.dir |
directory to output scaling factor files |
Creates two files for each data type key. One file for the recentering values and one file for the rescaling values. Files have the names <data type>_gene_recenter.txt or <data type>_gene_rescale.txt
No return value, called for side effects
Natalie Fox
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 | ## Not run:
# load the aberration profiles for three data types
example.molecular.data.dir <- paste0(path.package('iSubGen'),'/exdata/');
molecular.data <- list();
for(i in c('cna','snv','methy')) {
molecular.data[[i]] <- load.molecular.aberration.data(
paste0(example.molecular.data.dir,i,'_profiles.txt'),
patients = c(paste0('EP00',1:9), paste0('EP0',10:30))
);
}
# calculate scaling factors for all three data types
scaling.factors <- calculate.scaling(molecular.data);
# save the scaling factors to file
write.scaling.factors(scaling.factors);
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.