Skip to contents

Get slot data for either or sequences in a cluster of a vector of sequence IDs. Use list_seqrec_slots() for a list of available slots.

Usage

get_sq_slot(phylota, cid = NULL, sid = NULL, slt_nm = list_seqrec_slots())

Arguments

phylota

Phylota object

cid

Cluster ID

sid

Sequence ID(s)

slt_nm

Slot name

Value

vector

Examples

data('aotus')
random_sid <- sample(aotus@sids, 1)
(get_sq_slot(phylota = aotus, sid = random_sid, slt_nm = 'dfln'))
#>                                                                                          MT488761.1 
#> "Aotus azarai infulatus voucher MCB57 cholinergic receptor nicotinic alpha 1 (CHRNA1) gene, intron" 
# see list_seqrec_slots() for available slots
(list_seqrec_slots())
#>  [1] "id"      "nm"      "accssn"  "vrsn"    "url"     "txid"    "orgnsm" 
#>  [8] "dfln"    "ml_typ"  "rec_typ" "nncltds" "nambgs"  "pambgs"  "gcr"    
#> [15] "age"