Skip to contents

Reading data

Get bulk export from bugsigdb.org:

full.dat <- bugsigdbr::importBugSigDB(version = "devel", cache = FALSE)
dim(full.dat)
## [1] 17606    57
colnames(full.dat)
##  [1] "BSDB ID"                    "Study"                     
##  [3] "Study design"               "PMID"                      
##  [5] "DOI"                        "URL"                       
##  [7] "Authors list"               "Title"                     
##  [9] "Journal"                    "Year"                      
## [11] "Keywords"                   "Curation method"           
## [13] "Curation protocol"          "submittedBy"               
## [15] "submissionDate"             "Review state"              
## [17] "Quality control tag"        "Experiment"                
## [19] "Location of subjects"       "Host species"              
## [21] "Body site"                  "UBERON ID"                 
## [23] "Condition"                  "EFO ID"                    
## [25] "Group 0 name"               "Group 1 name"              
## [27] "Group 1 definition"         "Group 0 sample size"       
## [29] "Group 1 sample size"        "Antibiotics exclusion"     
## [31] "Sequencing type"            "16S variable region"       
## [33] "Sequencing platform"        "Data transformation"       
## [35] "Statistical test"           "Significance threshold"    
## [37] "MHT correction"             "LDA Score above"           
## [39] "Matched on"                 "Confounders controlled for"
## [41] "Pielou"                     "Shannon"                   
## [43] "Chao1"                      "Simpson"                   
## [45] "Inverse Simpson"            "Richness"                  
## [47] "Signature page name"        "Source"                    
## [49] "Curated date"               "Curator"                   
## [51] "Revision editor"            "Description"               
## [53] "Abundance in Group 1"       "MetaPhlAn taxon names"     
## [55] "NCBI Taxonomy IDs"          "State"                     
## [57] "Reviewer"

Stripping illformed entries:

is.study <- !is.na(full.dat[["Study"]])
is.exp <- !is.na(full.dat[["Experiment"]])
full.dat <- full.dat[is.study & is.exp, ]

Curation output

Number of papers and signatures curated:

pmids <- unique(full.dat[,"PMID"])
length(pmids)
## [1] 2436
nrow(full.dat)
## [1] 17606

Publication date of the curated papers:

pmids <- pmids[!is.na(pmids)]
pubyear <- pmid2pubyear(pmids)
head(cbind(pmids, pubyear))
tab <- table(pubyear)
tab <- tab[order(as.integer(names(tab)))]
df <- data.frame(year = names(tab), papers = as.integer(tab))
ggbarplot(df, x = "year", y = "papers", 
          label = TRUE, fill = "steelblue",
          ggtheme = theme_bw())

Stripping empty signatures:

ind1 <- lengths(full.dat[["MetaPhlAn taxon names"]]) > 0
ind2 <- lengths(full.dat[["NCBI Taxonomy IDs"]]) > 0
dat <- full.dat[ind1 & ind2,]
nrow(dat)
## [1] 17606

Papers containing only empty UP and DOWN signatures (under curation?):

setdiff(pmids, unique(dat[,"PMID"]))
## character(0)

Progress over time:

dat[,"Curated date"] <- as.character(lubridate::dmy(dat[,"Curated date"]))
plotProgressOverTime(dat)

plotProgressOverTime(dat, diff = TRUE)

Stratified by curator:

npc <- stratifyByCurator(dat)
plotCuratorStats(dat, npc)

Number of complete and revised signatures:

table(dat[["State"]])
## 
## Complete 
##    17198

Revisions stratified by editor. Signatures revised by several people are credited to each of them, and the WikiWorks maintenance accounts are excluded:

rpc <- stratifyByCurator(dat, col = "Revision editor")
DT::datatable(
  data.frame(Editor = colnames(rpc),
             Signatures = rpc["signatures",],
             Papers = rpc["papers",]),
  rownames = FALSE,
  options = list(pageLength = 10, order = list(list(2, "desc"))),
  caption = "Revision contributions per editor"
)

Top 30 revision editors:

plotCuratorStats(dat, rpc[,tail(seq_len(ncol(rpc)), 30)])

Study stats

Study design

spl <- split(dat[["Study"]], dat[["Study design"]])
sds <- lapply(spl, unique)
sort(lengths(sds), decreasing = FALSE)
##                                                 case-control,randomized controlled trial 
##                                                                                        1 
##              cross-sectional observational, not case-control,randomized controlled trial 
##                                                                                        1 
## cross-sectional observational, not case-control,time series / longitudinal observational 
##                                                                                        1 
##                                           prospective cohort,randomized controlled trial 
##                                                                                        1 
##                                                      laboratory experiment,meta-analysis 
##                                                                                        2 
##                                                         meta-analysis,prospective cohort 
##                                                                                        2 
##                                                          case-control,prospective cohort 
##                                                                                        3 
##                       cross-sectional observational, not case-control,prospective cohort 
##                                                                                        4 
##                                                 laboratory experiment,prospective cohort 
##                                                                                        4 
##                              prospective cohort,time series / longitudinal observational 
##                                                                                        4 
##                    cross-sectional observational, not case-control,laboratory experiment 
##                                                                                        5 
##                                        laboratory experiment,randomized controlled trial 
##                                                                                        5 
##                     randomized controlled trial,time series / longitudinal observational 
##                                                                                        5 
##                           laboratory experiment,time series / longitudinal observational 
##                                                                                        8 
##                                                               case-control,meta-analysis 
##                                                                                        9 
##                                    case-control,time series / longitudinal observational 
##                                                                                        9 
##                                                       case-control,laboratory experiment 
##                                                                                       16 
##                                                                            meta-analysis 
##                                                                                       38 
##                                                              randomized controlled trial 
##                                                                                      107 
##                                                 time series / longitudinal observational 
##                                                                                      180 
##                                                                       prospective cohort 
##                                                                                      203 
##                                                                    laboratory experiment 
##                                                                                      252 
##                                          cross-sectional observational, not case-control 
##                                                                                      600 
##                                                                             case-control 
##                                                                                      982

Experiment stats

Columns of the full dataset that describe experiments:

# Experiment ID
exp.cols <- c("Study", "Experiment")

# Subjects
sub.cols <- c("Host species",    
              "Location of subjects", 
              "Body site",
              "Condition", 
              "Antibiotics exclusion",
              "Group 0 sample size",
              "Group 1 sample size")

# Lab analysis              
lab.cols <-  c("Sequencing type",
              "16S variable region",
              "Sequencing platform")

# Statistical analysis
stat.cols <-  c("Statistical test",
              "MHT correction",
              "Significance threshold")

# Alpha diversity
div.cols <- c("Pielou",
              "Shannon",
              "Chao1",
              "Simpson", 
              "Inverse Simpson",
              "Richness")

Restrict dataset to experiment information:

exps <- dat[,c(exp.cols, sub.cols, lab.cols, stat.cols, div.cols)]
exps <- unique(exps)

Subjects

Number of experiments for the top 10 categories for each subjects column:

sub.tab <- lapply(sub.cols[1:5], tabCol, df = exps, n = 10)
names(sub.tab) <- sub.cols[1:5]
sub.tab
## $`Host species`
## 
##           Homo sapiens           Mus musculus      Rattus norvegicus 
##                   8742                   1079                    258 
##  Sus scrofa domesticus Canis lupus familiaris          Not specified 
##                    143                    138                     43 
##             Bos taurus         Macaca mulatta             Ovis aries 
##                     41                     33                     28 
##    Macaca fascicularis 
##                     24 
## 
## $`Location of subjects`
## 
##                    China United States of America                    Japan 
##                     3978                     1629                      371 
##                    Spain              South Korea                  Germany 
##                      285                      251                      246 
##                    Italy                   Canada                  Denmark 
##                      232                      214                      196 
##           United Kingdom 
##                      169 
## 
## $`Body site`
## 
##                     Feces                    Saliva                    Vagina 
##                      6802                       480                       362 
## Subgingival dental plaque                     Colon                    Caecum 
##                       167                       101                        99 
##               Oral cavity               Nasopharynx                    Rectum 
##                        86                        85                        84 
##                     Mouth 
##                        77 
## 
## $Condition
## 
##         Colorectal cancer                      Diet       Parkinson's disease 
##                       401                       308                       236 
##                   Obesity          Response to diet                  COVID-19 
##                       186                       143                       142 
## Polycystic ovary syndrome    Response to transplant          Diet measurement 
##                       132                       127                       126 
## Type II diabetes mellitus 
##                       108 
## 
## $`Antibiotics exclusion`
## 
##                  3 months                   1 month                  2 months 
##                      1475                      1226                       490 
##                  6 months                   2 weeks                    1 week 
##                       447                       354                        91 
##                   6 weeks     Recent antibiotic use Recent use of antibiotics 
##                        58                        56                        55 
##  Currently on antibiotics 
##                        53

Proportions instead:

sub.tab <- lapply(sub.cols[1:5], tabCol, df = exps, n = 10, perc = TRUE)
names(sub.tab) <- sub.cols[1:5]
sub.tab
## $`Host species`
## 
##           Homo sapiens           Mus musculus      Rattus norvegicus 
##                0.80500                0.09940                0.02380 
##  Sus scrofa domesticus Canis lupus familiaris          Not specified 
##                0.01320                0.01270                0.00396 
##             Bos taurus         Macaca mulatta             Ovis aries 
##                0.00378                0.00304                0.00258 
##    Macaca fascicularis 
##                0.00221 
## 
## $`Location of subjects`
## 
##                    China United States of America                    Japan 
##                   0.3670                   0.1500                   0.0342 
##                    Spain              South Korea                  Germany 
##                   0.0263                   0.0231                   0.0227 
##                    Italy                   Canada                  Denmark 
##                   0.0214                   0.0197                   0.0181 
##           United Kingdom 
##                   0.0156 
## 
## $`Body site`
## 
##                     Feces                    Saliva                    Vagina 
##                   0.62900                   0.04440                   0.03350 
## Subgingival dental plaque                     Colon                    Caecum 
##                   0.01540                   0.00934                   0.00916 
##               Oral cavity               Nasopharynx                    Rectum 
##                   0.00795                   0.00786                   0.00777 
##                     Mouth 
##                   0.00712 
## 
## $Condition
## 
##         Colorectal cancer                      Diet       Parkinson's disease 
##                    0.0377                    0.0290                    0.0222 
##                   Obesity          Response to diet                  COVID-19 
##                    0.0175                    0.0134                    0.0133 
## Polycystic ovary syndrome    Response to transplant          Diet measurement 
##                    0.0124                    0.0119                    0.0118 
## Type II diabetes mellitus 
##                    0.0102 
## 
## $`Antibiotics exclusion`
## 
##                  3 months                   1 month                  2 months 
##                    0.3000                    0.2490                    0.0997 
##                  6 months                   2 weeks                    1 week 
##                    0.0910                    0.0720                    0.0185 
##                   6 weeks     Recent antibiotic use Recent use of antibiotics 
##                    0.0118                    0.0114                    0.0112 
##  Currently on antibiotics 
##                    0.0108

Sample size:

ssize <- apply(exps[,sub.cols[6:7]], 2, summary)
ssize
##         Group 0 sample size Group 1 sample size
## Min.                 0.0000              1.0000
## 1st Qu.             12.0000             10.0000
## Median              25.0000             22.0000
## Mean               341.8523             68.1126
## 3rd Qu.             54.0000             43.0000
## Max.            308633.0000          10413.0000
## NA's              2129.0000           2111.0000

Lab analysis

Number of experiments for the top 10 categories for each lab analysis column:

lab.tab <- lapply(lab.cols, tabCol, df = exps, n = 10)
names(lab.tab) <- lab.cols
lab.tab
## $`Sequencing type`
## 
##        16S        WMS        PCR ITS / ITS2    RNA-Seq        18S 
##       8500       1872         93         79         13          5 
## 
## $`16S variable region`
## 
##        34         4        12       123        45 123456789       345         3 
##      3975      2255       419       260       214       202       160        93 
##  23456789        56 
##        90        63 
## 
## $`Sequencing platform`
## 
##                              Illumina                           Ion Torrent 
##                                  8930                                   408 
##                              Roche454                               RT-qPCR 
##                                   374                                   142 
##                              Nanopore PacBio Vega (VS)/Revio (RS)/Sequel II 
##                                   100                                   100 
##                           MGISEQ-2000                 BGISEQ-500 Sequencing 
##                                    61                                    41 
##                             DNBSEQ-T7           Human Intestinal Tract Chip 
##                                    31                                    31

Proportions instead:

lab.tab <- lapply(lab.cols, tabCol, df = exps, n = 10, perc = TRUE)
names(lab.tab) <- lab.cols
lab.tab
## $`Sequencing type`
## 
##        16S        WMS        PCR ITS / ITS2    RNA-Seq        18S 
##   0.805000   0.177000   0.008810   0.007480   0.001230   0.000473 
## 
## $`16S variable region`
## 
##        34         4        12       123        45 123456789       345         3 
##   0.50000   0.28400   0.05270   0.03270   0.02690   0.02540   0.02010   0.01170 
##  23456789        56 
##   0.01130   0.00793 
## 
## $`Sequencing platform`
## 
##                              Illumina                           Ion Torrent 
##                               0.86200                               0.03940 
##                              Roche454                               RT-qPCR 
##                               0.03610                               0.01370 
##                              Nanopore PacBio Vega (VS)/Revio (RS)/Sequel II 
##                               0.00965                               0.00965 
##                           MGISEQ-2000                 BGISEQ-500 Sequencing 
##                               0.00589                               0.00396 
##                             DNBSEQ-T7           Human Intestinal Tract Chip 
##                               0.00299                               0.00299

