getGlobalRescalingStats: Calculate several base statistics for color rescaling.

Description Usage Arguments Value Examples

View source: R/getGlobalRescalingStats.R

Description

calculates several statistics from a large matrix that can then be applied to smaller submatrices without needing to load the entire matrix into memmory

Usage

1
getGlobalRescalingStats(whole_matrix, saveToDisk = F, output_fn = NULL)

Arguments

whole_matrix

the whole matrix to get stats for.

saveToDisk

Save the statistics to disk as an RDS file in the local directory?

output_fn

the name of the output file.

Value

A list of the output statistics, including: the global min, max, length, sigma (matrix variance), pos_sigma (variance of the positive values), neg_sigma(variance of the negative values), global mean (global_mu), est_max_cap (global_mu+global_sigma_pos*2), as well as the number of rows and columns of the matrix.

Examples

1
2
load(system.file("extdata","nbl_result_matrix_sign_small.rda",package = "CNVScope"))
getGlobalRescalingStats(nbl_result_matrix_sign_small)

jamesdalg/CNVScope documentation built on Aug. 4, 2019, 9:24 p.m.