Learn R Programming

GSSTDA (version 0.1.3)

generate_disease_component: Generate disease component matrix.

Description

This function produces a disease component matrix from an expression matrix and the denoised flattened matrix constructed from "healthy tissue data".

Usage

generate_disease_component(full_data, normal_space)

Value

Disease component matrix that contains the disease component of the provided normal space

Arguments

full_data

Input matrix whose columns correspond to the patients and rows to the gens. Both tumour and healthy samples should be included.

normal_space

Denoised flattened matrix constructed from "healthy tissue data". Output of the function denoise_rectangular_matrix.

Examples

Run this code
# \donttest{
full_data <- matrix(stats::rnorm(120),ncol=20)
normal_tissue <- full_data[,11:20]
normal_tissue_f <- flatten_normal_tiss(normal_tissue)
normal_tissue_f_d <- denoise_rectangular_matrix(normal_tissue_f)
disease_component <- generate_disease_component(full_data,normal_tissue_f_d)# }

Run the code above in your browser using DataLab