Skip to contents

Find position from amino acid string.

Usage

pos_from_aa(aa)

Arguments

aa

A vector of mutations. aa:orf1a:I300V, ins:28215:3, del:27378:25, or C703T

Details

Finds the 0-indexed position of the amino acid. Intended to aid in adding coverage for mutations that weren't observed.

Examples

pos_from_aa("aa:orf1a:I300V") #1166
#> [1] 1166
pos_from_aa("C703T") # 703
#> [1] 703