Skip to contents

A small, simulated example data set representing metagenome-assembled genome (MAG) abundances across host samples from two groups (control and treatment), where a block of MAGs is enriched in the treatment group so that beta diversity is non-trivial. Generated by data-raw/make-data.R.

Usage

gut_counts

Format

An integer matrix with 24 rows (MAGs, mag01..mag24) and 12 columns (samples, ctrl01..ctrl06 and trt01..trt06).

See also

Examples

hilldiv(gut_counts, q = c(0, 1, 2))
#> Computing "neutral" Hill numbers of "q0", "q1", and "q2".
#>  24 taxa across 12 samples.
#> <hilldiv3 result: neutral>
#> 36 rows x 3 cols
#> 
#>    q sample     value
#> 1  0 ctrl01 24.000000
#> 2  1 ctrl01 12.329592
#> 3  2 ctrl01  7.991400
#> 4  0 ctrl02 24.000000
#> 5  1 ctrl02 14.784342
#> 6  2 ctrl02 11.085165
#> 7  0 ctrl03 24.000000
#> 8  1 ctrl03 11.832847
#> 9  2 ctrl03  7.013457
#> 10 0 ctrl04 23.000000
#> 11 1 ctrl04 11.266414
#> 12 2 ctrl04  6.913044
#> 13 0 ctrl05 24.000000
#> 14 1 ctrl05 10.035886
#> 15 2 ctrl05  6.197818
#> 16 0 ctrl06 24.000000
#> 17 1 ctrl06 13.277945
#> 18 2 ctrl06  9.484654
#> 19 0  trt01 24.000000
#> 20 1  trt01 11.888942
#> 21 2  trt01  8.154680
#> 22 0  trt02 24.000000
#> 23 1  trt02  8.350790
#> 24 2  trt02  4.184230
#> 25 0  trt03 24.000000
#> 26 1  trt03 15.681517
#> 27 2  trt03 12.938391
#> 28 0  trt04 23.000000
#> 29 1  trt04 11.671685
#> 30 2  trt04  8.427938
#> 31 0  trt05 23.000000
#> 32 1  trt05  9.043005
#> 33 2  trt05  5.244426
#> 34 0  trt06 23.000000
#> 35 1  trt06 10.901319
#> 36 2  trt06  7.729680