admix

Estimation, hypothesis tests and clustering in admixture models

https://github.com/xaviermilhaud/admix-rpackage

Science Score: 26.0%

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

  • CITATION.cff file
  • codemeta.json file
    Found codemeta.json file
  • .zenodo.json file
    Found .zenodo.json file
  • DOI references
  • Academic publication links
  • Academic email domains
  • Institutional organization owner
  • JOSS paper metadata
  • Scientific vocabulary similarity
    Low similarity (15.6%) to scientific vocabulary
Last synced: 10 months ago · JSON representation

Repository

Estimation, hypothesis tests and clustering in admixture models

Basic Info
  • Host: GitHub
  • Owner: XavierMilhaud
  • License: gpl-3.0
  • Language: R
  • Default Branch: main
  • Size: 36.3 MB
Statistics
  • Stars: 3
  • Watchers: 0
  • Forks: 0
  • Open Issues: 0
  • Releases: 0
Created about 5 years ago · Last pushed 10 months ago
Metadata Files
Readme License

README.Rmd

---
output: github_document
---



```{r, include = FALSE}
knitr::opts_chunk$set(
  collapse = TRUE,
  comment = "#>",
  fig.path = "man/figures/README-",
  out.width = "100%"
)
```


# Welcome to R package admix


[![R-CMD-check](https://github.com/XavierMilhaud/admix-Rpackage/actions/workflows/R-CMD-check.yaml/badge.svg)](https://github.com/XavierMilhaud/admix-Rpackage/actions/workflows/R-CMD-check.yaml)
[![test-coverage](https://github.com/XavierMilhaud/admix-Rpackage/actions/workflows/test-coverage.yaml/badge.svg)](https://github.com/XavierMilhaud/admix-Rpackage/actions/workflows/test-coverage.yaml)
[![pkgdown](https://github.com/XavierMilhaud/admix-Rpackage/actions/workflows/pkgdown.yaml/badge.svg)](https://github.com/XavierMilhaud/admix-Rpackage/actions/workflows/pkgdown.yaml)
[![pages-build-deployment](https://github.com/XavierMilhaud/admix-Rpackage/actions/workflows/pages/pages-build-deployment/badge.svg)](https://github.com/XavierMilhaud/admix-Rpackage/actions/workflows/pages/pages-build-deployment)

The goal of admix is to provide code for estimation, hypothesis testing and clustering methods in admixture models. 

We remind that an admixture model has the following cumulative distribution function (cdf)
$$
  L(x) = pF(x) + (1-p)G(x), \qquad x \in \mathbb{R},
$$

where $G$ is a perfectly known cdf, and $p$ and $F$ are unknown. 

The cdf $F$ relates to the contamination phenomenon that is added to the well-known signal $G$, with proportion $p$.

The proportion of the unknown component in the two-component mixture model can be easily estimated under weak nonparametric assumptions on the related distribution. The decontaminated version of this unknown component distribution can then be tested against some other specified distribution (included another decontaminated unknown component). Finally, clustering of $K$ populations is made possible, based on hypothesis tests that compare unknown component distributions. The package is suited to one-sample as well as multi-samples analysis. 

# Installation


You can install the released version of admix from [Github](https://github.com/XavierMilhaud/admix-Rpackage) with:

``` r
#once on CRAN with : install.package("admix")
# from now on:
remotes::install_git("git@github.com:XavierMilhaud/admix.git", build_manual = TRUE, build_vignettes = TRUE)
```

The optional argument build_vignettes can be set to TRUE to get vignettes that help to understand the functionalities of the package.

To get some help about the functionalities of the package, do once installed:
``` r
help(package = 'admix')
```
More details can also be found through the vignettes, available in admix github-pages (see https://xaviermilhaud.github.io/admix-Rpackage/, in Menu Articles).


## Example

This is a basic example which shows you how to estimate the unknown component proportion and the localization shift parameters in an admixture model where the unknown component density is assumed to be symmetric. In practice, the cdf $L$ is given by
$$
L(x) = p F(x-\mu) + (1-p) G(x), \qquad x \in \mathbb{R},
$$
where $p$ is the unknown component weight, and $\mu$ is the localization shift parameter of the unknown cdf $F$ with symmetric density.

The estimation would be made through the following commands:
```{r example}
library(admix)
## Simulate mixture data:
mixt1 <- twoComp_mixt(n = 450, weight = 0.4,
                      comp.dist = list("norm", "norm"),
                      comp.param = list(list("mean" = -2, "sd" = 0.5),
                                        list("mean" = 0, "sd" = 1)))
data1 <- getmixtData(mixt1)
## Define the admixture models:
admixMod1 <- admix_model(knownComp_dist = mixt1$comp.dist[[2]],
                         knownComp_param = mixt1$comp.param[[2]])
## Estimation step:
admix_estim(samples = list(data1),
            admixMod = list(admixMod1),
            est.method = 'BVdk', sym.f = TRUE)
```


Owner

  • Login: XavierMilhaud
  • Kind: user
  • Location: France
  • Company: University of Aix-Marseille

I am a researcher in Applied Mathematics, Statistics and Probability

GitHub Events

Total
  • Watch event: 2
  • Push event: 76
Last Year
  • Watch event: 2
  • Push event: 76

Packages

  • Total packages: 1
  • Total downloads:
    • cran 339 last-month
  • Total dependent packages: 0
  • Total dependent repositories: 0
  • Total versions: 14
  • Total maintainers: 1
cran.r-project.org: admix

Package Admix for Admixture (aka Contamination) Models

  • Versions: 14
  • Dependent Packages: 0
  • Dependent Repositories: 0
  • Downloads: 339 Last month
Rankings
Forks count: 28.8%
Dependent packages count: 29.8%
Stargazers count: 31.7%
Average: 33.1%
Dependent repos count: 35.5%
Downloads: 39.5%
Last synced: 10 months ago

Dependencies

DESCRIPTION cran
  • R >= 2.10 depends
  • Iso * imports
  • MASS * imports
  • Rcpp * imports
  • base * imports
  • fdrtool * imports
  • graphics * imports
  • latex2exp * imports
  • methods * imports
  • orthopolynom * imports
  • pracma * imports
  • stats * imports
  • utils * imports
  • doParallel * suggests
  • evd * suggests
  • flexsurv * suggests
  • foreach * suggests
  • gridExtra * suggests
  • knitr * suggests
  • lattice * suggests
  • logitnorm * suggests
  • markdown * suggests
  • plyr * suggests
  • reshape2 * suggests
  • rmarkdown * suggests
  • rmutil * suggests
  • testthat >= 3.0.0 suggests
.github/workflows/R-CMD-check.yaml actions
  • actions/checkout v3 composite
  • r-lib/actions/check-r-package v2 composite
  • r-lib/actions/setup-pandoc v2 composite
  • r-lib/actions/setup-r v2 composite
  • r-lib/actions/setup-r-dependencies v2 composite
.github/workflows/check-standard.yaml actions
  • actions/checkout v3 composite
  • r-lib/actions/check-r-package v2 composite
  • r-lib/actions/setup-pandoc v2 composite
  • r-lib/actions/setup-r v2 composite
  • r-lib/actions/setup-r-dependencies v2 composite
.github/workflows/pkgdown.yaml actions
  • JamesIves/github-pages-deploy-action v4.4.1 composite
  • actions/checkout v3 composite
  • r-lib/actions/setup-pandoc v2 composite
  • r-lib/actions/setup-r v2 composite
  • r-lib/actions/setup-r-dependencies v2 composite
.github/workflows/test-coverage.yaml actions
  • actions/checkout v3 composite
  • actions/upload-artifact v3 composite
  • r-lib/actions/setup-r v2 composite
  • r-lib/actions/setup-r-dependencies v2 composite
.github/workflows/rhub.yaml actions
  • r-hub/actions/checkout v1 composite
  • r-hub/actions/platform-info v1 composite
  • r-hub/actions/run-check v1 composite
  • r-hub/actions/setup v1 composite
  • r-hub/actions/setup-deps v1 composite
  • r-hub/actions/setup-r v1 composite