addMSA | R Documentation |
Meant for developers only.
addMSA(ref_col2res, alt_col2res, hit_mat)
ref_col2res |
output of |
alt_col2res |
output of |
hit_mat |
output of |
Based on the output of recodeMSA and initCounter the MSAs are compared and scores are added to the scores matrix (initCounter matrix)
Franz-Sebastian Krah
## Not run:
## Minimal (unrealistic) example for the score computation
# Base MSA
s <- matrix(c("-", "a", "c", "t", "g",
"-", "a", "c", "t", "g",
"a", "-", "c", "t", "g"), 3,5, byrow = T)
s <- as.DNAbin(s)
# Alternative MSA
s.alt <- matrix(c("-", "a", "c", "t", "g", "-",
"a", "c", "t", "g", "-",
"a", "c", "t", "g"), 3,5, byrow = T)
s.alt <- as.DNAbin(s.alt)
# Recode base MSA (Cmatrix)
s.recode <- recodeMSA(msa = s)
# Recode alt MSA (Cmatrix)
s.alt.recode <- recodeMSA(msa = s.alt)
# Initialize counter (basis for residue pair score)
s.counter <- initCounter(s.recode)
s.counter
# Update counter
s.counter <- addMSA(ref_col2res = s.recode, alt_col2res = s.alt.recode, hit_mat = s.counter)
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.