Learn R Programming

CNVScope (version 3.7.2)

downsample_genomic_matrix: Rescale positive and negative data, preserving sign information.

Description

Downsamples a matrix by a specified factor.

Arguments

whole_matrix

A matrix to be downsampled, on a single chromosome

downsamplefactor

A factor by which to reduce the matrix. Must be something that both the row and columns can be divisible by.

singlechromosome

Single chromosome mode; Multi-chromosome not yet implemented (leave T)

Value

whole_matrix_dsamp A downsampled matrix.

Examples

Run this code
# NOT RUN {
load(system.file("extdata","nbl_result_matrix_sign_small.rda",package = "CNVScope"))
downsample_genomic_matrix(whole_matrix=nbl_result_matrix_sign_small,
downsamplefactor=5,singlechromosome=TRUE)
# }

Run the code above in your browser using DataLab