Statistical analysis

Number of experiments for the top 10 categories for each statistical analysis column:

# Define the columns to analyze
stat.cols <- c("Statistical test", "MHT correction", "Significance threshold")
# Get top 10 counts
stat.tab.count <- lapply(stat.cols, tabCol, df = exps, n = 10)
names(stat.tab.count) <- stat.cols
# Get top 10 proportions
stat.tab.prop <- lapply(stat.cols, tabCol, df = exps, n = 10, perc = TRUE)
names(stat.tab.prop) <- stat.cols

Top 10 Counts

count_df <- data.frame(
  Name = names(stat.tab.count[["Statistical test"]]), 
  Count = as.vector(stat.tab.count[["Statistical test"]])
)
DT::datatable(
  count_df,
  rownames = FALSE,
  options = list(pageLength = 10),
  caption = "Top categories for: Statistical test"
)
count_df <- data.frame(
  Name = names(stat.tab.count[["MHT correction"]]), 
  Count = as.vector(stat.tab.count[["MHT correction"]])
)
DT::datatable(
  count_df,
  rownames = FALSE,
  options = list(pageLength = 10),
  caption = "Top categories for: MHT correction"
)
count_df <- data.frame(
  Value = names(stat.tab.count[["Significance threshold"]]), 
  Count = as.vector(stat.tab.count[["Significance threshold"]])
)
DT::datatable(
  count_df,
  rownames = FALSE,
  options = list(pageLength = 10),
  caption = "Top categories for: Significance threshold"
)

Top 10 Proportions

prop_df <- data.frame(
  Name = names(stat.tab.prop[["Statistical test"]]), 
  Proportion = as.vector(stat.tab.prop[["Statistical test"]])
)
DT::datatable(
  prop_df,
  rownames = FALSE,
  options = list(pageLength = 10),
  caption = "Top proportions for: Statistical test"
)
prop_df <- data.frame(
  Name = names(stat.tab.prop[["MHT correction"]]), 
  Proportion = as.vector(stat.tab.prop[["MHT correction"]])
)
DT::datatable(
  prop_df,
  rownames = FALSE,
  options = list(pageLength = 10),
  caption = "Top proportions for: MHT correction"
)
prop_df <- data.frame(
  Value = names(stat.tab.prop[["Significance threshold"]]), 
  Proportion = as.vector(stat.tab.prop[["Significance threshold"]])
)
DT::datatable(
  prop_df,
  rownames = FALSE,
  options = list(pageLength = 10),
  caption = "Top proportions for: Significance threshold"
)

Alpha diversity

Overall distribution:

apply(exps[,div.cols], 2, table)
##           Pielou Shannon Chao1 Simpson Inverse Simpson Richness
## decreased    105    1176   684     383             100      728
## increased     92     892   518     256              81      553
## unchanged    451    3403  1752    1376             363     1737

Correspondence of Shannon diversity and Richness:

table(exps$Shannon, exps$Richness)
##            
##             decreased increased unchanged
##   decreased       395        21        92
##   increased        15       274        85
##   unchanged       173       137      1412

Conditions with consistently increased or decreased alpha diversity:

