POUMM

An R-package implementing the univariate Phylogenetic Ornstein-Uhlenbeck Mixed Model

https://github.com/venelin/poumm

Science Score: 20.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
  • Academic publication links
    Links to: zenodo.org
  • Committers with academic emails
    1 of 3 committers (33.3%) from academic institutions
  • Institutional organization owner
  • JOSS paper metadata
  • Scientific vocabulary similarity
    Low similarity (17.5%) to scientific vocabulary
Last synced: 11 months ago · JSON representation

Repository

An R-package implementing the univariate Phylogenetic Ornstein-Uhlenbeck Mixed Model

Basic Info
Statistics
  • Stars: 4
  • Watchers: 1
  • Forks: 0
  • Open Issues: 0
  • Releases: 0
Created over 8 years ago · Last pushed about 1 year ago
Metadata Files
Readme

README.Rmd

---
output: github_document
---



```{r, echo = FALSE}
knitr::opts_chunk$set(
  collapse = TRUE,
  comment = "#>",
  fig.path = "README-"
)
```

[![Coverage status](https://codecov.io/gh/venelin/POUMM/branch/master/graph/badge.svg)](https://app.codecov.io/github/venelin/POUMM?branch=master)
[![CRAN_Status_Badge](http://www.r-pkg.org/badges/version/POUMM?color=blue)](https://cran.r-project.org/package=POUMM)
[![Downloads](http://cranlogs.r-pkg.org/badges/POUMM?color=blue)](https://cran.r-project.org/package=POUMM)
[![DOI](https://zenodo.org/badge/115860927.svg)](https://zenodo.org/badge/latestdoi/115860927)

# The Phylogenetic Ornstein-Uhlenbeck Mixed Model
The Phylogenetic Ornstein-Uhlenbeck Mixed Model (POUMM) allows to estimate the phylogenetic heritability of a continuous trait, to test hypotheses of neutral evolution versus stabilizing selection, to quantify the strength of stabilizing selection, to estimate measurement error and to make predictions about the evolution of a phenotype and phenotypic variation in a population. The POUMM package provides an easy and efficient way to perform this variety of analyses on large macro-evolutionary or epidemic trees. It implements a fast-likelihood calculation algorithm enabling MCMC-sampling with millions of iterations within minutes on contemporary multiple core processors. The package provides functions for configuring the fit of the model and a number of standard generic functions such as logLik, plot, summary, allowing a visual and a statistical assessment of the goodness of fit. This is an important step before using the model fit to answer relevant biological questions.

# Using the R-package
Here is a quick example on how to use the package on a simulated tree and trait data:

```{r, results="hide", eval=FALSE, echo=TRUE}
# number of tips
N <- 500 

# phylogeny
tr <- ape::rtree(N)

# for the example, simulate trait values on the tree according to a POUMM model.
z <- rVNodesGivenTreePOUMM(
  tree = tr,   
  z0 = 0,      # fixed value at the root
  alpha = 2,   # selection strength of the OU process
  theta = 3,   # long term mean of the OU process
  sigma = 1,   # unit-time standard deviation of the OU process
  sigmae = 1   # standard deviation of the non-heritable component
)[1:N]         # only the values at the N tips will be available in reality

# A combined ML and MCMC fit of the model with default parameter settings.
fit <- POUMM(z, tr)

plot(fit)
summary(fit)
AIC(fit)
BIC(fit)
coef(fit)
logLik(fit)
fitted(fit)
plot(resid(fit))
abline(h=0)

# fit PMM to the same data and do a likelihood ratio test
fitPMM <- POUMM(z, tr)
lmtest::lrtest(fitPMM, fit)
```

For an introduction to the model parameters and the package, read the [User guide](https://venelin.github.io/POUMM/articles/UserGuide.html). More advanced topics, such as parametrizations and interpretations of the model fit are covered in the other package [vignettes](https://venelin.github.io/POUMM/articles/index.html) and in the package  help-pages, e.g. `?POUMM`, `?specifyPOUMM`, `?summary.POUMM`, `?plot.POUMM`.

# Installing the R-package
Read the section [Installing the POUMM R-package](https://venelin.github.io/POUMM/articles/UserGuide.html#Installing) in [Get started](https://venelin.github.io/POUMM/articles/UserGuide.html).

# Package source-code
The package source-code is available on [github](https://github.com/venelin/POUMM).

# Licence and copyright

Copyright 2015-2020 Venelin Mitov

Source code to POUMM is made available under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version. POUMM is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for details.

# Package web-page
Check-out the package [web-page](https://venelin.github.io/POUMM/index.html) for the latest news and further documentation.

Owner

  • Name: Venelin Mitov
  • Login: venelin
  • Kind: user
  • Company: IntiQuan

Modeling and simulation scientist

GitHub Events

Total
  • Push event: 1
Last Year
  • Push event: 1

Committers

Last synced: almost 3 years ago

All Time
  • Total Commits: 172
  • Total Committers: 3
  • Avg Commits per committer: 57.333
  • Development Distribution Score (DDS): 0.029
Past Year
  • Commits: 0
  • Committers: 0
  • Avg Commits per committer: 0.0
  • Development Distribution Score (DDS): 0.0
Top Committers
Name Email Commits
Venelin Mitov v****v@b****h 167
Venelin Mitov v****v@i****m 4
mattdowle m****e@g****m 1
Committer Domains (Top 20 + Academic)

Issues and Pull Requests

Last synced: 11 months ago

All Time
  • Total issues: 1
  • Total pull requests: 1
  • Average time to close issues: 2 days
  • Average time to close pull requests: about 3 hours
  • Total issue authors: 1
  • Total pull request authors: 1
  • Average comments per issue: 5.0
  • Average comments per pull request: 6.0
  • Merged pull requests: 1
  • Bot issues: 0
  • Bot pull requests: 0
Past Year
  • Issues: 0
  • Pull requests: 0
  • Average time to close issues: N/A
  • Average time to close pull requests: N/A
  • Issue authors: 0
  • Pull request authors: 0
  • Average comments per issue: 0
  • Average comments per pull request: 0
  • Merged pull requests: 0
  • Bot issues: 0
  • Bot pull requests: 0
Top Authors
Issue Authors
  • scheidan (1)
Pull Request Authors
  • mattdowle (1)
Top Labels
Issue Labels
Pull Request Labels

Packages

  • Total packages: 1
  • Total downloads:
    • cran 601 last-month
  • Total dependent packages: 0
  • Total dependent repositories: 0
  • Total versions: 9
  • Total maintainers: 1
cran.r-project.org: POUMM

The Phylogenetic Ornstein-Uhlenbeck Mixed Model

  • Versions: 9
  • Dependent Packages: 0
  • Dependent Repositories: 0
  • Downloads: 601 Last month
Rankings
Stargazers count: 26.2%
Forks count: 28.8%
Dependent packages count: 29.8%
Average: 32.0%
Dependent repos count: 35.5%
Downloads: 39.9%
Maintainers (1)
Last synced: 11 months ago

Dependencies

DESCRIPTION cran
  • R >= 3.1.0 depends
  • Rcpp * depends
  • methods * depends
  • stats * depends
  • adaptMCMC * imports
  • ape * imports
  • coda * imports
  • data.table >= 1.13.2 imports
  • foreach * imports
  • ggplot2 * imports
  • lamW * imports
  • utils * imports
  • Rmpfr * suggests
  • doParallel * suggests
  • knitr * suggests
  • lmtest * suggests
  • mvtnorm * suggests
  • parallel * suggests
  • rmarkdown * suggests
  • testthat * suggests
  • usethis * suggests