poi_to_res: Convert an alignment position to residue position

View source: R/poi_to_res.R

poi_to_resR Documentation

Convert an alignment position to residue position

Description

This function converts an alignment position to a position in the frame of the reference protein sequence, i.e., to the positions of the amino acids in the first sequence of the alignment.

Usage

poi_to_res(alignment, poi)

Arguments

alignment

An alignment.

poi

An alignment position.

Value

An integer vector of positions of the amino acid residues in the reference sequence.

Examples

align_ATM <- read_alignment('ATM')
align_ATM[, 1:5]

# Convert the positions of the first five alignment positions to residue positions
poi_to_res(align_ATM, 1:5)


maialab/agvgd documentation built on Jan. 10, 2024, 6:08 p.m.