tabDiv(exps, "Shannon", "Condition")
##                                                           increased decreased
## Pulmonary tuberculosis                                            3        31
## Diet                                                             19        44
## Gastric cancer                                                    6        23
## Type I diabetes mellitus                                          0        17
## Polycystic ovary syndrome                                         6        22
## Periodontitis                                                    17         3
## Ulcerative colitis                                                1        14
## Colorectal cancer                                                26        38
## Human papilloma virus infection                                  13         1
## Non-alcoholic fatty liver disease                                 6        18
## Cervical cancer                                                  12         1
## COVID-19                                                         16        26
## Crohn's disease                                                   0        10
## HIV infection                                                     4        14
## Lung cancer                                                       2        12
## Multiple sclerosis                                                2        12
## Systemic inflammatory response syndrome                           5        15
## Alzheimer's disease                                               2        11
## Chronic constipation                                              9         0
## Clostridium difficile infection                                  10         1
## Gingivitis                                                        1         9
## Pancreatic carcinoma                                              9         1
## Pregnancy                                                        10         2
## Smoking behaviour measurement                                     8         0
## Atopic eczema                                                     5        12
## Cesarean section                                                  8         1
## Dry eye syndrome                                                  1         8
## Endometrial cancer                                                9         2
## Heart failure                                                     0         7
## Inflammatory bowel disease                                        0         7
## Liver fibrosis measurement                                        0         7
## Mycobacterium tuberculosis                                        7         0
## Obesity                                                          10        17
## Acute pancreatitis                                                0         6
## Autism spectrum disorder                                          7         1
## Brain hypoxia-Ischemia                                            0         6
## Cervical intraepithelial neoplasia                                6         0
## Graves disease                                                    1         7
## Mastitis                                                          0         6
## Parkinson's disease                                              20        14
## Response to allogeneic hematopoietic stem cell transplant         0         6
## Type II diabetes mellitus                                        12         6
## Bacterial vaginosis                                               6         1
## Bronchiectasis                                                    0         5
## Cutaneous melanoma                                                0         5
## Cystic fibrosis                                                   0         5
## Epilepsy                                                          5         0
## Helminthiasis                                                     5         0
## Intrahepatic cholestasis of pregnancy                             5         0
## Non-alcoholic steatohepatitis                                     1         6
## Oxygen                                                            5         0
## Premature birth                                                   9         4
## Acute lymphoblastic leukemia                                      0         4
## Body mass index                                                   0         4
## Chronic kidney disease                                            2         6
## Chronic periodontitis                                             4         0
## Colitis                                                           4         0
## Constipation                                                      7         3
## Depressive disorder                                               0         4
## Ethnic group                                                      5         9
## Female infertility                                                4         0
## Food allergy                                                      6         2
## Gestational diabetes                                              7         3
## Human immunodeficiency virus                                      0         4
## Insecticide                                                       0         4
## Prostate cancer                                                   1         5
## Rheumatoid arthritis                                              9         5
## Sjogren syndrome                                                  0         4
## Urinary tract infection                                           2         6
## Alcohol drinking                                                  3         0
## Antimicrobial agent                                               7        10
## Atopic asthma                                                     4         1
## Breastfeeding duration                                            3         6
## Breed                                                             0         3
## Cervical Intraepithelial Neoplasia Grade 2/3                      3         0
## Disease recurrence                                                0         3
## Extraction protocol                                              23        26
## Hematopoietic stem cell                                           0         3
## Hypertension                                                      7         4
## Hypothyroidism                                                    0         3
## Lifestyle measurement                                             5         2
## Male homosexuality                                                3         0
## Maternal milk                                                     3         6
## Mood disorder                                                     0         3
## Postmenopausal osteoporosis                                       0         3
## Response to antiviral drug                                        2         5
## Response to immune checkpoint inhibitor                           3         0
## SARS-CoV-2-related disease                                        0         3
## Schizophrenia                                                     1         4
## Spontaneous preterm birth                                        13        10
## Traditional Chinese medicine type                                 2         5
## Acne                                                              0         2
## Adenomatous colon polyp                                           2         0
## Age                                                              15        13
## Age at assessment                                                 3         1
## Aging                                                             5         7
## Alcohol use disorder measurement                                  0         2
## Breast cancer                                                     4         6
## Cancer                                                            0         2
## Cervical glandular intraepithelial neoplasia                      2         0
## Cognitive impairment                                              1         3
## Dental caries                                                     2         0
## Diffuse large B-cell lymphoma                                     0         2
## Down syndrome                                                     0         2
## Eczema                                                            0         2
## Endometriosis                                                     3         5
## Environmental exposure measurement                                3         5
## Environmental factor                                              7         5
## Esophageal adenocarcinoma                                         0         2
## Esophageal cancer                                                 1         3
## Hepatic steatosis                                                 0         2
## Iron biomarker measurement                                        1         3
## Irritable bowel syndrome                                          5         7
## Metastatic colorectal cancer                                      1         3
## Milk allergic reaction                                            2         0
## Pancreatic ductal adenocarcinoma                                  0         2
## Papillary thyroid carcinoma                                       2         0
## Phenotype                                                         2         0
## Phenylketonuria                                                   1         3
## Population                                                        5         7
## Reproductive behaviour measurement                                2         0
## Response to anti-tuberculosis drug                                8        10
## Response to antibiotic                                            5         7
## Response to antidepressant                                        2         0
## Response to diet                                                 10         8
## Response to immunochemotherapy                                    3         1
## Response to opioid                                                3         1
## Response to stress                                                2         0
## Sampling site                                                     3         1
## Simian immunodeficiency virus infection                           0         2
## Sleep duration                                                    3         1
## Small for gestational age                                         0         2
## Smoking status measurement                                        2         0
## Species design                                                    9        11
## Squamous cell carcinoma                                           2         0
## Streptococcus pneumoniae                                          0         2
## Stroke                                                            2         0
## Systemic lupus erythematosus                                      2         4
## Treatment                                                         5         3
## Tuberculosis                                                      3         5
## Acute respiratory failure                                         6         5
## Adenomyosis                                                       1         0
## Age-related macular degeneration                                  0         1
## Air pollution                                                     7         6
## Anxiety disorder                                                  0         1
## Attention deficit-hyperactivity disorder                          2         1
## Biological sex                                                    2         1
## Birth measurement                                                 3         2
## Chronic fatigue syndrome                                          0         1
## Chronic hepatitis B virus infection                               0         1
## Chronic obstructive pulmonary disease                             3         2
## Clinical treatment                                                1         2
## Coccidiosis                                                       0         1
## Colorectal adenoma                                                2         3
## Delivery measurement                                              3         4
## Diabetes mellitus                                                 0         1
## Diarrhea                                                          3         4
## Diet measurement                                                  1         0
## Esophageal squamous cell carcinoma                                1         0
## Estradiol measurement                                             1         2
## Fasting                                                           0         1
## Fungal infectious disease                                         2         1
## Gestational age                                                   1         2
## Glaucoma                                                          4         5
## Hepatocellular carcinoma                                          4         5
## Hypertrophy                                                       1         0
## Infant                                                            1         0
## Liver enzyme measurement                                          0         1
## Major depressive disorder                                         0         1
## Menopause                                                         2         3
## Multiple myeloma                                                  2         3
## Myocardial infarction                                             1         2
## Obese body mass index status                                      1         2
## Obstructive sleep apnea                                           0         1
## Oral cavity carcinoma                                             0         1
## Oral squamous cell carcinoma                                      3         2
## Osteoporosis                                                      1         0
## Peri-Implantitis                                                  2         1
## Pneumonia                                                         1         2
## Postpartum depression                                             1         2
## Prediabetes syndrome                                              0         1
## Preeclampsia                                                      1         0
## Psoriasis                                                         1         0
## Respiratory Syncytial Virus Infection                             0         1
## Respiratory tract infectious disease                              0         1
## Response to exercise                                              1         0
## Response to transplant                                           10         9
## Response to vaccine                                               1         2
## Rosacea                                                           0         1
## Sample treatment protocol                                         1         0
## Sampling time                                                     4         3
## Sleep Disorder                                                    1         0
## Social interaction measurement                                    2         1
## Socioeconomic status                                              3         4
## Stimulus or stress design                                         0         1
## Timepoint                                                         1         0
## Uterine fibroid                                                   1         0
## Vesicle membrane                                                  3         2
## Vitiligo                                                          0         1
## Abnormal stool composition                                        0         0
## Acute myeloid leukemia                                            1         1
## Anal Squamous Cell Carcinoma                                      2         2
## Arthritis                                                         0         0
## Asthma                                                            3         3
## Bipolar disorder                                                  0         0
## Celiac disease                                                    0         0
## Chlamydia trachomatis                                             2         2
## Colon carcinoma                                                   1         1
## Contraception                                                     0         0
## COVID-19 symptoms measurement                                     0         0
## Disease progression measurement                                   0         0
## Exposure                                                          1         1
## Gastric adenocarcinoma                                            0         0
## Glioma                                                            0         0
## Head and neck squamous cell carcinoma                             0         0
## Health study participation                                        3         3
## Hepatic fibrosis                                                  0         0
## High fat diet                                                     1         1
## HIV mother to child transmission                                  0         0
## Hydroxyproline measurement                                        1         1
## Hypoxia                                                           4         4
## Ischemic stroke                                                   0         0
## Lactose intolerance                                               0         0
## Lung transplantation                                              2         2
## Metabolic process                                                 0         0
## Mitochondrial complex I deficiency                                0         0
## Neurodevelopmental delay                                          0         0
## Obsessive-compulsive disorder                                     0         0
## Oral lichen planus                                                3         3
## Oral mucositis                                                    2         2
## Ovarian cancer                                                    4         4
## Overweight body mass index status                                 1         1
## Oxalate measurement                                               1         1
## Pathological complete response                                    0         0
## Psoriasis vulgaris                                                0         0
## Response to dietary antigen                                       0         0
## Response to ketogenic diet                                        2         2
## Sample collection protocol                                        0         0
## SARS coronavirus                                                  0         0
## Smoking behavior                                                 10        10
## Social deprivation,Psychological measurement                      0         0
## Transplant outcome measurement                                    0         0
## Viral load                                                        0         0
## Waist circumference                                               0         0
##                                                           unchanged
## Pulmonary tuberculosis                                           23
## Diet                                                             74
## Gastric cancer                                                   29
## Type I diabetes mellitus                                         11
## Polycystic ovary syndrome                                        43
## Periodontitis                                                    16
## Ulcerative colitis                                                6
## Colorectal cancer                                               122
## Human papilloma virus infection                                  38
## Non-alcoholic fatty liver disease                                23
## Cervical cancer                                                  16
## COVID-19                                                         50
## Crohn's disease                                                   8
## HIV infection                                                    36
## Lung cancer                                                      10
## Multiple sclerosis                                               32
## Systemic inflammatory response syndrome                           4
## Alzheimer's disease                                              30
## Chronic constipation                                             12
## Clostridium difficile infection                                   1
## Gingivitis                                                       13
## Pancreatic carcinoma                                              6
## Pregnancy                                                        24
## Smoking behaviour measurement                                     9
## Atopic eczema                                                    72
## Cesarean section                                                 21
## Dry eye syndrome                                                 14
## Endometrial cancer                                                7
## Heart failure                                                     2
## Inflammatory bowel disease                                        1
## Liver fibrosis measurement                                        7
## Mycobacterium tuberculosis                                        5
## Obesity                                                          75
## Acute pancreatitis                                               15
## Autism spectrum disorder                                         12
## Brain hypoxia-Ischemia                                            3
## Cervical intraepithelial neoplasia                                2
## Graves disease                                                    7
## Mastitis                                                          2
## Parkinson's disease                                              95
## Response to allogeneic hematopoietic stem cell transplant         0
## Type II diabetes mellitus                                        44
## Bacterial vaginosis                                               0
## Bronchiectasis                                                    0
## Cutaneous melanoma                                                0
## Cystic fibrosis                                                   3
## Epilepsy                                                          5
## Helminthiasis                                                     8
## Intrahepatic cholestasis of pregnancy                             3
## Non-alcoholic steatohepatitis                                     4
## Oxygen                                                            0
## Premature birth                                                  11
## Acute lymphoblastic leukemia                                     10
## Body mass index                                                   4
## Chronic kidney disease                                           11
## Chronic periodontitis                                             8
## Colitis                                                           2
## Constipation                                                     10
## Depressive disorder                                               7
## Ethnic group                                                     11
## Female infertility                                                3
## Food allergy                                                     19
## Gestational diabetes                                             43
## Human immunodeficiency virus                                      6
## Insecticide                                                       4
## Prostate cancer                                                  12
## Rheumatoid arthritis                                             21
## Sjogren syndrome                                                  1
## Urinary tract infection                                          11
## Alcohol drinking                                                  2
## Antimicrobial agent                                              25
## Atopic asthma                                                     7
## Breastfeeding duration                                           10
## Breed                                                             7
## Cervical Intraepithelial Neoplasia Grade 2/3                      2
## Disease recurrence                                                7
## Extraction protocol                                              21
## Hematopoietic stem cell                                           3
## Hypertension                                                     13
## Hypothyroidism                                                    4
## Lifestyle measurement                                            26
## Male homosexuality                                                6
## Maternal milk                                                     8
## Mood disorder                                                     2
## Postmenopausal osteoporosis                                       2
## Response to antiviral drug                                       17
## Response to immune checkpoint inhibitor                           2
## SARS-CoV-2-related disease                                        5
## Schizophrenia                                                    24
## Spontaneous preterm birth                                        11
## Traditional Chinese medicine type                                 8
## Acne                                                              3
## Adenomatous colon polyp                                           8
## Age                                                              15
## Age at assessment                                                 1
## Aging                                                             4
## Alcohol use disorder measurement                                  5
## Breast cancer                                                    35
## Cancer                                                            4
## Cervical glandular intraepithelial neoplasia                      9
## Cognitive impairment                                             14
## Dental caries                                                     4
## Diffuse large B-cell lymphoma                                     9
## Down syndrome                                                    11
## Eczema                                                           10
## Endometriosis                                                    37
## Environmental exposure measurement                                4
## Environmental factor                                             22
## Esophageal adenocarcinoma                                         4
## Esophageal cancer                                                 2
## Hepatic steatosis                                                 5
## Iron biomarker measurement                                        2
## Irritable bowel syndrome                                         29
## Metastatic colorectal cancer                                      4
## Milk allergic reaction                                            5
## Pancreatic ductal adenocarcinoma                                  4
## Papillary thyroid carcinoma                                      10
## Phenotype                                                        19
## Phenylketonuria                                                   4
## Population                                                       25
## Reproductive behaviour measurement                                3
## Response to anti-tuberculosis drug                               13
## Response to antibiotic                                           24
## Response to antidepressant                                        5
## Response to diet                                                 55
## Response to immunochemotherapy                                    3
## Response to opioid                                                2
## Response to stress                                               12
## Sampling site                                                     7
## Simian immunodeficiency virus infection                           9
## Sleep duration                                                    2
## Small for gestational age                                         6
## Smoking status measurement                                        4
## Species design                                                   13
## Squamous cell carcinoma                                           4
## Streptococcus pneumoniae                                          4
## Stroke                                                           16
## Systemic lupus erythematosus                                      9
## Treatment                                                        10
## Tuberculosis                                                      0
## Acute respiratory failure                                         0
## Adenomyosis                                                       9
## Age-related macular degeneration                                  4
## Air pollution                                                     3
## Anxiety disorder                                                  7
## Attention deficit-hyperactivity disorder                          6
## Biological sex                                                   16
## Birth measurement                                                 4
## Chronic fatigue syndrome                                          4
## Chronic hepatitis B virus infection                               7
## Chronic obstructive pulmonary disease                             5
## Clinical treatment                                               19
## Coccidiosis                                                       4
## Colorectal adenoma                                               23
## Delivery measurement                                             13
## Diabetes mellitus                                                 9
## Diarrhea                                                         15
## Diet measurement                                                 60
## Esophageal squamous cell carcinoma                                5
## Estradiol measurement                                             2
## Fasting                                                           4
## Fungal infectious disease                                         4
## Gestational age                                                   3
## Glaucoma                                                          6
## Hepatocellular carcinoma                                         10
## Hypertrophy                                                       4
## Infant                                                            4
## Liver enzyme measurement                                          5
## Major depressive disorder                                         9
## Menopause                                                         5
## Multiple myeloma                                                  0
## Myocardial infarction                                             8
## Obese body mass index status                                      2
## Obstructive sleep apnea                                          11
## Oral cavity carcinoma                                             7
## Oral squamous cell carcinoma                                      3
## Osteoporosis                                                      7
## Peri-Implantitis                                                  3
## Pneumonia                                                         3
## Postpartum depression                                            14
## Prediabetes syndrome                                              6
## Preeclampsia                                                      9
## Psoriasis                                                        14
## Respiratory Syncytial Virus Infection                             5
## Respiratory tract infectious disease                              5
## Response to exercise                                              4
## Response to transplant                                           35
## Response to vaccine                                               5
## Rosacea                                                           5
## Sample treatment protocol                                         4
## Sampling time                                                     7
## Sleep Disorder                                                    4
## Social interaction measurement                                    6
## Socioeconomic status                                              8
## Stimulus or stress design                                         4
## Timepoint                                                         5
## Uterine fibroid                                                   8
## Vesicle membrane                                                  1
## Vitiligo                                                          4
## Abnormal stool composition                                        6
## Acute myeloid leukemia                                            7
## Anal Squamous Cell Carcinoma                                      2
## Arthritis                                                         6
## Asthma                                                           18
## Bipolar disorder                                                  5
## Celiac disease                                                   15
## Chlamydia trachomatis                                             2
## Colon carcinoma                                                  10
## Contraception                                                     5
## COVID-19 symptoms measurement                                     5
## Disease progression measurement                                   5
## Exposure                                                          5
## Gastric adenocarcinoma                                            8
## Glioma                                                            5
## Head and neck squamous cell carcinoma                             8
## Health study participation                                       18
## Hepatic fibrosis                                                  5
## High fat diet                                                    18
## HIV mother to child transmission                                  8
## Hydroxyproline measurement                                        3
## Hypoxia                                                           0
## Ischemic stroke                                                   5
## Lactose intolerance                                               5
## Lung transplantation                                              2
## Metabolic process                                                 7
## Mitochondrial complex I deficiency                                7
## Neurodevelopmental delay                                          6
## Obsessive-compulsive disorder                                     5
## Oral lichen planus                                                4
## Oral mucositis                                                    3
## Ovarian cancer                                                   35
## Overweight body mass index status                                 5
## Oxalate measurement                                               8
## Pathological complete response                                    7
## Psoriasis vulgaris                                               14
## Response to dietary antigen                                       6
## Response to ketogenic diet                                        3
## Sample collection protocol                                       11
## SARS coronavirus                                                  6
## Smoking behavior                                                 27
## Social deprivation,Psychological measurement                     12
## Transplant outcome measurement                                   11
## Viral load                                                        6
## Waist circumference                                               5
tabDiv(exps, "Shannon", "Condition", perc = TRUE)
##                                                           increased decreased
## Pulmonary tuberculosis                                        0.053     0.540
## Diet                                                          0.140     0.320
## Gastric cancer                                                0.100     0.400
## Type I diabetes mellitus                                      0.000     0.610
## Polycystic ovary syndrome                                     0.085     0.310
## Periodontitis                                                 0.470     0.083
## Ulcerative colitis                                            0.048     0.670
## Colorectal cancer                                             0.140     0.200
## Human papilloma virus infection                               0.250     0.019
## Non-alcoholic fatty liver disease                             0.130     0.380
## Cervical cancer                                               0.410     0.034
## COVID-19                                                      0.170     0.280
## Crohn's disease                                               0.000     0.560
## HIV infection                                                 0.074     0.260
## Lung cancer                                                   0.083     0.500
## Multiple sclerosis                                            0.043     0.260
## Systemic inflammatory response syndrome                       0.210     0.620
## Alzheimer's disease                                           0.047     0.260
## Chronic constipation                                          0.430     0.000
## Clostridium difficile infection                               0.830     0.083
## Gingivitis                                                    0.043     0.390
## Pancreatic carcinoma                                          0.560     0.062
## Pregnancy                                                     0.280     0.056
## Smoking behaviour measurement                                 0.470     0.000
## Atopic eczema                                                 0.056     0.130
## Cesarean section                                              0.270     0.033
## Dry eye syndrome                                              0.043     0.350
## Endometrial cancer                                            0.500     0.110
## Heart failure                                                 0.000     0.780
## Inflammatory bowel disease                                    0.000     0.880
## Liver fibrosis measurement                                    0.000     0.500
## Mycobacterium tuberculosis                                    0.580     0.000
## Obesity                                                       0.098     0.170
## Acute pancreatitis                                            0.000     0.290
## Autism spectrum disorder                                      0.350     0.050
## Brain hypoxia-Ischemia                                        0.000     0.670
## Cervical intraepithelial neoplasia                            0.750     0.000
## Graves disease                                                0.067     0.470
## Mastitis                                                      0.000     0.750
## Parkinson's disease                                           0.160     0.110
## Response to allogeneic hematopoietic stem cell transplant     0.000     1.000
## Type II diabetes mellitus                                     0.190     0.097
## Bacterial vaginosis                                           0.860     0.140
## Bronchiectasis                                                0.000     1.000
## Cutaneous melanoma                                            0.000     1.000
## Cystic fibrosis                                               0.000     0.620
## Epilepsy                                                      0.500     0.000
## Helminthiasis                                                 0.380     0.000
## Intrahepatic cholestasis of pregnancy                         0.620     0.000
## Non-alcoholic steatohepatitis                                 0.091     0.550
## Oxygen                                                        1.000     0.000
## Premature birth                                               0.380     0.170
## Acute lymphoblastic leukemia                                  0.000     0.290
## Body mass index                                               0.000     0.500
## Chronic kidney disease                                        0.110     0.320
## Chronic periodontitis                                         0.330     0.000
## Colitis                                                       0.670     0.000
## Constipation                                                  0.350     0.150
## Depressive disorder                                           0.000     0.360
## Ethnic group                                                  0.200     0.360
## Female infertility                                            0.570     0.000
## Food allergy                                                  0.220     0.074
## Gestational diabetes                                          0.130     0.057
## Human immunodeficiency virus                                  0.000     0.400
## Insecticide                                                   0.000     0.500
## Prostate cancer                                               0.056     0.280
## Rheumatoid arthritis                                          0.260     0.140
## Sjogren syndrome                                              0.000     0.800
## Urinary tract infection                                       0.110     0.320
## Alcohol drinking                                              0.600     0.000
## Antimicrobial agent                                           0.170     0.240
## Atopic asthma                                                 0.330     0.083
## Breastfeeding duration                                        0.160     0.320
## Breed                                                         0.000     0.300
## Cervical Intraepithelial Neoplasia Grade 2/3                  0.600     0.000
## Disease recurrence                                            0.000     0.300
## Extraction protocol                                           0.330     0.370
## Hematopoietic stem cell                                       0.000     0.500
## Hypertension                                                  0.290     0.170
## Hypothyroidism                                                0.000     0.430
## Lifestyle measurement                                         0.150     0.061
## Male homosexuality                                            0.330     0.000
## Maternal milk                                                 0.180     0.350
## Mood disorder                                                 0.000     0.600
## Postmenopausal osteoporosis                                   0.000     0.600
## Response to antiviral drug                                    0.083     0.210
## Response to immune checkpoint inhibitor                       0.600     0.000
## SARS-CoV-2-related disease                                    0.000     0.380
## Schizophrenia                                                 0.034     0.140
## Spontaneous preterm birth                                     0.380     0.290
## Traditional Chinese medicine type                             0.130     0.330
## Acne                                                          0.000     0.400
## Adenomatous colon polyp                                       0.200     0.000
## Age                                                           0.350     0.300
## Age at assessment                                             0.600     0.200
## Aging                                                         0.310     0.440
## Alcohol use disorder measurement                              0.000     0.290
## Breast cancer                                                 0.089     0.130
## Cancer                                                        0.000     0.330
## Cervical glandular intraepithelial neoplasia                  0.180     0.000
## Cognitive impairment                                          0.056     0.170
## Dental caries                                                 0.330     0.000
## Diffuse large B-cell lymphoma                                 0.000     0.180
## Down syndrome                                                 0.000     0.150
## Eczema                                                        0.000     0.170
## Endometriosis                                                 0.067     0.110
## Environmental exposure measurement                            0.250     0.420
## Environmental factor                                          0.210     0.150
## Esophageal adenocarcinoma                                     0.000     0.330
## Esophageal cancer                                             0.170     0.500
## Hepatic steatosis                                             0.000     0.290
## Iron biomarker measurement                                    0.170     0.500
## Irritable bowel syndrome                                      0.120     0.170
## Metastatic colorectal cancer                                  0.120     0.380
## Milk allergic reaction                                        0.290     0.000
## Pancreatic ductal adenocarcinoma                              0.000     0.330
## Papillary thyroid carcinoma                                   0.170     0.000
## Phenotype                                                     0.095     0.000
## Phenylketonuria                                               0.120     0.380
## Population                                                    0.140     0.190
## Reproductive behaviour measurement                            0.400     0.000
## Response to anti-tuberculosis drug                            0.260     0.320
## Response to antibiotic                                        0.140     0.190
## Response to antidepressant                                    0.290     0.000
## Response to diet                                              0.140     0.110
## Response to immunochemotherapy                                0.430     0.140
## Response to opioid                                            0.500     0.170
## Response to stress                                            0.140     0.000
## Sampling site                                                 0.270     0.091
## Simian immunodeficiency virus infection                       0.000     0.180
## Sleep duration                                                0.500     0.170
## Small for gestational age                                     0.000     0.250
## Smoking status measurement                                    0.330     0.000
## Species design                                                0.270     0.330
## Squamous cell carcinoma                                       0.330     0.000
## Streptococcus pneumoniae                                      0.000     0.330
## Stroke                                                        0.110     0.000
## Systemic lupus erythematosus                                  0.130     0.270
## Treatment                                                     0.280     0.170
## Tuberculosis                                                  0.380     0.620
## Acute respiratory failure                                     0.550     0.450
## Adenomyosis                                                   0.100     0.000
## Age-related macular degeneration                              0.000     0.200
## Air pollution                                                 0.440     0.380
## Anxiety disorder                                              0.000     0.120
## Attention deficit-hyperactivity disorder                      0.220     0.110
## Biological sex                                                0.110     0.053
## Birth measurement                                             0.330     0.220
## Chronic fatigue syndrome                                      0.000     0.200
## Chronic hepatitis B virus infection                           0.000     0.120
## Chronic obstructive pulmonary disease                         0.300     0.200
## Clinical treatment                                            0.045     0.091
## Coccidiosis                                                   0.000     0.200
## Colorectal adenoma                                            0.071     0.110
## Delivery measurement                                          0.150     0.200
## Diabetes mellitus                                             0.000     0.100
## Diarrhea                                                      0.140     0.180
## Diet measurement                                              0.016     0.000
## Esophageal squamous cell carcinoma                            0.170     0.000
## Estradiol measurement                                         0.200     0.400
## Fasting                                                       0.000     0.200
## Fungal infectious disease                                     0.290     0.140
## Gestational age                                               0.170     0.330
## Glaucoma                                                      0.270     0.330
## Hepatocellular carcinoma                                      0.210     0.260
## Hypertrophy                                                   0.200     0.000
## Infant                                                        0.200     0.000
## Liver enzyme measurement                                      0.000     0.170
## Major depressive disorder                                     0.000     0.100
## Menopause                                                     0.200     0.300
## Multiple myeloma                                              0.400     0.600
## Myocardial infarction                                         0.091     0.180
## Obese body mass index status                                  0.200     0.400
## Obstructive sleep apnea                                       0.000     0.083
## Oral cavity carcinoma                                         0.000     0.120
## Oral squamous cell carcinoma                                  0.380     0.250
## Osteoporosis                                                  0.120     0.000
## Peri-Implantitis                                              0.330     0.170
## Pneumonia                                                     0.170     0.330
## Postpartum depression                                         0.059     0.120
## Prediabetes syndrome                                          0.000     0.140
## Preeclampsia                                                  0.100     0.000
## Psoriasis                                                     0.067     0.000
## Respiratory Syncytial Virus Infection                         0.000     0.170
## Respiratory tract infectious disease                          0.000     0.170
## Response to exercise                                          0.200     0.000
## Response to transplant                                        0.190     0.170
## Response to vaccine                                           0.120     0.250
## Rosacea                                                       0.000     0.170
## Sample treatment protocol                                     0.200     0.000
## Sampling time                                                 0.290     0.210
## Sleep Disorder                                                0.200     0.000
## Social interaction measurement                                0.220     0.110
## Socioeconomic status                                          0.200     0.270
## Stimulus or stress design                                     0.000     0.200
## Timepoint                                                     0.170     0.000
## Uterine fibroid                                               0.110     0.000
## Vesicle membrane                                              0.500     0.330
## Vitiligo                                                      0.000     0.200
## Abnormal stool composition                                    0.000     0.000
## Acute myeloid leukemia                                        0.110     0.110
## Anal Squamous Cell Carcinoma                                  0.330     0.330
## Arthritis                                                     0.000     0.000
## Asthma                                                        0.120     0.120
## Bipolar disorder                                              0.000     0.000
## Celiac disease                                                0.000     0.000
## Chlamydia trachomatis                                         0.330     0.330
## Colon carcinoma                                               0.083     0.083
## Contraception                                                 0.000     0.000
## COVID-19 symptoms measurement                                 0.000     0.000
## Disease progression measurement                               0.000     0.000
## Exposure                                                      0.140     0.140
## Gastric adenocarcinoma                                        0.000     0.000
## Glioma                                                        0.000     0.000
## Head and neck squamous cell carcinoma                         0.000     0.000
## Health study participation                                    0.120     0.120
## Hepatic fibrosis                                              0.000     0.000
## High fat diet                                                 0.050     0.050
## HIV mother to child transmission                              0.000     0.000
## Hydroxyproline measurement                                    0.200     0.200
## Hypoxia                                                       0.500     0.500
## Ischemic stroke                                               0.000     0.000
## Lactose intolerance                                           0.000     0.000
## Lung transplantation                                          0.330     0.330
## Metabolic process                                             0.000     0.000
## Mitochondrial complex I deficiency                            0.000     0.000
## Neurodevelopmental delay                                      0.000     0.000
## Obsessive-compulsive disorder                                 0.000     0.000
## Oral lichen planus                                            0.300     0.300
## Oral mucositis                                                0.290     0.290
## Ovarian cancer                                                0.093     0.093
## Overweight body mass index status                             0.140     0.140
## Oxalate measurement                                           0.100     0.100
## Pathological complete response                                0.000     0.000
## Psoriasis vulgaris                                            0.000     0.000
## Response to dietary antigen                                   0.000     0.000
## Response to ketogenic diet                                    0.290     0.290
## Sample collection protocol                                    0.000     0.000
## SARS coronavirus                                              0.000     0.000
## Smoking behavior                                              0.210     0.210
## Social deprivation,Psychological measurement                  0.000     0.000
## Transplant outcome measurement                                0.000     0.000
## Viral load                                                    0.000     0.000
## Waist circumference                                           0.000     0.000
##                                                           unchanged
## Pulmonary tuberculosis                                        0.400
## Diet                                                          0.540
## Gastric cancer                                                0.500
## Type I diabetes mellitus                                      0.390
## Polycystic ovary syndrome                                     0.610
## Periodontitis                                                 0.440
## Ulcerative colitis                                            0.290
## Colorectal cancer                                             0.660
## Human papilloma virus infection                               0.730
## Non-alcoholic fatty liver disease                             0.490
## Cervical cancer                                               0.550
## COVID-19                                                      0.540
## Crohn's disease                                               0.440
## HIV infection                                                 0.670
## Lung cancer                                                   0.420
## Multiple sclerosis                                            0.700
## Systemic inflammatory response syndrome                       0.170
## Alzheimer's disease                                           0.700
## Chronic constipation                                          0.570
## Clostridium difficile infection                               0.083
## Gingivitis                                                    0.570
## Pancreatic carcinoma                                          0.380
## Pregnancy                                                     0.670
## Smoking behaviour measurement                                 0.530
## Atopic eczema                                                 0.810
## Cesarean section                                              0.700
## Dry eye syndrome                                              0.610
## Endometrial cancer                                            0.390
## Heart failure                                                 0.220
## Inflammatory bowel disease                                    0.120
## Liver fibrosis measurement                                    0.500
## Mycobacterium tuberculosis                                    0.420
## Obesity                                                       0.740
## Acute pancreatitis                                            0.710
## Autism spectrum disorder                                      0.600
## Brain hypoxia-Ischemia                                        0.330
## Cervical intraepithelial neoplasia                            0.250
## Graves disease                                                0.470
## Mastitis                                                      0.250
## Parkinson's disease                                           0.740
## Response to allogeneic hematopoietic stem cell transplant     0.000
## Type II diabetes mellitus                                     0.710
## Bacterial vaginosis                                           0.000
## Bronchiectasis                                                0.000
## Cutaneous melanoma                                            0.000
## Cystic fibrosis                                               0.380
## Epilepsy                                                      0.500
## Helminthiasis                                                 0.620
## Intrahepatic cholestasis of pregnancy                         0.380
## Non-alcoholic steatohepatitis                                 0.360
## Oxygen                                                        0.000
## Premature birth                                               0.460
## Acute lymphoblastic leukemia                                  0.710
## Body mass index                                               0.500
## Chronic kidney disease                                        0.580
## Chronic periodontitis                                         0.670
## Colitis                                                       0.330
## Constipation                                                  0.500
## Depressive disorder                                           0.640
## Ethnic group                                                  0.440
## Female infertility                                            0.430
## Food allergy                                                  0.700
## Gestational diabetes                                          0.810
## Human immunodeficiency virus                                  0.600
## Insecticide                                                   0.500
## Prostate cancer                                               0.670
## Rheumatoid arthritis                                          0.600
## Sjogren syndrome                                              0.200
## Urinary tract infection                                       0.580
## Alcohol drinking                                              0.400
## Antimicrobial agent                                           0.600
## Atopic asthma                                                 0.580
## Breastfeeding duration                                        0.530
## Breed                                                         0.700
## Cervical Intraepithelial Neoplasia Grade 2/3                  0.400
## Disease recurrence                                            0.700
## Extraction protocol                                           0.300
## Hematopoietic stem cell                                       0.500
## Hypertension                                                  0.540
## Hypothyroidism                                                0.570
## Lifestyle measurement                                         0.790
## Male homosexuality                                            0.670
## Maternal milk                                                 0.470
## Mood disorder                                                 0.400
## Postmenopausal osteoporosis                                   0.400
## Response to antiviral drug                                    0.710
## Response to immune checkpoint inhibitor                       0.400
## SARS-CoV-2-related disease                                    0.620
## Schizophrenia                                                 0.830
## Spontaneous preterm birth                                     0.320
## Traditional Chinese medicine type                             0.530
## Acne                                                          0.600
## Adenomatous colon polyp                                       0.800
## Age                                                           0.350
## Age at assessment                                             0.200
## Aging                                                         0.250
## Alcohol use disorder measurement                              0.710
## Breast cancer                                                 0.780
## Cancer                                                        0.670
## Cervical glandular intraepithelial neoplasia                  0.820
## Cognitive impairment                                          0.780
## Dental caries                                                 0.670
## Diffuse large B-cell lymphoma                                 0.820
## Down syndrome                                                 0.850
## Eczema                                                        0.830
## Endometriosis                                                 0.820
## Environmental exposure measurement                            0.330
## Environmental factor                                          0.650
## Esophageal adenocarcinoma                                     0.670
## Esophageal cancer                                             0.330
## Hepatic steatosis                                             0.710
## Iron biomarker measurement                                    0.330
## Irritable bowel syndrome                                      0.710
## Metastatic colorectal cancer                                  0.500
## Milk allergic reaction                                        0.710
## Pancreatic ductal adenocarcinoma                              0.670
## Papillary thyroid carcinoma                                   0.830
## Phenotype                                                     0.900
## Phenylketonuria                                               0.500
## Population                                                    0.680
## Reproductive behaviour measurement                            0.600
## Response to anti-tuberculosis drug                            0.420
## Response to antibiotic                                        0.670
## Response to antidepressant                                    0.710
## Response to diet                                              0.750
## Response to immunochemotherapy                                0.430
## Response to opioid                                            0.330
## Response to stress                                            0.860
## Sampling site                                                 0.640
## Simian immunodeficiency virus infection                       0.820
## Sleep duration                                                0.330
## Small for gestational age                                     0.750
## Smoking status measurement                                    0.670
## Species design                                                0.390
## Squamous cell carcinoma                                       0.670
## Streptococcus pneumoniae                                      0.670
## Stroke                                                        0.890
## Systemic lupus erythematosus                                  0.600
## Treatment                                                     0.560
## Tuberculosis                                                  0.000
## Acute respiratory failure                                     0.000
## Adenomyosis                                                   0.900
## Age-related macular degeneration                              0.800
## Air pollution                                                 0.190
## Anxiety disorder                                              0.880
## Attention deficit-hyperactivity disorder                      0.670
## Biological sex                                                0.840
## Birth measurement                                             0.440
## Chronic fatigue syndrome                                      0.800
## Chronic hepatitis B virus infection                           0.880
## Chronic obstructive pulmonary disease                         0.500
## Clinical treatment                                            0.860
## Coccidiosis                                                   0.800
## Colorectal adenoma                                            0.820
## Delivery measurement                                          0.650
## Diabetes mellitus                                             0.900
## Diarrhea                                                      0.680
## Diet measurement                                              0.980
## Esophageal squamous cell carcinoma                            0.830
## Estradiol measurement                                         0.400
## Fasting                                                       0.800
## Fungal infectious disease                                     0.570
## Gestational age                                               0.500
## Glaucoma                                                      0.400
## Hepatocellular carcinoma                                      0.530
## Hypertrophy                                                   0.800
## Infant                                                        0.800
## Liver enzyme measurement                                      0.830
## Major depressive disorder                                     0.900
## Menopause                                                     0.500
## Multiple myeloma                                              0.000
## Myocardial infarction                                         0.730
## Obese body mass index status                                  0.400
## Obstructive sleep apnea                                       0.920
## Oral cavity carcinoma                                         0.880
## Oral squamous cell carcinoma                                  0.380
## Osteoporosis                                                  0.880
## Peri-Implantitis                                              0.500
## Pneumonia                                                     0.500
## Postpartum depression                                         0.820
## Prediabetes syndrome                                          0.860
## Preeclampsia                                                  0.900
## Psoriasis                                                     0.930
## Respiratory Syncytial Virus Infection                         0.830
## Respiratory tract infectious disease                          0.830
## Response to exercise                                          0.800
## Response to transplant                                        0.650
## Response to vaccine                                           0.620
## Rosacea                                                       0.830
## Sample treatment protocol                                     0.800
## Sampling time                                                 0.500
## Sleep Disorder                                                0.800
## Social interaction measurement                                0.670
## Socioeconomic status                                          0.530
## Stimulus or stress design                                     0.800
## Timepoint                                                     0.830
## Uterine fibroid                                               0.890
## Vesicle membrane                                              0.170
## Vitiligo                                                      0.800
## Abnormal stool composition                                    1.000
## Acute myeloid leukemia                                        0.780
## Anal Squamous Cell Carcinoma                                  0.330
## Arthritis                                                     1.000
## Asthma                                                        0.750
## Bipolar disorder                                              1.000
## Celiac disease                                                1.000
## Chlamydia trachomatis                                         0.330
## Colon carcinoma                                               0.830
## Contraception                                                 1.000
## COVID-19 symptoms measurement                                 1.000
## Disease progression measurement                               1.000
## Exposure                                                      0.710
## Gastric adenocarcinoma                                        1.000
## Glioma                                                        1.000
## Head and neck squamous cell carcinoma                         1.000
## Health study participation                                    0.750
## Hepatic fibrosis                                              1.000
## High fat diet                                                 0.900
## HIV mother to child transmission                              1.000
## Hydroxyproline measurement                                    0.600
## Hypoxia                                                       0.000
## Ischemic stroke                                               1.000
## Lactose intolerance                                           1.000
## Lung transplantation                                          0.330
## Metabolic process                                             1.000
## Mitochondrial complex I deficiency                            1.000
## Neurodevelopmental delay                                      1.000
## Obsessive-compulsive disorder                                 1.000
## Oral lichen planus                                            0.400
## Oral mucositis                                                0.430
## Ovarian cancer                                                0.810
## Overweight body mass index status                             0.710
## Oxalate measurement                                           0.800
## Pathological complete response                                1.000
## Psoriasis vulgaris                                            1.000
## Response to dietary antigen                                   1.000
## Response to ketogenic diet                                    0.430
## Sample collection protocol                                    1.000
## SARS coronavirus                                              1.000
## Smoking behavior                                              0.570
## Social deprivation,Psychological measurement                  1.000
## Transplant outcome measurement                                1.000
## Viral load                                                    1.000
## Waist circumference                                           1.000
tabDiv(exps, "Richness", "Condition")
##                                                           increased decreased
## Pulmonary tuberculosis                                            5        22
## Diet                                                              6        20
## Helminthiasis                                                    13         0
## Periodontitis                                                    16         3
## HIV infection                                                     5        17
## Multiple sclerosis                                                2        14
## Polycystic ovary syndrome                                         9        18
## Age                                                              13         5
## Aging                                                             0         8
## Parkinson's disease                                              19        27
## Phenotype                                                         9         1
## Small for gestational age                                         0         8
## Chronic constipation                                              7         0
## Gastric cancer                                                    5        12
## Gingivitis                                                        1         8
## High fat diet                                                     0         7
## Opioid dependence,Opioid use disorder                             7         0
## Ulcerative colitis                                                0         7
## Chronic kidney disease                                            0         6
## Crohn's disease                                                   2         8
## Increased intestinal transit time                                 6         0
## Mastitis                                                          0         6
## Maternal milk                                                     2         8
## Response to allogeneic hematopoietic stem cell transplant         0         6
## Schizophrenia                                                     1         7
## Alcohol drinking                                                  5         0
## Antimicrobial agent                                               2         7
## Colorectal cancer                                                24        29
## Environmental factor                                              0         5
## Human immunodeficiency virus                                      1         6
## Human papilloma virus infection                                   7         2
## Inflammatory bowel disease                                        2         7
## Intrahepatic cholestasis of pregnancy                             5         0
## Species design                                                    7        12
## Acute lymphoblastic leukemia                                      5         1
## Air pollution                                                     9         5
## Cervical glandular intraepithelial neoplasia                      4         0
## Colon carcinoma                                                   0         4
## Diarrhea                                                          5         1
## Dry eye syndrome                                                  0         4
## Epilepsy                                                          4         0
## Fungal infectious disease                                         0         4
## Major depressive disorder                                         4         0
## Non-alcoholic steatohepatitis                                     1         5
## Obesity                                                          12         8
## Response to diet                                                  6        10
## Smoking behavior                                                  6        10
## Stress-related disorder                                           0         4
## Type II diabetes mellitus                                         9         5
## Vesicle membrane                                                  5         1
## Alzheimer's disease                                               8         5
## Atopic asthma                                                     4         1
## COVID-19                                                         17        20
## Delivery measurement                                              4         1
## Depressive disorder                                               0         3
## Endometriosis                                                     4         1
## Food allergy                                                      0         3
## Graves disease                                                    2         5
## Hematopoietic stem cell                                           0         3
## Hypertension                                                      1         4
## Hypertrophy                                                       3         0
## Iron biomarker measurement                                        1         4
## Lung cancer                                                       0         3
## Oral squamous cell carcinoma                                      1         4
## Pneumonia                                                         0         3
## Pregnancy                                                         7         4
## Rheumatoid arthritis                                              7         4
## Acute myeloid leukemia                                            0         2
## Anal Squamous Cell Carcinoma                                      0         2
## Asthma                                                            2         4
## Bone mineral content measurement                                  0         2
## Breast cancer                                                     2         0
## Celiac disease                                                    0         2
## Cognitive impairment                                              0         2
## Esophageal adenocarcinoma                                         0         2
## Exercise                                                          3         1
## Health study participation                                        2         0
## Hypothyroidism                                                    0         2
## Irritable bowel syndrome                                          5         7
## Lifestyle measurement                                             4         2
## Metabolic process                                                 0         2
## Osteoporosis                                                      2         0
## Phenylketonuria                                                   1         3
## Premature birth                                                   3         5
## Response to antiviral drug                                        0         2
## Simian immunodeficiency virus infection                           0         2
## Smoking behaviour measurement                                     2         0
## Smoking status measurement                                        2         0
## Streptococcus pneumoniae                                          0         2
## Traditional Chinese medicine type                                 1         3
## Transplant outcome measurement                                    0         2
## Treatment                                                         5         7
## Tuberculosis                                                      3         5
## Adenomyosis                                                       1         2
## Atopic eczema                                                     2         1
## Autism spectrum disorder                                          5         6
## Biological sex                                                    0         1
## Bone density                                                      0         1
## Breastfeeding duration                                            2         3
## Cesarean section                                                  3         2
## Chronic periodontitis                                             1         0
## Clinical treatment                                                0         1
## Coccidiosis                                                       0         1
## Colorectal adenoma                                                1         2
## Down syndrome                                                     1         0
## Ethnic group                                                      3         2
## Gestational diabetes                                              7         6
## Glioma                                                            1         2
## Heart failure                                                     2         3
## Hepatic steatosis                                                 0         1
## Infant                                                            1         0
## Ischemic stroke                                                   2         1
## Neurodevelopmental delay                                          1         0
## Non-alcoholic fatty liver disease                                 1         2
## Obsessive-compulsive disorder                                     0         1
## Ovarian cancer                                                    1         0
## Psoriasis                                                         0         1
## Reproductive behaviour measurement                                1         0
## Response to antibiotic                                            5         4
## Response to stress                                                1         0
## Response to transplant                                            9         8
## Rosacea                                                           0         1
## Sampling site                                                     1         2
## Socioeconomic status                                              2         1
## Spontaneous preterm birth                                         2         3
## Transport                                                         1         2
## Type I diabetes mellitus                                          0         1
## Abnormal stool composition                                        0         0
## Acute pancreatitis                                                0         0
## Attention deficit-hyperactivity disorder                          0         0
## Bacterial vaginosis                                               1         1
## Cervical cancer                                                   2         2
## Chlamydia trachomatis                                             1         1
## Constipation                                                      7         7
## Diet measurement                                                  0         0
## Endometrial cancer                                                2         2
## Head and neck squamous cell carcinoma                             0         0
## Hepatocellular carcinoma                                          3         3
## HIV mother to child transmission                                  0         0
## Liver fibrosis measurement                                        0         0
## Male homosexuality                                                0         0
## Mitochondrial complex I deficiency                                0         0
## Myocardial infarction                                             0         0
## Papillary thyroid carcinoma                                       0         0
## Physical activity                                                 2         2
## Postpartum depression                                             0         0
## Preeclampsia                                                      0         0
## Prostate cancer                                                   1         1
## Psoriasis vulgaris                                                0         0
## Sample collection protocol                                        0         0
## Sleep Disorder                                                    2         2
## Stroke                                                            2         2
## Systemic lupus erythematosus                                      3         3
## Urinary tract infection                                           1         1
## Viral load                                                        0         0
##                                                           unchanged
## Pulmonary tuberculosis                                           12
## Diet                                                             34
## Helminthiasis                                                     0
## Periodontitis                                                    23
## HIV infection                                                    17
## Multiple sclerosis                                               29
## Polycystic ovary syndrome                                        19
## Age                                                               3
## Aging                                                             2
## Parkinson's disease                                              33
## Phenotype                                                        11
## Small for gestational age                                         0
## Chronic constipation                                              7
## Gastric cancer                                                   14
## Gingivitis                                                        8
## High fat diet                                                     8
## Opioid dependence,Opioid use disorder                             0
## Ulcerative colitis                                                2
## Chronic kidney disease                                            7
## Crohn's disease                                                   5
## Increased intestinal transit time                                 0
## Mastitis                                                          1
## Maternal milk                                                     3
## Response to allogeneic hematopoietic stem cell transplant         0
## Schizophrenia                                                    14
## Alcohol drinking                                                  0
## Antimicrobial agent                                              10
## Colorectal cancer                                                64
## Environmental factor                                             17
## Human immunodeficiency virus                                      2
## Human papilloma virus infection                                  17
## Inflammatory bowel disease                                        1
## Intrahepatic cholestasis of pregnancy                             3
## Species design                                                   14
## Acute lymphoblastic leukemia                                      1
## Air pollution                                                     6
## Cervical glandular intraepithelial neoplasia                      2
## Colon carcinoma                                                  10
## Diarrhea                                                          3
## Dry eye syndrome                                                  4
## Epilepsy                                                          3
## Fungal infectious disease                                         2
## Major depressive disorder                                         4
## Non-alcoholic steatohepatitis                                     1
## Obesity                                                          29
## Response to diet                                                 20
## Smoking behavior                                                  8
## Stress-related disorder                                           1
## Type II diabetes mellitus                                        26
## Vesicle membrane                                                  0
## Alzheimer's disease                                              27
## Atopic asthma                                                     7
## COVID-19                                                         26
## Delivery measurement                                              8
## Depressive disorder                                               4
## Endometriosis                                                    20
## Food allergy                                                      9
## Graves disease                                                    6
## Hematopoietic stem cell                                           3
## Hypertension                                                     12
## Hypertrophy                                                       2
## Iron biomarker measurement                                        1
## Lung cancer                                                      10
## Oral squamous cell carcinoma                                      0
## Pneumonia                                                         2
## Pregnancy                                                        16
## Rheumatoid arthritis                                              9
## Acute myeloid leukemia                                            4
## Anal Squamous Cell Carcinoma                                      4
## Asthma                                                           13
## Bone mineral content measurement                                  8
## Breast cancer                                                    18
## Celiac disease                                                    7
## Cognitive impairment                                              7
## Esophageal adenocarcinoma                                         4
## Exercise                                                          3
## Health study participation                                       11
## Hypothyroidism                                                    4
## Irritable bowel syndrome                                         16
## Lifestyle measurement                                             3
## Metabolic process                                                 5
## Osteoporosis                                                      4
## Phenylketonuria                                                   4
## Premature birth                                                   1
## Response to antiviral drug                                       13
## Simian immunodeficiency virus infection                           4
## Smoking behaviour measurement                                     5
## Smoking status measurement                                        5
## Streptococcus pneumoniae                                          3
## Traditional Chinese medicine type                                 4
## Transplant outcome measurement                                    5
## Treatment                                                        11
## Tuberculosis                                                      0
## Adenomyosis                                                       6
## Atopic eczema                                                     6
## Autism spectrum disorder                                          0
## Biological sex                                                   11
## Bone density                                                      5
## Breastfeeding duration                                            8
## Cesarean section                                                 12
## Chronic periodontitis                                             6
## Clinical treatment                                                9
## Coccidiosis                                                       4
## Colorectal adenoma                                               12
## Down syndrome                                                     9
## Ethnic group                                                      1
## Gestational diabetes                                             32
## Glioma                                                            2
## Heart failure                                                     4
## Hepatic steatosis                                                 6
## Infant                                                            4
## Ischemic stroke                                                   3
## Neurodevelopmental delay                                          5
## Non-alcoholic fatty liver disease                                13
## Obsessive-compulsive disorder                                     4
## Ovarian cancer                                                   39
## Psoriasis                                                         8
## Reproductive behaviour measurement                                4
## Response to antibiotic                                            9
## Response to stress                                                9
## Response to transplant                                           14
## Rosacea                                                           4
## Sampling site                                                     2
## Socioeconomic status                                              2
## Spontaneous preterm birth                                         5
## Transport                                                         3
## Type I diabetes mellitus                                          4
## Abnormal stool composition                                        6
## Acute pancreatitis                                               15
## Attention deficit-hyperactivity disorder                          5
## Bacterial vaginosis                                               3
## Cervical cancer                                                   4
## Chlamydia trachomatis                                             3
## Constipation                                                     12
## Diet measurement                                                  7
## Endometrial cancer                                                9
## Head and neck squamous cell carcinoma                            11
## Hepatocellular carcinoma                                          0
## HIV mother to child transmission                                  8
## Liver fibrosis measurement                                        6
## Male homosexuality                                                9
## Mitochondrial complex I deficiency                                7
## Myocardial infarction                                             6
## Papillary thyroid carcinoma                                      12
## Physical activity                                                 2
## Postpartum depression                                            17
## Preeclampsia                                                      6
## Prostate cancer                                                  12
## Psoriasis vulgaris                                               14
## Sample collection protocol                                        9
## Sleep Disorder                                                    3
## Stroke                                                           17
## Systemic lupus erythematosus                                      7
## Urinary tract infection                                           9
## Viral load                                                        5
tabDiv(exps, "Richness", "Condition", perc = TRUE)
##                                                           increased decreased
## Pulmonary tuberculosis                                        0.130     0.560
## Diet                                                          0.100     0.330
## Helminthiasis                                                 1.000     0.000
## Periodontitis                                                 0.380     0.071
## HIV infection                                                 0.130     0.440
## Multiple sclerosis                                            0.044     0.310
## Polycystic ovary syndrome                                     0.200     0.390
## Age                                                           0.620     0.240
## Aging                                                         0.000     0.800
## Parkinson's disease                                           0.240     0.340
## Phenotype                                                     0.430     0.048
## Small for gestational age                                     0.000     1.000
## Chronic constipation                                          0.500     0.000
## Gastric cancer                                                0.160     0.390
## Gingivitis                                                    0.059     0.470
## High fat diet                                                 0.000     0.470
## Opioid dependence,Opioid use disorder                         1.000     0.000
## Ulcerative colitis                                            0.000     0.780
## Chronic kidney disease                                        0.000     0.460
## Crohn's disease                                               0.130     0.530
## Increased intestinal transit time                             1.000     0.000
## Mastitis                                                      0.000     0.860
## Maternal milk                                                 0.150     0.620
## Response to allogeneic hematopoietic stem cell transplant     0.000     1.000
## Schizophrenia                                                 0.045     0.320
## Alcohol drinking                                              1.000     0.000
## Antimicrobial agent                                           0.110     0.370
## Colorectal cancer                                             0.210     0.250
## Environmental factor                                          0.000     0.230
## Human immunodeficiency virus                                  0.110     0.670
## Human papilloma virus infection                               0.270     0.077
## Inflammatory bowel disease                                    0.200     0.700
## Intrahepatic cholestasis of pregnancy                         0.620     0.000
## Species design                                                0.210     0.360
## Acute lymphoblastic leukemia                                  0.710     0.140
## Air pollution                                                 0.450     0.250
## Cervical glandular intraepithelial neoplasia                  0.670     0.000
## Colon carcinoma                                               0.000     0.290
## Diarrhea                                                      0.560     0.110
## Dry eye syndrome                                              0.000     0.500
## Epilepsy                                                      0.570     0.000
## Fungal infectious disease                                     0.000     0.670
## Major depressive disorder                                     0.500     0.000
## Non-alcoholic steatohepatitis                                 0.140     0.710
## Obesity                                                       0.240     0.160
## Response to diet                                              0.170     0.280
## Smoking behavior                                              0.250     0.420
## Stress-related disorder                                       0.000     0.800
## Type II diabetes mellitus                                     0.220     0.120
## Vesicle membrane                                              0.830     0.170
## Alzheimer's disease                                           0.200     0.120
## Atopic asthma                                                 0.330     0.083
## COVID-19                                                      0.270     0.320
## Delivery measurement                                          0.310     0.077
## Depressive disorder                                           0.000     0.430
## Endometriosis                                                 0.160     0.040
## Food allergy                                                  0.000     0.250
## Graves disease                                                0.150     0.380
## Hematopoietic stem cell                                       0.000     0.500
## Hypertension                                                  0.059     0.240
## Hypertrophy                                                   0.600     0.000
## Iron biomarker measurement                                    0.170     0.670
## Lung cancer                                                   0.000     0.230
## Oral squamous cell carcinoma                                  0.200     0.800
## Pneumonia                                                     0.000     0.600
## Pregnancy                                                     0.260     0.150
## Rheumatoid arthritis                                          0.350     0.200
## Acute myeloid leukemia                                        0.000     0.330
## Anal Squamous Cell Carcinoma                                  0.000     0.330
## Asthma                                                        0.110     0.210
## Bone mineral content measurement                              0.000     0.200
## Breast cancer                                                 0.100     0.000
## Celiac disease                                                0.000     0.220
## Cognitive impairment                                          0.000     0.220
## Esophageal adenocarcinoma                                     0.000     0.330
## Exercise                                                      0.430     0.140
## Health study participation                                    0.150     0.000
## Hypothyroidism                                                0.000     0.330
## Irritable bowel syndrome                                      0.180     0.250
## Lifestyle measurement                                         0.440     0.220
## Metabolic process                                             0.000     0.290
## Osteoporosis                                                  0.330     0.000
## Phenylketonuria                                               0.120     0.380
## Premature birth                                               0.330     0.560
## Response to antiviral drug                                    0.000     0.130
## Simian immunodeficiency virus infection                       0.000     0.330
## Smoking behaviour measurement                                 0.290     0.000
## Smoking status measurement                                    0.290     0.000
## Streptococcus pneumoniae                                      0.000     0.400
## Traditional Chinese medicine type                             0.120     0.380
## Transplant outcome measurement                                0.000     0.290
## Treatment                                                     0.220     0.300
## Tuberculosis                                                  0.380     0.620
## Adenomyosis                                                   0.110     0.220
## Atopic eczema                                                 0.220     0.110
## Autism spectrum disorder                                      0.450     0.550
## Biological sex                                                0.000     0.083
## Bone density                                                  0.000     0.170
## Breastfeeding duration                                        0.150     0.230
## Cesarean section                                              0.180     0.120
## Chronic periodontitis                                         0.140     0.000
## Clinical treatment                                            0.000     0.100
## Coccidiosis                                                   0.000     0.200
## Colorectal adenoma                                            0.067     0.130
## Down syndrome                                                 0.100     0.000
## Ethnic group                                                  0.500     0.330
## Gestational diabetes                                          0.160     0.130
## Glioma                                                        0.200     0.400
## Heart failure                                                 0.220     0.330
## Hepatic steatosis                                             0.000     0.140
## Infant                                                        0.200     0.000
## Ischemic stroke                                               0.330     0.170
## Neurodevelopmental delay                                      0.170     0.000
## Non-alcoholic fatty liver disease                             0.062     0.120
## Obsessive-compulsive disorder                                 0.000     0.200
## Ovarian cancer                                                0.025     0.000
## Psoriasis                                                     0.000     0.110
## Reproductive behaviour measurement                            0.200     0.000
## Response to antibiotic                                        0.280     0.220
## Response to stress                                            0.100     0.000
## Response to transplant                                        0.290     0.260
## Rosacea                                                       0.000     0.200
## Sampling site                                                 0.200     0.400
## Socioeconomic status                                          0.400     0.200
## Spontaneous preterm birth                                     0.200     0.300
## Transport                                                     0.170     0.330
## Type I diabetes mellitus                                      0.000     0.200
## Abnormal stool composition                                    0.000     0.000
## Acute pancreatitis                                            0.000     0.000
## Attention deficit-hyperactivity disorder                      0.000     0.000
## Bacterial vaginosis                                           0.200     0.200
## Cervical cancer                                               0.250     0.250
## Chlamydia trachomatis                                         0.200     0.200
## Constipation                                                  0.270     0.270
## Diet measurement                                              0.000     0.000
## Endometrial cancer                                            0.150     0.150
## Head and neck squamous cell carcinoma                         0.000     0.000
## Hepatocellular carcinoma                                      0.500     0.500
## HIV mother to child transmission                              0.000     0.000
## Liver fibrosis measurement                                    0.000     0.000
## Male homosexuality                                            0.000     0.000
## Mitochondrial complex I deficiency                            0.000     0.000
## Myocardial infarction                                         0.000     0.000
## Papillary thyroid carcinoma                                   0.000     0.000
## Physical activity                                             0.330     0.330
## Postpartum depression                                         0.000     0.000
## Preeclampsia                                                  0.000     0.000
## Prostate cancer                                               0.071     0.071
## Psoriasis vulgaris                                            0.000     0.000
## Sample collection protocol                                    0.000     0.000
## Sleep Disorder                                                0.290     0.290
## Stroke                                                        0.095     0.095
## Systemic lupus erythematosus                                  0.230     0.230
## Urinary tract infection                                       0.091     0.091
## Viral load                                                    0.000     0.000
##                                                           unchanged
## Pulmonary tuberculosis                                         0.31
## Diet                                                           0.57
## Helminthiasis                                                  0.00
## Periodontitis                                                  0.55
## HIV infection                                                  0.44
## Multiple sclerosis                                             0.64
## Polycystic ovary syndrome                                      0.41
## Age                                                            0.14
## Aging                                                          0.20
## Parkinson's disease                                            0.42
## Phenotype                                                      0.52
## Small for gestational age                                      0.00
## Chronic constipation                                           0.50
## Gastric cancer                                                 0.45
## Gingivitis                                                     0.47
## High fat diet                                                  0.53
## Opioid dependence,Opioid use disorder                          0.00
## Ulcerative colitis                                             0.22
## Chronic kidney disease                                         0.54
## Crohn's disease                                                0.33
## Increased intestinal transit time                              0.00
## Mastitis                                                       0.14
## Maternal milk                                                  0.23
## Response to allogeneic hematopoietic stem cell transplant      0.00
## Schizophrenia                                                  0.64
## Alcohol drinking                                               0.00
## Antimicrobial agent                                            0.53
## Colorectal cancer                                              0.55
## Environmental factor                                           0.77
## Human immunodeficiency virus                                   0.22
## Human papilloma virus infection                                0.65
## Inflammatory bowel disease                                     0.10
## Intrahepatic cholestasis of pregnancy                          0.38
## Species design                                                 0.42
## Acute lymphoblastic leukemia                                   0.14
## Air pollution                                                  0.30
## Cervical glandular intraepithelial neoplasia                   0.33
## Colon carcinoma                                                0.71
## Diarrhea                                                       0.33
## Dry eye syndrome                                               0.50
## Epilepsy                                                       0.43
## Fungal infectious disease                                      0.33
## Major depressive disorder                                      0.50
## Non-alcoholic steatohepatitis                                  0.14
## Obesity                                                        0.59
## Response to diet                                               0.56
## Smoking behavior                                               0.33
## Stress-related disorder                                        0.20
## Type II diabetes mellitus                                      0.65
## Vesicle membrane                                               0.00
## Alzheimer's disease                                            0.68
## Atopic asthma                                                  0.58
## COVID-19                                                       0.41
## Delivery measurement                                           0.62
## Depressive disorder                                            0.57
## Endometriosis                                                  0.80
## Food allergy                                                   0.75
## Graves disease                                                 0.46
## Hematopoietic stem cell                                        0.50
## Hypertension                                                   0.71
## Hypertrophy                                                    0.40
## Iron biomarker measurement                                     0.17
## Lung cancer                                                    0.77
## Oral squamous cell carcinoma                                   0.00
## Pneumonia                                                      0.40
## Pregnancy                                                      0.59
## Rheumatoid arthritis                                           0.45
## Acute myeloid leukemia                                         0.67
## Anal Squamous Cell Carcinoma                                   0.67
## Asthma                                                         0.68
## Bone mineral content measurement                               0.80
## Breast cancer                                                  0.90
## Celiac disease                                                 0.78
## Cognitive impairment                                           0.78
## Esophageal adenocarcinoma                                      0.67
## Exercise                                                       0.43
## Health study participation                                     0.85
## Hypothyroidism                                                 0.67
## Irritable bowel syndrome                                       0.57
## Lifestyle measurement                                          0.33
## Metabolic process                                              0.71
## Osteoporosis                                                   0.67
## Phenylketonuria                                                0.50
## Premature birth                                                0.11
## Response to antiviral drug                                     0.87
## Simian immunodeficiency virus infection                        0.67
## Smoking behaviour measurement                                  0.71
## Smoking status measurement                                     0.71
## Streptococcus pneumoniae                                       0.60
## Traditional Chinese medicine type                              0.50
## Transplant outcome measurement                                 0.71
## Treatment                                                      0.48
## Tuberculosis                                                   0.00
## Adenomyosis                                                    0.67
## Atopic eczema                                                  0.67
## Autism spectrum disorder                                       0.00
## Biological sex                                                 0.92
## Bone density                                                   0.83
## Breastfeeding duration                                         0.62
## Cesarean section                                               0.71
## Chronic periodontitis                                          0.86
## Clinical treatment                                             0.90
## Coccidiosis                                                    0.80
## Colorectal adenoma                                             0.80
## Down syndrome                                                  0.90
## Ethnic group                                                   0.17
## Gestational diabetes                                           0.71
## Glioma                                                         0.40
## Heart failure                                                  0.44
## Hepatic steatosis                                              0.86
## Infant                                                         0.80
## Ischemic stroke                                                0.50
## Neurodevelopmental delay                                       0.83
## Non-alcoholic fatty liver disease                              0.81
## Obsessive-compulsive disorder                                  0.80
## Ovarian cancer                                                 0.98
## Psoriasis                                                      0.89
## Reproductive behaviour measurement                             0.80
## Response to antibiotic                                         0.50
## Response to stress                                             0.90
## Response to transplant                                         0.45
## Rosacea                                                        0.80
## Sampling site                                                  0.40
## Socioeconomic status                                           0.40
## Spontaneous preterm birth                                      0.50
## Transport                                                      0.50
## Type I diabetes mellitus                                       0.80
## Abnormal stool composition                                     1.00
## Acute pancreatitis                                             1.00
## Attention deficit-hyperactivity disorder                       1.00
## Bacterial vaginosis                                            0.60
## Cervical cancer                                                0.50
## Chlamydia trachomatis                                          0.60
## Constipation                                                   0.46
## Diet measurement                                               1.00
## Endometrial cancer                                             0.69
## Head and neck squamous cell carcinoma                          1.00
## Hepatocellular carcinoma                                       0.00
## HIV mother to child transmission                               1.00
## Liver fibrosis measurement                                     1.00
## Male homosexuality                                             1.00
## Mitochondrial complex I deficiency                             1.00
## Myocardial infarction                                          1.00
## Papillary thyroid carcinoma                                    1.00
## Physical activity                                              0.33
## Postpartum depression                                          1.00
## Preeclampsia                                                   1.00
## Prostate cancer                                                0.86
## Psoriasis vulgaris                                             1.00
## Sample collection protocol                                     1.00
## Sleep Disorder                                                 0.43
## Stroke                                                         0.81
## Systemic lupus erythematosus                                   0.54
## Urinary tract infection                                        0.82
## Viral load                                                     1.00

