planet

For inferring ancestry, gestational age, cell type proportions, and preeclampsia status from placental DNA methylation array data

https://github.com/wvictor14/planet

Science Score: 46.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
  • DOI references
    Found 7 DOI reference(s) in README
  • Academic publication links
    Links to: medrxiv.org, ncbi.nlm.nih.gov, zenodo.org
  • Committers with academic emails
    1 of 6 committers (16.7%) from academic institutions
  • Institutional organization owner
  • JOSS paper metadata
  • Scientific vocabulary similarity
    Low similarity (15.3%) to scientific vocabulary

Keywords

ancestry dna-methylation-data epigenetics genetics inference machine-learning placenta

Keywords from Contributors

bioconductor-package genomics gene grna-sequence ontology immune-repertoire sequencing bioconductor proteomics u24ca289073
Last synced: 6 months ago · JSON representation

Repository

For inferring ancestry, gestational age, cell type proportions, and preeclampsia status from placental DNA methylation array data

Basic Info
Statistics
  • Stars: 4
  • Watchers: 0
  • Forks: 1
  • Open Issues: 0
  • Releases: 0
Topics
ancestry dna-methylation-data epigenetics genetics inference machine-learning placenta
Created over 7 years ago · Last pushed about 1 year ago
Metadata Files
Readme Changelog

README.Rmd

---
output: 
  github_document:
editor_options: 
  chunk_output_type: console
  markdown: 
    wrap: 80
---

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

# planet 


