aPCoA: Covariate Adjusted Principal Coordinates Analysis

  PID:1033   Version:1.3   Last updated: 2024-11-18
Yushu Shi1, Liangliang Zhang2, Kim-Anh Do2, Christine Peterson2, and Robert Jenq3
  Contact email:   shiyushu2006@gmail.com

Step 1: Provide meta data and distance matrix


Example dataset from an ecology study is provided
Download example meta data

Download example distance matrix

Step 2: Run aPCoA


Select main covariate and 'nuisance' covariate to adjust for

AdjustedPCoA.utf8

We provide aPCoA to improve data visualization in this context, enabling enhanced presentation of the effects of interest. For more details, please check our paper aPCoA: Covariate Adjusted Principal Coordinates Analysis. We also provide an R package that can adjust for multiple covariates https://cran.r-project.org/web/packages/aPCoA/index.html.

Example Dataset

The first illustrating dataset is from a study on the effects of disturbance from a soldier crab on 56 species of meiobenthos, which are small invertebrates. Eight of the sixteen observations in the data set correspond to crab disturbances. Besides the crab disturbance, there are also four different locations in the study design, where observations from each location are comprised of two disturbed and two undisturbed ones. Here we use the Bray-Curtis dissimilarity, which is commonly used in the ecology field to visualize observations.

Options

After loading the above dataset and the distance matrix to our shiny app, the shiny app will automatically ask you to choose the main covariate and covariate to adjust for.

Plot Result in R shiny app

After clicking the button “Create Plots”, the R shiny app will automatically produce the PCoA plots for you. The top row depicts the unadjusted PCoA colored by the main covariate and the confounding covariate, while the bottom row shows the PCoA after adjusting for the confounding covariates.


  1:   Department of Statisitcs, the University of Missouri, Columbia
  2:   Department of Biostatistics, the University of Texas, MD Anderson Cancer Center
  3:   Department of Genomic Medicine,the University of Texas, MD Anderson Cancer Center
  Reference: Yushu Shi, Liangliang Zhang, Kim-Anh Do, Christine B Peterson, Robert Jenq, aPCoA: Covariate Adjusted Principal Coordinates Analysis, Bioinformatics,btaa276
https://doi.org/10.1093/bioinformatics/btaa276
  Special thanks to Clift Norris and Ying-Wei Kuo for their suggestions and support in making this app.
  Special thanks to Guojun Wu for helping us fix the bug in verison 1.1.