Body sites with consistently increased or decreased alpha diversity:

tabDiv(exps, "Shannon", "Body site")
##                                                 increased decreased unchanged
## Feces                                                 433       748      2033
## Vagina                                                 61        14        89
## Posterior fornix of vagina                             18         2        12
## Sputum                                                  7        23        23
## Uterine cervix                                         15         1        29
## Gastrointestinal system mucosa                          0        11         1
## Blood serum                                             9         0         0
## Buccal mucosa                                          12         3         8
## Subgingival dental plaque                              17         8        54
## Saliva                                                 44        52       196
## Stomach                                                 6        14         5
## Uterine cervix,Vaginal fluid                            9         1         0
## Ileum                                                   3        10        14
## Oral cavity                                            13         6        30
## Skin of body                                            8        15         8
## Supragingival dental plaque                             3        10        14
## Meconium                                                8         2        18
## Vaginal fluid                                           6         0        12
## Pharynx                                                 6         1         2
## Space surrounding organism                              2         7        13
## Tongue                                                  0         5        16
## Ascending colon                                         4         0         7
## Axilla skin                                             5         1        13
## Caecum                                                  4         8        35
## Cervical cavity                                         4         0         3
## Colorectal mucosa                                       0         4        25
## Colorectum                                              4         0         1
## Lung                                                    4         8        14
## Semen                                                   0         4         3
## Throat                                                  0         4        11
## Ascending colon,Colorectal mucosa,Sigmoid colon         3         0         2
## Colon                                                   6         9        37
## Duodenum                                                0         3         7
## feces                                                   1         4        12
## Intestine                                               1         4        20
## Skin of forearm                                         3         0         3
## Sputum,Feces                                            1         4         1
## Upper arm skin                                          7         4        10
## Bile                                                    2         0         3
## Brachialis muscle                                       0         2         3
## Cecum mucosa                                            2         4         6
## Colostrum                                               3         1         4
## Conjunctiva                                             1         3        12
## Conjunctival sac                                        1         3         3
## Endometrium                                             2         0        14
## Esophagus                                               0         2         4
## Forelimb skin                                           2         0         4
## Milk                                                    2         4        22
## Mouth                                                   8        10        30
## Nasopharynx                                             8         6        40
## Oropharynx                                              1         3         5
## Pancreas                                                0         2         4
## Rectum                                                  4         6        35
## Thyroid gland                                           2         0        10
## Urine                                                   4         2        21
## Uterus                                                  3         1        11
## Blood                                                   1         2        14
## Body proper,Insect leg                                  0         1         5
## Breast                                                  3         4        14
## Breast,Milk                                             1         0         4
## Bulbar conjunctiva                                      3         2         5
## Dental plaque                                           3         4         6
## Digestive tract                                         2         1         2
## Gingival groove                                         2         1         6
## Intestinal mucosa                                       1         2        11
## Liver                                                   4         3         2
## Mouth mucosa                                            1         2         2
## Mucosa of stomach                                       1         0         4
## Nasal cavity                                            2         1         5
## Rumen                                                   2         1         8
## Small intestine                                         3         4         1
## Anal canal                                              2         2         6
## Blood plasma                                            0         0         7
## Bronchus                                                0         0         6
## Colonic mucosa                                          0         0         5
## Dorsum of tongue                                        0         0         8
## Endothelium of trachea                                  3         3         0
## Jejunum                                                 1         1         8
## Ovary                                                   0         0         7
## Peritoneal fluid                                        0         0         9
## Posterior wall of oropharynx                            2         2         1
## Skin epidermis                                          2         2         4
## Skin of abdomen                                         0         0         5
## Skin of face                                            1         1         3
## Surface of tongue                                       2         2         3
## Vagina,Uterine cervix                                   3         3         7
## Ventral side of post-anal tail                          0         0         6
tabDiv(exps, "Shannon", "Body site", perc = TRUE)
##                                                 increased decreased unchanged
## Feces                                               0.130     0.230     0.630
## Vagina                                              0.370     0.085     0.540
## Posterior fornix of vagina                          0.560     0.062     0.380
## Sputum                                              0.130     0.430     0.430
## Uterine cervix                                      0.330     0.022     0.640
## Gastrointestinal system mucosa                      0.000     0.920     0.083
## Blood serum                                         1.000     0.000     0.000
## Buccal mucosa                                       0.520     0.130     0.350
## Subgingival dental plaque                           0.220     0.100     0.680
## Saliva                                              0.150     0.180     0.670
## Stomach                                             0.240     0.560     0.200
## Uterine cervix,Vaginal fluid                        0.900     0.100     0.000
## Ileum                                               0.110     0.370     0.520
## Oral cavity                                         0.270     0.120     0.610
## Skin of body                                        0.260     0.480     0.260
## Supragingival dental plaque                         0.110     0.370     0.520
## Meconium                                            0.290     0.071     0.640
## Vaginal fluid                                       0.330     0.000     0.670
## Pharynx                                             0.670     0.110     0.220
## Space surrounding organism                          0.091     0.320     0.590
## Tongue                                              0.000     0.240     0.760
## Ascending colon                                     0.360     0.000     0.640
## Axilla skin                                         0.260     0.053     0.680
## Caecum                                              0.085     0.170     0.740
## Cervical cavity                                     0.570     0.000     0.430
## Colorectal mucosa                                   0.000     0.140     0.860
## Colorectum                                          0.800     0.000     0.200
## Lung                                                0.150     0.310     0.540
## Semen                                               0.000     0.570     0.430
## Throat                                              0.000     0.270     0.730
## Ascending colon,Colorectal mucosa,Sigmoid colon     0.600     0.000     0.400
## Colon                                               0.120     0.170     0.710
## Duodenum                                            0.000     0.300     0.700
## feces                                               0.059     0.240     0.710
## Intestine                                           0.040     0.160     0.800
## Skin of forearm                                     0.500     0.000     0.500
## Sputum,Feces                                        0.170     0.670     0.170
## Upper arm skin                                      0.330     0.190     0.480
## Bile                                                0.400     0.000     0.600
## Brachialis muscle                                   0.000     0.400     0.600
## Cecum mucosa                                        0.170     0.330     0.500
## Colostrum                                           0.380     0.120     0.500
## Conjunctiva                                         0.062     0.190     0.750
## Conjunctival sac                                    0.140     0.430     0.430
## Endometrium                                         0.120     0.000     0.880
## Esophagus                                           0.000     0.330     0.670
## Forelimb skin                                       0.330     0.000     0.670
## Milk                                                0.071     0.140     0.790
## Mouth                                               0.170     0.210     0.620
## Nasopharynx                                         0.150     0.110     0.740
## Oropharynx                                          0.110     0.330     0.560
## Pancreas                                            0.000     0.330     0.670
## Rectum                                              0.089     0.130     0.780
## Thyroid gland                                       0.170     0.000     0.830
## Urine                                               0.150     0.074     0.780
## Uterus                                              0.200     0.067     0.730
## Blood                                               0.059     0.120     0.820
## Body proper,Insect leg                              0.000     0.170     0.830
## Breast                                              0.140     0.190     0.670
## Breast,Milk                                         0.200     0.000     0.800
## Bulbar conjunctiva                                  0.300     0.200     0.500
## Dental plaque                                       0.230     0.310     0.460
## Digestive tract                                     0.400     0.200     0.400
## Gingival groove                                     0.220     0.110     0.670
## Intestinal mucosa                                   0.071     0.140     0.790
## Liver                                               0.440     0.330     0.220
## Mouth mucosa                                        0.200     0.400     0.400
## Mucosa of stomach                                   0.200     0.000     0.800
## Nasal cavity                                        0.250     0.120     0.620
## Rumen                                               0.180     0.091     0.730
## Small intestine                                     0.380     0.500     0.120
## Anal canal                                          0.200     0.200     0.600
## Blood plasma                                        0.000     0.000     1.000
## Bronchus                                            0.000     0.000     1.000
## Colonic mucosa                                      0.000     0.000     1.000
## Dorsum of tongue                                    0.000     0.000     1.000
## Endothelium of trachea                              0.500     0.500     0.000
## Jejunum                                             0.100     0.100     0.800
## Ovary                                               0.000     0.000     1.000
## Peritoneal fluid                                    0.000     0.000     1.000
## Posterior wall of oropharynx                        0.400     0.400     0.200
## Skin epidermis                                      0.250     0.250     0.500
## Skin of abdomen                                     0.000     0.000     1.000
## Skin of face                                        0.200     0.200     0.600
## Surface of tongue                                   0.290     0.290     0.430
## Vagina,Uterine cervix                               0.230     0.230     0.540
## Ventral side of post-anal tail                      0.000     0.000     1.000
tabDiv(exps, "Richness", "Body site")
##                              increased decreased unchanged
## Feces                              284       459      1047
## Sputum                               0        12        11
## Vagina                              20         8        31
## Posterior fornix of vagina          12         1         3
## Oral cavity                         14         4        22
## Supragingival dental plaque          0         9         9
## Upper arm skin                      10         1         9
## Ileum                                3        11        10
## Stomach                              4        12         3
## Mouth                               10         3         9
## Oropharynx                           0         6         6
## Rectum                               1         7        10
## Subgingival dental plaque           11         5        36
## Uterine cervix                       8         2        14
## Skin epidermis                       0         5         2
## Skin of body                         4         9         6
## Uterine cervix,Vaginal fluid         7         2         1
## Conjunctival sac                     0         4         1
## Throat                               1         5         5
## Ascending colon                      3         0         6
## Colon                               10         7        19
## Colostrum                            3         0         2
## Small intestine                      1         4         0
## Vaginal fluid                        4         1         2
## Anal canal                           0         2         8
## Cecum mucosa                         2         4         1
## Colorectal mucosa                    2         0        17
## Ear                                  2         0         3
## Esophagus                            0         2         4
## Lung                                 0         2         4
## Semen                                1         3         3
## Surface of tongue                    4         2         1
## Tongue                               2         4         7
## Urine                                4         2        17
## Blood                                1         2         2
## Buccal mucosa                        3         2         6
## Caecum                               5         6        12
## Dental plaque                        2         3         6
## Endometrium                          1         0        12
## Intestine                            2         1        16
## Meconium                             3         4        11
## Nasopharynx                         10         9        26
## Saliva                              29        30       112
## Vagina,Uterine cervix                1         0        11
## Blood plasma                         0         0         7
## Breast                               1         1         7
## Bronchus                             0         0         6
## Conjunctiva                          1         1         5
## Dorsum of tongue                     0         0         6
## feces                                1         1         4
## Liver                                3         3         0
## Milk                                 4         4         5
## Nasal cavity                         2         2         6
## Ovary                                0         0         7
## Peritoneal fluid                     0         0         9
## Rumen                                0         0         6
## Thyroid gland                        0         0        12
tabDiv(exps, "Richness", "Body site", perc = TRUE)
##                              increased decreased unchanged
## Feces                            0.160     0.260      0.58
## Sputum                           0.000     0.520      0.48
## Vagina                           0.340     0.140      0.53
## Posterior fornix of vagina       0.750     0.062      0.19
## Oral cavity                      0.350     0.100      0.55
## Supragingival dental plaque      0.000     0.500      0.50
## Upper arm skin                   0.500     0.050      0.45
## Ileum                            0.120     0.460      0.42
## Stomach                          0.210     0.630      0.16
## Mouth                            0.450     0.140      0.41
## Oropharynx                       0.000     0.500      0.50
## Rectum                           0.056     0.390      0.56
## Subgingival dental plaque        0.210     0.096      0.69
## Uterine cervix                   0.330     0.083      0.58
## Skin epidermis                   0.000     0.710      0.29
## Skin of body                     0.210     0.470      0.32
## Uterine cervix,Vaginal fluid     0.700     0.200      0.10
## Conjunctival sac                 0.000     0.800      0.20
## Throat                           0.091     0.450      0.45
## Ascending colon                  0.330     0.000      0.67
## Colon                            0.280     0.190      0.53
## Colostrum                        0.600     0.000      0.40
## Small intestine                  0.200     0.800      0.00
## Vaginal fluid                    0.570     0.140      0.29
## Anal canal                       0.000     0.200      0.80
## Cecum mucosa                     0.290     0.570      0.14
## Colorectal mucosa                0.110     0.000      0.89
## Ear                              0.400     0.000      0.60
## Esophagus                        0.000     0.330      0.67
## Lung                             0.000     0.330      0.67
## Semen                            0.140     0.430      0.43
## Surface of tongue                0.570     0.290      0.14
## Tongue                           0.150     0.310      0.54
## Urine                            0.170     0.087      0.74
## Blood                            0.200     0.400      0.40
## Buccal mucosa                    0.270     0.180      0.55
## Caecum                           0.220     0.260      0.52
## Dental plaque                    0.180     0.270      0.55
## Endometrium                      0.077     0.000      0.92
## Intestine                        0.110     0.053      0.84
## Meconium                         0.170     0.220      0.61
## Nasopharynx                      0.220     0.200      0.58
## Saliva                           0.170     0.180      0.65
## Vagina,Uterine cervix            0.083     0.000      0.92
## Blood plasma                     0.000     0.000      1.00
## Breast                           0.110     0.110      0.78
## Bronchus                         0.000     0.000      1.00
## Conjunctiva                      0.140     0.140      0.71
## Dorsum of tongue                 0.000     0.000      1.00
## feces                            0.170     0.170      0.67
## Liver                            0.500     0.500      0.00
## Milk                             0.310     0.310      0.38
## Nasal cavity                     0.200     0.200      0.60
## Ovary                            0.000     0.000      1.00
## Peritoneal fluid                 0.000     0.000      1.00
## Rumen                            0.000     0.000      1.00
## Thyroid gland                    0.000     0.000      1.00

