# Load example data
data(ExampleDb, package="alakazam")
# Use first entry in the exampled data for input and germline sequence
in_seq <- ExampleDb[1, "SEQUENCE_IMGT"]
germ_seq <- ExampleDb[1, "GERMLINE_IMGT_D_MASK"]
# Identify all mutations in the sequence
calcExpectedMutations(in_seq, germ_seq)
# Identify only mutations the V segment minus CDR3
calcExpectedMutations(in_seq, germ_seq, regionDefinition=IMGT_V_NO_CDR3)
# Define mutations based on hydropathy
calcExpectedMutations(in_seq, germ_seq, regionDefinition=IMGT_V_NO_CDR3,
mutationDefinition=HYDROPATHY_MUTATIONS)
Run the code above in your browser using DataLab