Skip to contents

Pure. Returns the first FUNCTION comment, with citations stripped.

Usage

protvar_parse_function(body)

Arguments

body

A parsed ProtVar /function response.

Value

A single string, or NA_character_ when there is no function comment.

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

body <- list(comments = list(list(
  type = "FUNCTION",
  text = list(list(value = "Induces arrest (PubMed:11025664)."))
)))
protvar_parse_function(body)
#> [1] "Induces arrest."