Signature stats

sigs <- bugsigdbr::getSignatures(dat, tax.id.type = "metaphlan")

Unique microbes

Number unique microbes contained in the signatures:

(nuniq <- length(unique(unlist(sigs))))
## [1] 8683

Development of unique microbes captured over time:

Collector’s curves: number of unique microbes as a function of the number of signatures and papers curated. The solid line follows the order in which signatures were curated; the dashed line and grey band show the mean and 95% interval over 100 random orderings. A curve that levels off indicates that newly curated signatures mostly report microbes already in the database.

set.seed(1)
plotCollectorsCurve(dat, by = "signatures")

plotCollectorsCurve(dat, by = "papers")

At the genus and species level:

plotCollectorsCurve(dat, by = "signatures", tax.level = "genus")

plotCollectorsCurve(dat, by = "signatures", tax.level = "species")

Microbe set size distribution

##    Min. 1st Qu.  Median    Mean 3rd Qu.    Max. 
##   1.000   2.000   4.000   7.991   9.000 467.000
gghistogram(lengths(sigs), bins = 30, ylab = "number of signatures",
    xlab = "signature size", fill = "#00AFBB", ggtheme = theme_bw())

sum(lengths(sigs) > 4)
## [1] 7993

Microbe co-occurrence

dat.feces <- subset(dat, `Body site` == "Feces")
cooc.mat <- microbeHeatmap(dat.feces, tax.level = "genus", anno = "genus")
## Loading required namespace: safe

