Check and return the SBS mutation matrix
CheckAndReturnSBSMatrix(
vcf,
discarded.variants,
mat96,
mat1536,
mat192 = NULL,
return.annotated.vcf = FALSE,
sample.id = "counts"
)
A list of three 1-column matrices with the names
catSBS96
, catSBS192
, catSBS1536
. If transcript
information is not available in vcf
, catSBS192
is not
generated. Do not rely on the order of elements in the list. If
return.annotated.vcf
= TRUE, another element annotated.vcf
will appear in the list. If there are SBS variants whose pentanucleotide
context contains "N", they will be excluded in the analysis and an
additional element discarded.variants
will appear in the return
list.
An in-memory VCF file annotated with sequence context and
transcript information by function AnnotateSBSVCF
. It must
*not* contain indels and must *not* contain DBS (double base
substitutions), or triplet base substitutions etc., even if encoded as
neighboring SBS.
A data.frame
which contains rows of SBS
variants whose pentanucleotide context contains "N".
The SBS96 mutation count matrix.
The SBS1536 mutation count matrix.
The SBS192 mutation count matrix.
Whether to return the annotated VCF with additional columns showing the mutation class for each variant. Default is FALSE.
Usually the sample id, but defaults to "count".