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