initCounter | R Documentation |
Meant for developers only.
initCounter(col2res)
col2res |
Output from |
Produce res_pair_hit object as basis for comparing residue pairs.
This matrix contains all residue pairs in the MSA and the information
if they are bases (hit = 0) or gabs (-1); the hits are later updated by
comparisons with the alternative MSAs (see add_msa).
The function 'init_counters' in 'set_msa_score' (see recodeMSA
) uses 3D matrices,
which is not straight forewardly implemented in Rcpp, which is why I
work with a nxk matrix, with k many columns as the REF MSA and n rows for all
residue pairs.
This is almost equally fast, however, the subsequent calculation of derived
scores is not as handy. These are done in the function 'scores'.
For an example see addMSA
Franz-Sebastian Krah
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.