# Extracting the first entry in the exampled 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
calcExpectedMutations(inputSeq, germlineSeq)
# Identify only mutations the V segment minus CDR3
calcExpectedMutations(inputSeq, germlineSeq, regionDefinition=IMGT_V_NO_CDR3)
# Define mutations based on hydropathy
calcExpectedMutations(inputSeq, germlineSeq, regionDefinition=IMGT_V_NO_CDR3,
mutationDefinition=HYDROPATHY_MUTATIONS)
Run the code above in your browser using DataLab