generateSampleByComponentMatrix: Get components per sample

View source: R/cnsignature_functions.R

generateSampleByComponentMatrixR Documentation

Get components per sample

Description

This function get components per sample. Approach developed by Geoff Macintyre et al. 2018

Usage

generateSampleByComponentMatrix(
  CN_features,
  all_components = NULL,
  cores = 1,
  rowIter = 1000,
  subcores = 2
)

Arguments

CN_features

list with features per sample

all_components

components of copy-number signatures to obtain

cores

number of cores to use. Default is 1

rowIter

iterations for calculation of sum of posteriors

subcores

number of subcores to use. Default is 2

Value

A matrix with components per sample

Examples

## Not run: 
profiles< getProfiles(segcn=cells_segcn,
    samples=unique(cells_segcn$sample)[1:4])
CN_features<-extractCopynumberFeatures(profiles)
sample_by_component<-generateSampleByComponentMatrix(CN_features,
    all_components=component_parameters)

## End(Not run)

macintyrelab/CNpare documentation built on April 15, 2022, 4:46 a.m.