For all sequences in a cluster(s) the MAD score.

calc_mad(phylota, cid)

Arguments

phylota

Phylota object

cid

Cluster ID(s)

Value

vector

Details

MAD is a measure of the deviation in sequence length of a cluster. Values range from 0 to 1. Clusters with values close to 1 have sequences with similar lengths.

See also

Examples

data("bromeliads") random_cids <- sample(bromeliads@cids, 10) (calc_mad(phylota = bromeliads, cid = random_cids))
#> 172 406 459 62 484 558 451 200 #> 0.9792898 0.9772668 0.9404255 0.9497914 0.9047201 0.9581320 0.8242991 0.9983308 #> 196 516 #> 0.9970339 0.9085937