planet
For inferring ancestry, gestational age, cell type proportions, and preeclampsia status from placental DNA methylation array data
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
- Host: GitHub
- Owner: wvictor14
- Language: R
- Default Branch: main
- Homepage: http://victoryuan.com/planet/
- Size: 6.71 MB
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
[](https://doi.org/10.5281/zenodo.4321633) `r badger::badge_last_commit("wvictor14/planet")`
[](https://www.tidyverse.org/lifecycle/#stable)
[](https://github.com/wvictor14/planet/actions/workflows/R-CMD-check.yaml)
[](https://bioconductor.org/checkResults/release/bioc-LATEST/planet)
[](https://bioconductor.org/checkResults/devel/bioc-LATEST/planet)
[](http://bioconductor.org/packages/stats/bioc/planet/)
[](https://bioconductor.org/packages/release/bioc/html/planet.html#since)
[](http://bioconductor.org/checkResults/devel/bioc-LATEST/planet/)
[](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
- Repositories: 4
- Profile: https://github.com/wvictor14
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
Top Committers
| Name | 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)
sph.cuny.edu: 1
bcricwh.lan: 1
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
- Homepage: http://github.com/wvictor14/planet http://victoryuan.com/planet/
- Documentation: https://bioconductor.org/packages/release/bioc/vignettes/planet/inst/doc/planet.pdf
- License: GPL-2
-
Latest release: 1.16.0
published 9 months ago
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