Skip to content
STARMAPs: a Similarity Test for Accordant and Reproducible Microbiome Abundance Patterns
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Type Name Latest commit message Commit time
Failed to load latest commit information.


STARMAPs is a statistical tool for a comparison between two microbiota datasets. It provides inference for alike and opposite matchings of the microbial changes associated with treatments/factors in two different datasets.


STARMAPs is currently implemented as an R source file ("STARMAPs_v2.R"). We are currently working to develop it into an R package.


In general, use the following for two datasets with taxon-by-sample count matrices data1 and data2 with meta data files meta1 and meta2 with matching sample ids. Names of the columns in the meta files that specify the groups to compare need to be provided to fcol1 and fcol2.

res <- starmaps(data1, meta1, fcol1, data2, meta2, fcol2)
plot.starmaps(res, "res.pdf")
tbl <- summary.starmaps(res)

Two additional examples are provided in the file "Usage_Examples.R".

Note that, by default, STARMAPs expects taxon names that uses ";" to seperate each taxonomic level (see get.taxa() function in "STARMAPs_v2.R").


Codes and results of benchmarking evaluation of STARMAPs, as described in Jiang et al (citation below), are provided in the "" file.


Peng Jiang (


Jiang P, Green SJ, Chlipala GE, Turek FW, Vitaterna MH. Reproducible changes in the gut microbiome reveal a shift in microbial and host metabolism during spaceflight. Microbiome. 2019 Aug 9;7(1):113. doi: 10.1186/s40168-019-0724-4

Required packages

  • MCMCpack
  • vegan
  • compositions
  • ggplot2
  • gridExtra
  • parallel

Benchmarking also used

  • phyloseq
  • plotROC
You can’t perform that action at this time.