fn.cat {BaySIC} R Documentation

## 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≤q32). 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

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

### Author(s)

Nicholas B. Larson

baysic.fit,baysic.test