Cluster record contains all information on a cluster.

# S4 method for ClstrRec
as.character(x)

# S4 method for ClstrRec
show(object)

# S4 method for ClstrRec
print(x)

# S4 method for ClstrRec
str(object, max.level = 2L, ...)

# S4 method for ClstrRec
summary(object)

Arguments

x

ClstrRec object

object

ClstrRec object

max.level

Maximum level of nesting for str()

...

Further arguments for str()

Slots

id

Cluster ID, integer

sids

Sequence IDs

nsqs

Number of sequences

txids

Source txids for sequences

ntx

Number of taxa

typ

Cluster type: direct, subtree or merged

seed

Seed sequence ID

prnt

Parent taxonomic ID

See also

Examples

data('aotus') clstrrec <- aotus@clstrs@clstrs[[1]] # this is a ClstrRec object # it contains cluster information show(clstrrec)
#> Cluster Record [id 0] #> - [subtree] type #> - [AF129794.1] seed sequence #> - [204] sequences #> - [5] taxa
# you can access its different data slots with @ clstrrec@id # cluster id
#> [1] 0
clstrrec@sids # sequence IDs
#> [1] "AF129792.1" "AF129793.1" "AF129794.1" #> [4] "AF129795.1" "AF129796.1" "AF129797.1" #> [7] "AF129798.1" "AF129799.1" "AF129800.1" #> [10] "AF129801.1" "AF129802.1" "AF129803.1" #> [13] "AF129804.1" "AF129805.1" "AF129806.1" #> [16] "AF129807.1" "AF129808.1" "AF132755.1" #> [19] "AF132756.1" "AF132757.1" "AF132758.1" #> [22] "AF132759.1" "AF132760.1" "AF132761.1" #> [25] "AF132762.1" "AF132763.1" "AF132764.1" #> [28] "AF132765.1" "AF132766.1" "AF132767.1" #> [31] "AF132768.1" "AF132769.1" "AF132770.1" #> [34] "AF169485.1" "AF169486.1" "AF169487.1" #> [37] "AY227055.1" "AY227056.1" "AY227057.1" #> [40] "AY227058.1" "AY227059.1" "AY227060.1" #> [43] "AY227061.1" "AY227062.1" "AY227063.1" #> [46] "AY227064.1" "AY227065.1" "AY227066.1" #> [49] "AY227067.1" "AY227068.1" "AY227069.1" #> [52] "AY227070.1" "AY227071.1" "AY227072.1" #> [55] "AY227073.1" "AY227074.1" "AY429142.1" #> [58] "AY429143.1" "AY493661.1" "AY563180.2" #> [61] "AY563181.2" "AY563182.2" "AY563183.2" #> [64] "AY563184.2" "AY563185.2" "AY563186.2" #> [67] "AY563188.2" "AY563189.2" "AY563190.2" #> [70] "AY563191.2" "AY563192.2" "AY563193.2" #> [73] "AY563194.2" "AY563195.2" "AY563196.2" #> [76] "AY563197.2" "AY563198.2" "AY563199.2" #> [79] "AY563200.2" "AY563201.2" "AY563202.2" #> [82] "AY563203.2" "AY563204.2" "AY563206.2" #> [85] "AY563207.2" "AY563208.2" "AY563209.2" #> [88] "AY563210.2" "AY563211.2" "AY563212.2" #> [91] "AY563213.2" "AY563214.2" "AY563215.2" #> [94] "AY563216.2" "AY563217.2" "AY563218.2" #> [97] "AY563219.2" "AY563220.2" "AY563221.2" #> [100] "AY563222.2" "AY563223.2" "AY563224.2" #> [103] "AY563225.2" "AY563226.2" "AY563227.2" #> [106] "AY563228.2" "AY563229.2" "AY563230.2" #> [109] "AY563231.2" "AY563232.2" "AY563233.2" #> [112] "AY563234.2" "AY563236.2" "AY563237.2" #> [115] "AY563239.2" "AY563241.2" "AY563242.2" #> [118] "AY563243.2" "AY563244.2" "AY563245.2" #> [121] "AY563246.2" "AY563247.2" "AY563248.2" #> [124] "AY563249.2" "AY563250.2" "AY563251.2" #> [127] "AY563252.2" "AY563253.2" "AY563254.2" #> [130] "AY563255.2" "AY563256.2" "AY563257.2" #> [133] "AY563258.2" "AY563259.2" "AY563260.2" #> [136] "AY563261.2" "AY563262.2" "AY563263.2" #> [139] "DQ162624.1" "DQ162626.1" "DQ162627.1" #> [142] "DQ162628.1" "DQ162629.1" "DQ162630.1" #> [145] "DQ162633.1" "DQ162634.1" "DQ162635.1" #> [148] "DQ162645.1" "DQ162646.1" "DQ162647.1" #> [151] "DQ162648.1" "DQ162660.1" "DQ162661.1" #> [154] "DQ162668.1" "DQ162676.1" "DQ162679.1" #> [157] "DQ162682.1" "DQ162683.1" "DQ162688.1" #> [160] "DQ162699.1" "DQ162704.1" "DQ162705.1" #> [163] "DQ162710.1" "DQ162711.1" "DQ162718.1" #> [166] "DQ162719.1" "DQ162727.1" "DQ162729.1" #> [169] "DQ162732.1" "DQ162736.1" "KF447733.1/16..285" #> [172] "KF447734.1/16..285" "KF447735.1/16..285" "KF447736.1/16..285" #> [175] "KF447737.1/16..285" "KF447738.2/16..285" "KF447739.1/16..285" #> [178] "KF447740.1/16..285" "KF447741.1/16..285" "KF447742.1/16..285" #> [181] "KF447743.1/16..285" "KF447744.1/16..285" "KF447745.1/16..285" #> [184] "KF447746.1/16..285" "KF447747.1/16..285" "KF447748.1/16..285" #> [187] "KF447749.1/16..285" "KF447750.1/16..285" "KF447751.1/16..285" #> [190] "KF447752.1/16..285" "KF447753.1/16..285" "KF447754.1/16..285" #> [193] "KF447755.1/16..285" "KF447756.1/16..285" "KF447757.1/16..285" #> [196] "KF447758.1/16..285" "KF447759.1/16..285" "KF447760.1/16..285" #> [199] "KF447761.1/16..285" "KF447762.1/16..285" "KF447763.1/16..285" #> [202] "KF447764.1/16..285" "KF447765.1/16..285" "KF447766.1/16..285"
clstrrec@nsqs # number of sequences
#> [1] 204
clstrrec@txids # taxonomic IDs of sequences
#> [1] "231953" "231953" "231953" "231953" "231953" "231953" "231953" "231953" #> [9] "231953" "231953" "231953" "231953" "231953" "231953" "231953" "231953" #> [17] "231953" "231953" "231953" "231953" "37293" "37293" "37293" "37293" #> [25] "30591" "30591" "37293" "37293" "37293" "37293" "37293" "37293" #> [33] "37293" "37293" "37293" "37293" "37293" "37293" "37293" "57175" #> [41] "37293" "37293" "37293" "37293" "37293" "37293" "37293" "37293" #> [49] "37293" "37293" "37293" "37293" "37293" "57175" "37293" "37293" #> [57] "37293" "37293" "37293" "57176" "57176" "57176" "57176" "57176" #> [65] "57176" "37293" "37293" "57176" "57176" "57176" "57176" "37293" #> [73] "37293" "37293" "37293" "37293" "37293" "37293" "37293" "37293" #> [81] "37293" "37293" "37293" "37293" "57176" "57176" "57176" "57176" #> [89] "57176" "57176" "57176" "37293" "57176" "57175" "57175" "57175" #> [97] "57175" "57175" "57175" "57175" "57175" "37293" "37293" "37293" #> [105] "37293" "37293" "37293" "37293" "37293" "37293" "37293" "37293" #> [113] "37293" "37293" "37293" "37293" "57176" "57176" "57176" "57176" #> [121] "57176" "57176" "57176" "57176" "57176" "57176" "57175" "57175" #> [129] "57175" "57175" "57176" "57175" "57175" "37293" "57175" "57175" #> [137] "57175" "57175" "57175" "57175" "57175" "57175" "57175" "57175" #> [145] "57175" "57175" "57175" "57175" "37293" "37293" "37293" "37293" #> [153] "37293" "37293" "37293" "37293" "57175" "37293" "57176" "57175" #> [161] "37293" "37293" "37293" "37293" "37293" "37293" "57176" "37293" #> [169] "37293" "37293" "37293" "37293" "37293" "37293" "37293" "37293" #> [177] "37293" "37293" "37293" "37293" "37293" "37293" "37293" "37293" #> [185] "37293" "37293" "37293" "37293" "37293" "37293" "37293" "37293" #> [193] "37293" "37293" "37293" "37293" "37293" "37293" "37293" "37293" #> [201] "37293" "37293" "37293" "37293"
clstrrec@ntx # number unique taxonomic IDs
#> [1] 5
clstrrec@typ # cluster type: merged, subtree, direct or paraphyly
#> [1] "subtree"
clstrrec@prnt # MRCA of all taxa
#> [1] "9504"
clstrrec@seed # most inter-connected sequence
#> [1] "AF129794.1"