antag.mat <- microbeHeatmap(dat.feces, tax.level = "genus", anno = "genus", antagonistic = TRUE)

Get the top 20 genera most frequently reported as differentially abundant:

sigs.feces <- getSignatures(dat.feces, tax.id.type = "taxname", 
                            tax.level = "genus", exact.tax.level = FALSE) 
top20 <- sort(table(unlist(sigs.feces)), decreasing = TRUE)[1:20]
top20
## 
##        Bacteroides    Bifidobacterium        Clostridium   Faecalibacterium 
##               1850               1270               1141               1109 
##      Streptococcus            Blautia       Ruminococcus          Roseburia 
##               1090               1085                937                931 
##    Parabacteroides          Alistipes      Lactobacillus         Prevotella 
##                897                895                799                780 
##        Akkermansia              Dorea        Eubacterium        Lachnospira 
##                652                645                617                605 
##        Veillonella Mediterraneibacter        Collinsella       Anaerostipes 
##                587                557                555                537

Subset heatmaps to the top 20 genera most frequently reported as differentially abundant:

all(names(top20) %in% rownames(cooc.mat))
## [1] TRUE
cooc.mat <- cooc.mat[names(top20), names(top20)]
all(names(top20) %in% rownames(antag.mat))
## [1] TRUE
antag.mat <- antag.mat[names(top20), names(top20)]

