ICAMS (version 2.0.7)

CreateOneColSBSMatrix: Create the matrix an SBS catalog for *one* sample from an in-memory VCF.

Description

Create the matrix an SBS catalog for *one* sample from an in-memory VCF.

Usage

CreateOneColSBSMatrix(vcf, trans.ranges = NULL, sample.id = "count")

Arguments

vcf

An in-memory VCF file annotated by the AddSeqContext and AddTranscript functions. It must *not* contain indels and must *not* contain DBS (double base substitutions), or triplet base substitutions etc., even if encoded as neighboring SBS.

trans.ranges

A data.table which contains transcript range and strand information. Please refer to TranscriptRanges for more details.

sample.id

Usually the sample id, but defaults to "count".

Value

A list of three 1-column matrices with the names catSBS96, catSBS192, catSBS1536. If trans.ranges is NULL, catSBS192 is not generated. Do not rely on the order of elements in the list.