Skip to contents

Checks if given txid is represented by sequence by looking at sequence source organism's lineage.

Usage

is_txid_in_sq(phylota, txid, sid)

Arguments

phylota

Phylota

txid

Taxonomic ID

sid

Sequence ID

Value

boolean

Examples

data(tinamous)
sid <- tinamous@sids[[1]]
sq <- tinamous[[sid]]
txid <- sq@txid
# expect true
is_txid_in_sq(phylota = tinamous, txid = txid, sid = sid)
#> [1] TRUE