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.

References

Stephenson et al. (2024). ProtVar: mapping and contextualizing human missense variation. Nucleic Acids Research 52(W1), W140-W147. doi:10.1093/nar/gkae413

Service documentation: https://www.ebi.ac.uk/ProtVar/

Examples

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