Usage
createMutabilityMatrix(db, substitutionModel, model = c("RS", "S"), sequenceColumn = "SEQUENCE_IMGT", germlineColumn = "GERMLINE_IMGT_D_MASK", vCallColumn = "V_CALL", multipleMutation = c("independent", "ignore"), minNumSeqMutations = 500, numSeqMutationsOnly = FALSE, returnSource = FALSE)
Arguments
db
data.frame containing sequence data.
model
type of model to create. The default model, "RS", creates
a model by counting both replacement and silent mutations.
The "S" specification builds a model by counting only
silent mutations.
sequenceColumn
name of the column containing IMGT-gapped sample sequences.
germlineColumn
name of the column containing IMGT-gapped germline sequences.
vCallColumn
name of the column containing the V-segment allele call.
multipleMutation
string specifying how to handle multiple mutations occuring
within the same 5-mer. If "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.
minNumSeqMutations
minimum number of mutations in sequences containing each 5-mer
to compute the mutability rates. If the number is smaller
than this threshold, the mutability for the 5-mer will be
inferred. Default is 500.
numSeqMutationsOnly
return only a vector counting the observed number of mutations
in sequences containing each 5-mer. This option can be used for
parameter tuning for minNumSeqMutations
during
preliminary analysis. Default is FALSE
.
returnSource
return the sources of 5-mer mutabilities (measured vs.
inferred). Default is FALSE
.