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).

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)."