Skip to contents

Pure.

Usage

protvar_strip_citations(text)

Arguments

text

A function comment.

Value

The text with citation groups removed.

Details

UniProt FUNCTION comments carry their evidence inline, as (PubMed:11025664, PubMed:12524540, ...). For a well-studied protein the citations run longer than the prose they support. This drops the citation groups and tidies the punctuation left behind, while keeping non-citation parentheticals such as (By similarity).

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_strip_citations("Induces arrest (PubMed:11025664, PubMed:12524540).")
#> [1] "Induces arrest."
protvar_strip_citations("Binds DNA (By similarity).")
#> [1] "Binds DNA (By similarity)."