Distinguish by direction of abundance change (increased / decreased):

# increased
sub.dat.feces <- subset(dat.feces, `Abundance in Group 1` == "increased")
sigs.feces.up <- getSignatures(sub.dat.feces, tax.id.type = "taxname", 
                               tax.level = "genus", exact.tax.level = FALSE) 
top20.up <- table(unlist(sigs.feces.up))[names(top20)]
top20.up
## 
##        Bacteroides    Bifidobacterium        Clostridium   Faecalibacterium 
##                936                654                594                391 
##      Streptococcus            Blautia       Ruminococcus          Roseburia 
##                669                491                391                304 
##    Parabacteroides          Alistipes      Lactobacillus         Prevotella 
##                475                411                498                404 
##        Akkermansia              Dorea        Eubacterium        Lachnospira 
##                407                297                267                212 
##        Veillonella Mediterraneibacter        Collinsella       Anaerostipes 
##                367                285                275                234
# decreased
sub.dat.feces <- subset(dat.feces, `Abundance in Group 1` == "decreased")
sigs.feces.down <- getSignatures(sub.dat.feces, tax.id.type = "taxname", 
                                 tax.level = "genus", exact.tax.level = FALSE) 
top20.down <- table(unlist(sigs.feces.down))[names(top20)]
top20.down
## 
##        Bacteroides    Bifidobacterium        Clostridium   Faecalibacterium 
##                907                608                542                712 
##      Streptococcus            Blautia       Ruminococcus          Roseburia 
##                413                588                541                621 
##    Parabacteroides          Alistipes      Lactobacillus         Prevotella 
##                416                478                299                373 
##        Akkermansia              Dorea        Eubacterium        Lachnospira 
##                241                342                344                387 
##        Veillonella Mediterraneibacter        Collinsella       Anaerostipes 
##                217                265                274                297

