# Extracting the first entry in the example data to use for input and germline sequences.
inputSeq <- InfluenzaDb[1, "SEQUENCE_IMGT"]
germlineSeq <- InfluenzaDb[1, "GERMLINE_IMGT_D_MASK"]
# Identify all mutations in the sequence
calcObservedMutations(inputSeq, germlineSeq)
# Identify only mutations the V segment minus CDR3
calcObservedMutations(inputSeq, germlineSeq, regionDefinition=IMGT_V_NO_CDR3)
# Identify mutations by change in hydropathy class
calcObservedMutations(inputSeq, germlineSeq, regionDefinition=IMGT_V_NO_CDR3,
mutationDefinition=HYDROPATHY_MUTATIONS, frequency=TRUE)
Run the code above in your browser using DataLab