R/protvar.R
protvar_position.Rd
Pure. Accepts the several forms these arrive in: "R175H", "p.Arg175His", "Arg175His", or a bare "175".
"R175H"
"p.Arg175His"
"Arg175His"
"175"
protvar_position(variant)
A protein-change string.
An integer position, or NULL when there is no number in it.
NULL
protvar_position("p.Arg175His") #> [1] 175 protvar_position("R175H") #> [1] 175 protvar_position("no digits here") #> NULL