make.heldout.obj: tcsm's internal function to calculate likelihood for each 'K'...

View source: R/Runtcsm.R

make.heldout.objR Documentation

tcsm's internal function to calculate likelihood for each K using heldout method.

Description

This code requires the CRAN package stm https://cran.r-project.org/package=stm.

Usage

make.heldout.obj(train.mc.data, test.mc.data)

Arguments

train.mc.data

Transposed ICAMS spectra catalog containing mutations of training samples.

test.mc.data

Transposed ICAMS spectra catalog containing mutations of testing samples.

Details

tcsm advises to use "heldout" method to obtain the likelihood of number of mutational signatures, K. That is, to split the whole spectra catalogs dataset into 2 parts:

80 for training stm model, 20 for estimating likelihood for given K.

Value

heldout, which is a named list $missing $index $docs - list where each element is a list containing the mutations for a given sample $documents - list where each element is a list containing the mutations for a given sample $vocab - list the vocabularies, which refers to mutation types.


WuyangFF95/SynSigRun documentation built on Oct. 7, 2022, 1:16 p.m.