createSubstitutionMatrix
builds a 5-mer nucleotide substitution model by counting
the number of substitution mutations occuring in the center position for all 5-mer
motifs.
createSubstitutionMatrix(db, model = c("RS", "S"), sequenceColumn = "SEQUENCE_IMGT", germlineColumn = "GERMLINE_IMGT_D_MASK", vCallColumn = "V_CALL", multipleMutation = c("independent", "ignore"), returnModel = c("5mer", "1mer", "1mer_raw"), minNumMutations = 50)
"independent"
then multiple
mutations within the same 5-mer are counted indepedently.
If "ignore"
then 5-mers with multiple mutations are
excluded from the total mutation tally.c("5mer", "1mer", "1mer_raw")
. If "5mer"
(the default) then a 5-mer nucleotide context model is
returned. If "1mer"
or "1mer_raw"
then a single
nucleotide substitution matrix (no context) is returned;
where "1mer_raw"
is the unnormalized version of the
"1mer"
model. Note, neither 1-mer model may be used
as input to createMutabilityMatrix.c("A", "C", "G", "T")
,
and column names defining the 5-mer nucleotide sequence.
# Subset example data to one isotype and sample as a demo
data(ExampleDb, package="alakazam")
db <- subset(ExampleDb, ISOTYPE == "IgA" & SAMPLE == "-1h")
# Create model using only silent mutations
sub <- createSubstitutionMatrix(db, model="S")
Run the code above in your browser using DataLab