res_to_poi {agvgd} | R Documentation |
Convert a residue position to an alignment position
Description
This function converts an residue position to a position in the frame of the alignment.
Usage
res_to_poi(alignment, res)
Arguments
alignment |
An alignment. |
res |
A residue position. |
Value
An integer vector of alignment positions corresponding to residue position in the reference sequence.
Examples
align_ATM <- read_alignment('ATM')
align_ATM[, 1:6]
# Convert the positions of the first five residues to alignment positions
res_to_poi(align_ATM, 1:5)
[Package agvgd version 0.1.2 Index]