[![DOI](https://zenodo.org/badge/DOI/10.5281/zenodo.4321633.svg)](https://doi.org/10.5281/zenodo.4321633) `r badger::badge_last_commit("wvictor14/planet")`
[![Lifecycle: stable](https://img.shields.io/badge/lifecycle-stable-brightgreen.svg)](https://www.tidyverse.org/lifecycle/#stable)
[![R-CMD-check](https://github.com/wvictor14/planet/actions/workflows/R-CMD-check.yaml/badge.svg)](https://github.com/wvictor14/planet/actions/workflows/R-CMD-check.yaml)

[![Bioc release status](http://www.bioconductor.org/shields/build/release/bioc/planet.svg)](https://bioconductor.org/checkResults/release/bioc-LATEST/planet)
[![Bioc devel status](http://www.bioconductor.org/shields/build/devel/bioc/planet.svg)](https://bioconductor.org/checkResults/devel/bioc-LATEST/planet)
[![Bioc downloads rank](https://bioconductor.org/shields/downloads/release/planet.svg)](http://bioconductor.org/packages/stats/bioc/planet/)
[![Bioc history](https://bioconductor.org/shields/years-in-bioc/planet.svg)](https://bioconductor.org/packages/release/bioc/html/planet.html#since)
[![Bioc last commit](https://bioconductor.org/shields/lastcommit/devel/bioc/planet.svg)](http://bioconductor.org/checkResults/devel/bioc-LATEST/planet/)
[![Bioc dependencies](https://bioconductor.org/shields/dependencies/release/planet.svg)](https://bioconductor.org/packages/release/bioc/html/planet.html#since)


`planet` is an R package for inferring **ethnicity** [(1)](#references), **gestational age** 
[(2)](#references), **cell composition** [(3)](#references), and **preeclampsia** [(4)](#references), 
from placental DNA methylation data. 

See full documentation at [victoryuan.com/planet](https://victoryuan.com/planet)

### Installation

Latest Bioconductor release

```{r eval = FALSE}
if(!requireNamespace("BiocManager", quietly = TRUE))
    install.packages("BiocManager")
BiocManager::install("planet")
```

Or the development version of `planet`:

```{r eval = FALSE}
devtools::install_github('wvictor14/planet')
```

### Usage

See [vignettes](https://victor.rbind.io/planet/articles) for more detailed usage.

#### Example Data

All functions in this package take as input DNAm data the 450k and EPIC DNAm microarray. For best performance I suggest providing unfiltered data normalized with noob and BMIQ. A processed example dataset, `plBetas`, is provided to show the format that this data should be in. The output of all `planet` functions is a `data.frame`.

A quick example of each major function is illustrated with this example data:

```{r, message = F, warning = F}
library(minfi)
library(planet)

#load example data
data(plBetas)
data(plPhenoData) # sample information
```

#### Predict Ethnicity

```{r}
predictEthnicity(plBetas) |>
  head()
```

#### Predict Gestational Age

There are 3 gestational age clocks for placental DNA methylation data from Lee
Y. et al. 2019 (2). To use a specific one, we can use the `type` argument in `predictAge`:

```{r predictAge, dpi = 200}
predictAge(plBetas, type = 'RPC') |>
  head()
```

#### Predict Cell Composition

Reference data to infer cell composition on placental villi DNAm samples (3) can be used with cell deconvolution from minfi or EpiDISH. These are provided in this package as `plCellCpGsThird` and `plCellCpGsFirst` for third trimester (term) and first trimester samples, respectively.

```{r}
data('plCellCpGsThird')

minfi:::projectCellType(
  
  # subset your data to cell cpgs
  plBetas[rownames(plCellCpGsThird),], 
  
  # input the reference cpg matrix
  plCellCpGsThird,
  
  lessThanOne = FALSE) |>
  
  head()
```

#### Predict Preeclampsia

```{r}
# download the model from experimenthub
library(ExperimentHub)
eh <- ExperimentHub()
# query(eh, "eoPredData") # see data

# download BMIQ normalized 450k data for prediction
x_test <- eh[['EH8403']]
preds <- x_test |> predictPreeclampsia()
preds |>  head()
```

### References

1.  [**Yuan V**, Price EM, Del Gobbo G, Mostafavi S, Cox B, Binder AM, et al. Accurate ethnicity prediction from placental DNA methylation data. Epigenetics & Chromatin. 2019 Aug 9;12(1):51.](https://epigeneticsandchromatin.biomedcentral.com/articles/10.1186/s13072-019-0296-3)

2.  [Lee Y, Choufani S, Weksberg R, Wilson SL, **Yuan V**, et al. Placental epigenetic clocks: estimating gestational age using placental DNA methylation levels. Aging (Albany NY). 2019;11(12):4238–4253. doi:10.18632/aging.102049](https://www.ncbi.nlm.nih.gov/pmc/articles/PMC6628997/)

3. [**Yuan V**, Hui D, Yin Y, Peñaherrera MS, Beristain AG, Robinson WP. Cell-specific characterization of the placental methylome. BMC Genomics. 2021 Jan 6;22(1):6.](https://bmcgenomics.biomedcentral.com/articles/10.1186/s12864-020-07186-6)

4. [**Fernández-Boyano I**, A.M. Inkster, **V. Yuan**, W.P. Robinson medRxiv 2023 May](https://www.medrxiv.org/content/10.1101/2023.05.17.23290125v1)

Owner

  • Name: Victor Yuan
  • Login: wvictor14
  • Kind: user
  • Location: Vancouver, BC
  • Company: Robinson Lab

Scientist @ Sonoma Biotherapeutics PhD Genome Sciences and Technology

GitHub Events

Total
  • Issues event: 6
  • Delete event: 3
  • Issue comment event: 2
  • Push event: 20
  • Create event: 1
Last Year
  • Issues event: 6
  • Delete event: 3
  • Issue comment event: 2
  • Push event: 20
  • Create event: 1

Committers

Last synced: 6 months ago

All Time
  • Total Commits: 294
  • Total Committers: 6
  • Avg Commits per committer: 49.0
  • Development Distribution Score (DDS): 0.156
Past Year
  • Commits: 24
  • Committers: 2
  • Avg Commits per committer: 12.0
  • Development Distribution Score (DDS): 0.083
Top Committers
Name Email Commits
Victor v****y@g****m 248
Victor Yuan v****n@B****N 25
J Wokaty j****y@s****u 6
Nitesh Turaga n****a@g****m 6
iciarfernandez i****z@o****m 5
J Wokaty j****y@u****m 4
Committer Domains (Top 20 + Academic)

Issues and Pull Requests

Last synced: 6 months ago

All Time
  • Total issues: 5
  • Total pull requests: 0
  • Average time to close issues: almost 2 years
  • Average time to close pull requests: N/A
  • Total issue authors: 2
  • Total pull request authors: 0
  • Average comments per issue: 1.4
  • Average comments per pull request: 0
  • Merged pull requests: 0
  • Bot issues: 0
  • Bot pull requests: 0
Past Year
  • Issues: 1
  • Pull requests: 0
  • Average time to close issues: 6 days
  • Average time to close pull requests: N/A
  • Issue authors: 1
  • Pull request authors: 0
  • Average comments per issue: 1.0
  • Average comments per pull request: 0
  • Merged pull requests: 0
  • Bot issues: 0
  • Bot pull requests: 0
Top Authors
Issue Authors
  • wvictor14 (4)
  • Finterly (1)
Pull Request Authors
  • wvictor14 (2)
Top Labels
Issue Labels
Pull Request Labels

Packages

  • Total packages: 1
  • Total downloads:
    • bioconductor 12,382 total
  • Total dependent packages: 1
  • Total dependent repositories: 0
  • Total versions: 5
  • Total maintainers: 1
bioconductor.org: planet

Placental DNA methylation analysis tools

  • Versions: 5
  • Dependent Packages: 1
  • Dependent Repositories: 0
  • Downloads: 12,382 Total
Rankings
Dependent repos count: 0.0%
Dependent packages count: 0.0%
Average: 25.8%
Downloads: 77.5%
Maintainers (1)
Last synced: 6 months ago

Dependencies

DESCRIPTION cran
  • R >= 4.0 depends
  • dplyr * imports
  • magrittr * imports
  • methods * imports
  • tibble * imports
  • EpiDISH * suggests
  • ggplot2 * suggests
  • knitr * suggests
  • minfi * suggests
  • rmarkdown * suggests
  • scales * suggests
  • testthat * suggests
  • tidyr * 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