read.scaling.factors: Read scaling factors from file

Description Usage Arguments Details Value Author(s) Examples

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

Description

Read scaling factors from file

Usage

1
read.scaling.factors(scaling.factor.files.dir,data.types);

Arguments

scaling.factor.files.dir

the directory where the files were saved

data.types

a vector of the data types with saved scaling factors

Details

One scale and one center file is saved per data type

Value

a list with a key \"center\" list and a key \"scale\" list. The center and scale list keys match the data.matrices list keys

Author(s)

Natalie Fox

Examples

1
2
3
4
5
6
7
8
# Get the path for the scaling provided in this R package
example.molecular.data.dir <- paste0(path.package('iSubGen'),'/exdata/');

# Example #1: reading scaling factors for a single data type
scaling.factors <- read.scaling.factors(example.molecular.data.dir, 'cna');

# Example #2: reading scaling factors for multiple data types
scaling.factors <- read.scaling.factors(example.molecular.data.dir, c('cna','snv','methy'));

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