Skip to contents

Check for SwissProt IDs

Usage

is_swissprot(uniprots, organism = 9606)

Arguments

uniprots

Character vector of UniProt IDs.

organism

Character or integer: name or identifier of the organism.

Value

Logical vector TRUE for SwissProt IDs and FALSE for any other element.

Examples

is_swissprot(c("Q05BL1", "A0A654IBU3", "P00533"))
#> [1] FALSE FALSE  TRUE
# [1] FALSE FALSE TRUE