MetaLonDA

METAgenomic LONgitudinal Differential Abundance method

https://github.com/aametwally/metalonda

Science Score: 33.0%

This score indicates how likely this project is to be science-related based on various indicators:

  • CITATION.cff file
  • codemeta.json file
  • .zenodo.json file
  • DOI references
    Found 1 DOI reference(s) in README
  • Academic publication links
    Links to: acm.org
  • Committers with academic emails
    3 of 4 committers (75.0%) from academic institutions
  • Institutional organization owner
  • JOSS paper metadata
  • Scientific vocabulary similarity
    Low similarity (13.7%) to scientific vocabulary

Keywords

differential-abundance-methods longitudinal-studies metagenomics microbiome negative-binomial-distribution smoothing-splines
Last synced: 6 months ago · JSON representation

Repository

METAgenomic LONgitudinal Differential Abundance method

Basic Info
  • Host: GitHub
  • Owner: aametwally
  • License: other
  • Language: R
  • Default Branch: master
  • Size: 23.2 MB
Statistics
  • Stars: 16
  • Watchers: 3
  • Forks: 6
  • Open Issues: 8
  • Releases: 0
Topics
differential-abundance-methods longitudinal-studies metagenomics microbiome negative-binomial-distribution smoothing-splines
Created about 8 years ago · Last pushed about 6 years ago
Metadata Files
Readme License

README.md

What is MetaLonDA?

Build Status Rdoc CRAN_Status_Badge License

MetaLonDA (METAgenomic LONgitudinal Differential Abundance method) is a method that identifies the significant time intervals of microbial features in longitudinal studies. MetaLonDA has the ability to handle the inconsistencies and common challenges associated with human studies, such as variable sample collection times and uneven number of time points along the subjects’ longitudinal study. The method employs a negative binomial distribution in conjunction with a semi-parametric SS-ANOVA to model the read counts. Then, it performs the significance testing based on unit time intervals using permutation testing procedure.

Publications:

  • Ahmed A. Metwally, Jie Yang, Christian Ascoli, Yang Dai, Patricia W. Finn, and David L. Perkins. "MetaLonDA: a flexible R package for identifying time intervals of differentially abundant features in metagenomic longitudinal studies", Microbiome, 2018. [paper]
  • Ahmed A. Metwally, Patricia W. Finn, Yang Dai, and David L. Perkins. "Detection of Differential Abundance Intervals in Longitudinal Metagenomic Data Using Negative Binomial Smoothing Spline ANOVA." ACM BCB, 2017. [paper]


Getting Started

This section details steps for installing and running MetaLonDA. If you experience difficulty installing or running the software, please contact (Ahmed Metwally: ametwall@stanford.edu).

Prerequisites

  • R(>= 3.2.0)


Installation

Install MetaLonDA from CRAN:

Install the latest released version from CRAN: https://cran.r-project.org/web/packages/MetaLonDA/index.html install.packages("MetaLonDA")

Install MetaLonDA from GitHub:

Download the latest development code of MetaLonDA from GitHub using devtools library(devtools) install_github("aametwally/MetaLonDA", ref = "master")


Example:

``` library(MetaLonDA)

Load read counts of 8 features from 100 samples. Samples are from 2 groups, 5 subjects per group, and 10 time points per subject.

data(metalondatestdata) View(metalondatestdata[,1:20]) ```

```

Create Group, Time, and ID annotation vectors

n.group = 2 n.sample = 5 n.timepoints = 10 Group = factor(c(rep("A", n.samplen.timepoints), rep("B",n.samplen.timepoints))) Time = rep(rep(1:n.timepoints, times = n.sample), 2) ID = factor(rep(1:(2*n.sample), each = n.timepoints))

Define the prediction timeponits

points = seq(1, 10, length.out = 100) ```

Test one feature

```

Identify significant time intervals of the 5th feature:

output.metalonda.f5 = metalonda(Count = metalondatestdata[5,], Time = Time, Group = Group, ID = ID, n.perm = 100, fit.method = "nbinomial", points = points, text = rownames(metalondatestdata)[5], parall = FALSE, pvalue.threshold = 0.05, adjust.method = "BH", time.unit = "days", ylabel = "Normalized Count", col = c("black", "green"), prefix = "Test_F5") ```

In our example, we used 20 permutations just to showcase how MetaLonDA works. In real analysis, this number should be much higher. Three figures are generated after running the above snippet:


  1. Figure shows the trajectory of the feature's count across different time points:



2. Figure shows fitted spline for each group:



  1. In case there is a significant time interval, the following figure is generated to highlight the significant intervals.



Test all features

```

Identify significant time intervals for all features:

output.metalonda.all = metalondaAll(Count = metalondatestdata, Time = Time, Group = Group, ID = ID, n.perm = 100, fit.method = "nbinomial", num.intervals = 100, parall = FALSE, pvalue.threshold = 0.05, adjust.method = "BH", time.unit = "hours", norm.method = "none", prefix = "Test_metalondaALL", ylabel = "Read Counts", col = c("black", "green"))

```

After running the above snippet for testing all features in the count matrix, along with the 2-3 figures for each feature, MetaLonDA produces the following two summary files:


1. Figure illustrates time intervals of differentially abundant features between the two groups. Each line represents a range of the significant time interval of the corresponding feature.



2. Descriptive summary all signifcant time intervals of differentially abundant features.


Bugs and Suggestions

MetaLonDA is under active research development. Please report any bugs/suggestions to Ahmed Metwally (ametwall@stanford.edu).

Owner

  • Name: Ahmed A. Metwally
  • Login: aametwally
  • Kind: user
  • Location: Palo Alto, CA
  • Company: Stanford University

I create ML methods and algorithms to understand how diseases progress over time

GitHub Events

Total
  • Fork event: 1
Last Year
  • Fork event: 1

Committers

Last synced: over 2 years ago

All Time
  • Total Commits: 136
  • Total Committers: 4
  • Avg Commits per committer: 34.0
  • Development Distribution Score (DDS): 0.044
Past Year
  • Commits: 0
  • Committers: 0
  • Avg Commits per committer: 0.0
  • Development Distribution Score (DDS): 0.0
Top Committers
Name Email Commits
Ahmed A. Metwally a****2@u****u 130
Ahmed Metwally a****y@1****u 3
Ahmed A. Metwally a****y@s****u 2
Nate Olowo 3****h 1
Committer Domains (Top 20 + Academic)

Packages

  • Total packages: 1
  • Total downloads:
    • cran 163 last-month
  • Total dependent packages: 0
  • Total dependent repositories: 0
  • Total versions: 7
  • Total maintainers: 1
cran.r-project.org: MetaLonDA

Metagenomics Longitudinal Differential Abundance Method

  • Versions: 7
  • Dependent Packages: 0
  • Dependent Repositories: 0
  • Downloads: 163 Last month
Rankings
Forks count: 10.1%
Stargazers count: 15.6%
Average: 28.8%
Dependent packages count: 29.8%
Dependent repos count: 35.5%
Downloads: 53.3%
Maintainers (1)
Last synced: about 1 year ago

Dependencies

DESCRIPTION cran
  • R >= 3.5.0 depends
  • DESeq2 * imports
  • doParallel * imports
  • edgeR * imports
  • ggplot2 * imports
  • gss * imports
  • metagenomeSeq * imports
  • parallel * imports
  • plyr * imports
  • pracma * imports
  • zoo * imports
  • knitr * suggests
  • rmarkdown * suggests