get_residue_position: Extract amino acid residue position from HGVS protein...

Description Usage Arguments Value Author(s) Examples

View source: R/get_residue_position.r

Description

This function makes most sense for mutations that impact a single amino acid such as the missense mutation p.Trp26Cys. For indels and duplications, where many amino acid positions are impacted, the first amino acid, i.e. the lowest index, is taken.

Usage

1

Arguments

hgvs

vector of variant protein consequences in HGVS format e.g. p.Trp26Cys or p.A54Y.

Value

Returns a numeric vector of amino acid positions

Author(s)

Adam Waring - adam.waring@msdtc.ox.ac.uk

Examples

1
get_residue_position("p.Trp26Cys")

adamwaring/ClusterBurden documentation built on July 29, 2020, 9:50 p.m.