Skip to contents

Checks if given txid is represented by any of the sequences of a cluster by searching through all the sequence search organism lineages.

Usage

is_txid_in_clstr(phylota, txid, cid)

Arguments

phylota

Phylota

txid

Taxonomic ID

cid

Cluster ID

Value

boolean

Examples

data(tinamous)
cid <- tinamous@cids[[1]]
clstr <- tinamous[[cid]]
sq <- tinamous[[clstr@sids[[1]]]]
txid <- sq@txid
# expect true
is_txid_in_clstr(phylota = tinamous, txid = txid, cid = cid)
#> [1] TRUE