write.scaling.factors: Write scaling factors to file

Description Usage Arguments Details Value Author(s) Examples

View source: R/write.scaling.factors.R

Description

Write scaling factors to file

Usage

1
write.scaling.factors(scaling.factors, scaling.factor.files.dir=NULL)

Arguments

scaling.factors

list with the scaling factors created by calculate.scaling

scaling.factor.files.dir

directory to output scaling factor files

Details

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

Value

No return value, called for side effects

Author(s)

Natalie Fox

Examples

 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)

iSubGen documentation built on April 22, 2021, 5:11 p.m.