Learn R Programming

LowMACA (version 1.4.2)

mapMutations: Map mutations on consensus sequence

Description

mapMutations is a method for the class LowMACA that re-maps the mutations on a sequence to the relative position in a consensus sequence.

Usage

mapMutations(object)

Arguments

object
an object of class LowMACA

Value

An object of class LowMACA with an update in the slot mutations. mapMutations add a object named aligned of class matrix in this slot that represents the absolute number of mutations in each sequence/position in the consensus as a matrix.

Details

Every position in the consensus alignement correspond to different positions in the single aligned sequences. The mutations are mapped according to this scheme that can be evinced from the slot alignment. mapMutations must be called after alignSequences and getMutations

See Also

getMutations alignSequences LowMACA-class

Examples

Run this code
#Create an object of class LowMACA
lm <- newLowMACA(pfam="PF12906")
#Align the sequences, requires clustalo
## Not run: lm <- alignSequences(lm)
#Get mutations from the corresponding genes
## Not run: lm <- getMutations(lm)
#Map mutations on the consensus sequence
## Not run: lm <- mapMutations(lm)

Run the code above in your browser using DataLab