Skip to contents

Pure. Accepts the several forms these arrive in: "R175H", "p.Arg175His", "Arg175His", or a bare "175".

Usage

protvar_position(variant)

Arguments

variant

A protein-change string.

Value

An integer position, or NULL when there is no number in it.

Examples

protvar_position("p.Arg175His")
#> [1] 175
protvar_position("R175H")
#> [1] 175
protvar_position("no digits here")
#> NULL