-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathREADME.Rmd
76 lines (56 loc) · 2.52 KB
/
README.Rmd
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
---
output: github_document
---
<!-- README.md is generated from README.Rmd. Please edit that file -->
```{r, include = FALSE}
knitr::opts_chunk$set(
collapse = TRUE,
comment = "#>",
fig.path = "man/figures/README-",
out.width = "100%"
)
```
# demes
<!-- badges: start -->
<!-- badges: end -->
_demes_ is an R library for parsing and validation of population genetic models
in the [Demes](https://academic.oup.com/genetics/article/222/3/iyac131/6730747)
file format, making such models easy to inspect in R and leverage them for
simulation of genomic data using downstream software according to their
preferences.
In a sense, the _demes_ package is intended as an R equivalent of the official
[Python module](https://popsim-consortium.github.io/demes-docs/latest/index.html).
Its output is a "low-level" representation of a model encoded in a Demes YAML
file that is an entirely unambiguous and portable and can be used by many different
simulation frameworks as input. Thus, we can see part of the role of this package
as *compiling* the high-level description of a model into the corresponding
"low-level" description at a level of standard R data structures.
A proof-of-concept implementation of _Demes_ for simulation using the
[_slendr_](https://github.com/bodkan/slendr/) R package is in progress.
This package is being developed by @IsabelMarleen as part of her Master's student
project in the [Racimo group](https://www.racimolab.net) at the Globe Institute
at the University of Copenhagen. If you have feature requests or other comments, please open an issue.
## Installation
You can install the development version of demes from [GitHub](https://github.com/) with:
``` r
# install.packages("devtools")
devtools::install_github("RacimoLab/demes-r")
```
<!--
## Example
This is a basic example which shows you how to solve a common problem:
```{r example}
# library(demes)
## basic example code
```
What is special about using `README.Rmd` instead of just `README.md`? You can include R chunks like so:
```{r cars}
# summary(cars)
```
You'll still need to render `README.Rmd` regularly, to keep `README.md` up-to-date. `devtools::build_readme()` is handy for this. You could also use GitHub Actions to re-render `README.Rmd` every time you push. An example workflow can be found here: <https://github.com/r-lib/actions/tree/v1/examples>.
You can also embed plots, for example:
```{r pressure, echo = FALSE}
# plot(pressure)
```
In that case, don't forget to commit and push the resulting figure files, so they display on GitHub and CRAN.
-->