Learn R Programming

BaySIC (version 1.0)

fn.cat: Collapses SNV and reference data into sequence mutation categories

Description

Subroutine for baysic.fit and baysic.test which generates reduced data representations of mutation and reference data by collapsing sequence categories into single columns

Usage

fn.cat(dat, snv.cat)

Arguments

dat
$G\times 32$ ref.dat or snv.dat data matrix
snv.cat
a list of length $C$, where $C$ is the number of sequence categories desired to be modeled ($C\leq32$). Each element of snv.cat should be a vector of character strings of trinucleotide motifs (e.g., c("ATA","ACA")) which define a group of motifs which are assumed to have the same background mutation rate.

Value

$G\times C$ matrix where each column corresponds to an SNV sequence category in snv.cat

See Also

baysic.fit,baysic.test