Plot the heatmap

# annotation
mat <- matrix(nc = 2, cbind(top20.up, top20.down))
bp <- ComplexHeatmap::anno_barplot(mat, gp = gpar(fill = c("#D55E00", "#0072B2"),
                                                  col = c("#D55E00", "#0072B2")),
                                   height = unit(2, "cm"))
banno <- ComplexHeatmap::HeatmapAnnotation(`Abundance in Group 1` = bp)

lgd_list <- list(
    Legend(labels = c("increased", "decreased"), 
           title = "Abundance in Group 1", 
           type = "grid",
           legend_gp = gpar(col = c("#D55E00", "#0072B2"), fill = c("#D55E00", "#0072B2"))))
                                            
# same direction
# lcm <- sweep(cooc.mat, 2, matrixStats::colMaxs(cooc.mat), FUN = "/")
# we need to dampen the maximum here a bit down,
# otherwise 100% self co-occurrence takes up a large fraction of the colorscale,
sec <- apply(cooc.mat, 2, function(x) sort(x, decreasing = TRUE)[2])
cooc.mat2 <- cooc.mat
for(i in 1:ncol(cooc.mat2)) cooc.mat2[i,i] <- min(cooc.mat2[i,i], 1.4 * sec[i])
lcm <- sweep(cooc.mat2, 2, matrixStats::colMaxs(cooc.mat2), FUN = "/")
col <- circlize::colorRamp2(c(0,1), c("#EEEEEE", "red"))
ht1 <- ComplexHeatmap::Heatmap(lcm,
                               col = col, 
                               name = "Relative frequency (top)",
                               cluster_columns = FALSE, 
                               row_km = 3, 
                               row_title = "same direction", 
                               column_names_rot = 45,
                               row_names_gp = gpar(fontsize = 8),
                               column_names_gp = gpar(fontsize = 8))

# opposite direction
acm <- sweep(antag.mat, 2, matrixStats::colMaxs(antag.mat), FUN = "/")
col <- circlize::colorRamp2(c(0,1), c("#EEEEEE", "blue"))
ht2 <- ComplexHeatmap::Heatmap(acm,
                               col = col, 
                               name = "Relative frequency (bottom)",
                               cluster_columns = FALSE, 
                               row_title = "opposite direction", 
                               row_km = 3, 
                               column_names_rot = 45,
                               row_names_gp = gpar(fontsize = 8),
                               column_names_gp = gpar(fontsize = 8))

# phylum
sfp <- bugsigdbr::getSignatures(dat.feces, tax.id.type = "metaphlan", 
                                tax.level = "genus", exact.tax.level = FALSE) 
sfp20 <- sort(table(unlist(sfp)), decreasing = TRUE)[1:20]
uanno <- bugsigdbr::extractTaxLevel(names(sfp20),
                                    tax.id.type = "taxname",
                                    tax.level = "mixed",
                                    exact.tax.level = FALSE) 
phyla.grid <- seq_along(unique(uanno))
panno <- ComplexHeatmap::HeatmapAnnotation(phylum = uanno)

uanno <- matrix(uanno, nrow = 1)
colnames(uanno) <- names(top20)
pcols <- c("#CC79A7", "#F0E442", "#009E73", "#56B4E9", "#E69F00")
uanno <- ComplexHeatmap::Heatmap(uanno, name = "Phylum",
                                 col = pcols[phyla.grid],
                                 cluster_columns = FALSE,
                                 column_names_rot = 45,
                                 column_names_gp = gpar(fontsize = 8))
## There are 20 unique colors in the vector `col` and 20 unique values in
## `matrix`. `Heatmap()` will treat it as an exact discrete one-to-one
## mapping. If this is not what you want, slightly change the number of
## colors, e.g. by adding one more color or removing a color.
# put everything together
ht_list <- ht1 %v% banno %v% ht2 %v% uanno
ComplexHeatmap::draw(ht_list, annotation_legend_list = lgd_list, merge_legend = TRUE)

decorate_annotation("Abundance in Group 1", {
    grid.text("# signatures", x = unit(-1, "cm"), rot = 90, just = "bottom", gp = gpar(fontsize = 8))
    grid.text("*", x = unit(2.45, "cm"), y = unit(1.2, "cm"))
    grid.text("*", x = unit(5.18, "cm"), y = unit(1, "cm"))
    grid.text("*", x = unit(6.55, "cm"), y = unit(0.95, "cm"))
    grid.text("*", x = unit(8.6, "cm"), y = unit(0.85, "cm"))
    grid.text("*", x = unit(10, "cm"), y = unit(0.7, "cm"))
    grid.text("*", x = unit(10.7, "cm"), y = unit(0.7, "cm"))
})

Signature similarity

Jaccard index

Inspect signature similarity for signatures from stomach samples based on Jaccard index:

stomachsub <- subset(dat, `Body site` == "Stomach")
sigsub <- bugsigdbr::getSignatures(stomachsub)
pair.jsim <- calcJaccardSimilarity(sigsub)

Create a dendrogram of Jaccard dissimilarities (1.0 has no overlap, 0.0 are identical signatures).

jdist <- as.dist(1 - pair.jsim)
plot(hclust(jdist))