eve

Evolution emulator, phylogenetically dependent.

https://github.com/evolandeco/eve

Science Score: 54.0%

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

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

Repository

Evolution emulator, phylogenetically dependent.

Basic Info
  • Host: GitHub
  • Owner: EvoLandEco
  • License: gpl-3.0
  • Language: R
  • Default Branch: main
  • Homepage:
  • Size: 818 KB
Statistics
  • Stars: 0
  • Watchers: 1
  • Forks: 0
  • Open Issues: 0
  • Releases: 1
Created over 4 years ago · Last pushed over 1 year ago
Metadata Files
Readme License Citation

README.Rmd

---
output: github_document
editor_options: 
  chunk_output_type: console
---



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

```{r, echo=FALSE, message=FALSE, warning=FALSE}
library(eve)
```

# eve 

[![CRAN
status](https://www.r-pkg.org/badges/version/eve)](https://cran.r-project.org/package=eve)
[![R build
status](https://github.com/DEvoLandEco/eve/workflows/R-CMD-check/badge.svg)](https://github.com/EvoLandEco/eve/actions)
[![DOI](https://zenodo.org/badge/382378337.svg)](https://zenodo.org/badge/latestdoi/382378337)

## Overview

The package `eve` is an evolution emulator which provides pipelines to
do phylogenetic-diversity-dependent simulation, analyse outputs and
generate publication-ready plots and statistics conveniently. 

`eve` supports mainly three different scenarios, the species diversification process is regulated by ***phylogenetic diversity (PD)*** or ***evolutionary distinctiveness (ED)*** or ***nearest neighbor distance (NND)*** respectively.

`eve` supports parallel computing , this feature is implemented with [furrr](https://furrr.futureverse.org/), read through its documentation before using this feature. Note that parralel computing may use a huge amount of memory and may have large overhead.

## Installation

You can install the developmental version from
[GitHub](https://github.com/) by running the following commands in R console:

``` r
# install.packages("remotes")
remotes::install_github("EvoLandEco/eve")
```


## Example


```{r combo}
library(eve)

# make a combo of parameter sets
combo <- edd_combo_maker(
  la = c(0.5, 0.8),
  mu = c(0.1, 0.2),
  beta_n = c(-0.001, 0),
  beta_phi = c(-0.001, 0.001),
  gamma_n = c(-0.001, 0.001),
  gamma_phi = c(-0.001, 0.001),
  age = 5,
  model = "dsde2",
  metric = c("ed"),
  offset = "none"
)

# have a look at the combo
combo[1:3]
```

All the unique and possible combinations of parameters will be created automatically. 

`eve` supports parallel simulation, the following example shows how to do an 8-session parallel EDD simulation given the combo, with 3 replications for each parameter set . The result will be saved to `/result/example`. If `name` is not specified, a folder will be created according to time and date at the moment.

```{r edd_go}
# result will be save as .RData file
# edd_go(
#   combo = combo,
#   nrep = 3,
#   name = "example",
#   strategy = future::multisession,
#   workers = 8
# )
```

`edd_go` will not return any object unless you set `name = "no_save"`.

```{r}
# set name = "no_save" if you want to assign the output to a variable
# output <- edd_go(
#   combo = combo,
#   nrep = 3,
#   name = "no_save",
#   strategy = future::multisession,
#   workers = 8
# )

# examine the result
# output[[1]]
```

Sequential simulation is also possible:

```{r sequential}
# edd <- edd_go(
#     combo = combo,
#     nrep = 3,
#     name = "example2",
#     strategy = future::sequential,
#     workers = 8
#   )
```

Owner

  • Name: Tianjian
  • Login: EvoLandEco
  • Kind: user
  • Location: Groningen, the Netherlands
  • Company: University of Groningen @tece-lab

PhD student at RUG in Theoretical Ecology

Citation (CITATION.cff)

cff-version: 1.0.0
message: "If you use this software, please cite it as below."
authors:
  - family-names: Qin
    given-names: Tianjian
    orcid: https://orcid.org/0000-0003-2540-1778
title: "eve - Evolution emulator, phylogenetically dependent"
version: 0.1.0
doi: 10.5281/zenodo.8475
date-released: 2023-05-31

GitHub Events

Total
  • Issues event: 1
  • Issue comment event: 1
Last Year
  • Issues event: 1
  • Issue comment event: 1

Issues and Pull Requests

Last synced: 11 months ago

All Time
  • Total issues: 1
  • Total pull requests: 7
  • Average time to close issues: almost 3 years
  • Average time to close pull requests: 1 minute
  • Total issue authors: 1
  • Total pull request authors: 1
  • Average comments per issue: 1.0
  • Average comments per pull request: 0.0
  • Merged pull requests: 7
  • 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
  • EvoLandEco (1)
Pull Request Authors
  • EvoLandEco (7)
Top Labels
Issue Labels
Pull Request Labels

Dependencies

.github/workflows/R-CMD-check.yaml actions
  • actions/checkout v2 composite
  • r-lib/actions/check-r-package v1 composite
  • r-lib/actions/setup-r v1 composite
  • r-lib/actions/setup-r-dependencies v1 composite
.github/workflows/check-standard.yaml actions
  • actions/checkout v2 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/test-coverage.yaml actions
  • actions/checkout v2 composite
  • r-lib/actions/setup-r v1 composite
  • r-lib/actions/setup-r-dependencies v1 composite
DESCRIPTION cran
  • R >= 3.5.0 depends
  • RCurl * imports
  • Rfast * imports
  • ape * imports
  • dplyr * imports
  • furrr * imports
  • future * imports
  • geiger * imports
  • ggplot2 * imports
  • ggtext * imports
  • ggtree * imports
  • gtools * imports
  • magrittr * imports
  • nLTT * imports
  • patchwork * imports
  • phylobase * imports
  • progressr * imports
  • purrr * imports
  • readr * imports
  • stringr * imports
  • tibble * imports
  • tidyr * imports
  • treestats * imports
  • viridis * imports
  • covr * suggests