Skip to contents

Drop all sequences in a cluster except those identified by user.

Usage

drop_sqs(phylota, cid, sid)

Arguments

phylota

Phylota object

cid

Cluster ID

sid

Sequence ID(s) to be kept

Value

phylota

Examples

data("dragonflies")
# drop random sequences from cluster 0
clstr <- dragonflies[['0']]
# specify the sids to *keep*
sids <- sample(clstr@sids, 100)
(dragonflies <- drop_sqs(phylota = dragonflies, cid = '0', sid = sids))
#> Phylota Table (Anisoptera)
#> - [811] clusters
#> - [14714] sequences
#> - [1609] source taxa
# Note, sequences dropped may be represented in other clusters