
Generate sum-of-posteriors probability matrix
GenerateSampleByComponentMatrix.Rd
Given a set of extracted copy-number features and mixture models for each feature, generate a sum-of-posteriors matrix.
Usage
GenerateSampleByComponentMatrix(
CN_features,
all_components = NULL,
cores = 1,
rowIter = 1000
)
Arguments
- CN_features
A list. The output from either the
ExtractRelativeCopyNumberFeatures()
orExtractCopyNumberFeatures()
functions.- all_components
A list of flexmix objects. One for each CN-feature. Likely the output from
FitMixtureModels()
.- cores
Integer. The number of cores to use for parallel processing.
- rowIter
Integer. Number of rows to ingest per iteration if using multiple cores. Otherwise ignored.
Details
For each copy-number event for each sample the posterior probability of belonging to a component is computed. These posterior event vectors are then summed resulting in a sum-of-posterior probabilities vector. All sum-of-posterior vectors are combined into a single patient-by-component sum-of-posterior probabilities matrix.