43 |
44 | ## Installation
45 |
46 | The current github version of *PhenotypeSimulator* is 0.3.4 and can be
47 | installed via:
48 |
49 | ``` r
50 | library(devtools)
51 | install_github("HannahVMeyer/PhenotypeSimulator")
52 | ```
53 |
54 | The current CRAN version of *PhenotypeSimulator* is 0.3.4 and can be
55 | installed via:
56 |
57 | ``` r
58 | install.packages("PhenotypeSimulator")
59 | ```
60 |
61 | A log of version changes can be found
62 | [here](https://github.com/HannahVMeyer/PhenotypeSimulator/blob/master/NEWS.md).
63 |
64 | ## Citation
65 |
66 | Meyer, HV & Birney E (2018) [PhenotypeSimulator: A comprehensive
67 | framework for simulating multi-trait, multi-locus genotype to phenotype
68 | relationships](https://doi.org/10.1093/bioinformatics/bty197),
69 | *Bioinformatics*, 34(17):2951–2956
70 |
--------------------------------------------------------------------------------
/README.Rmd:
--------------------------------------------------------------------------------
1 | ---
2 | output: github_document
3 | ---
4 |
5 |
6 |
7 | ```{r, echo = FALSE}
8 | knitr::opts_chunk$set(
9 | collapse = TRUE,
10 | comment = "#>",
11 | fig.path = "README-"
12 | )
13 | ```
14 |
15 | [](https://cran.r-project.org/package=PhenotypeSimulator)
16 | [](https://travis-ci.org/HannahVMeyer/PhenotypeSimulator)
17 | [](https://opensource.org/licenses/MIT)
18 | [](https://CRAN.R-project.org/package=PhenotypeSimulator)
19 |
20 |
21 | ## PhenotypeSimulator
22 |
23 | **PhenotypeSimulator** allows for the flexible simulation of phenotypes from
24 | different genetic and non-genetic (noise) components.
25 |
26 | In quantitative genetics, genotype to phenotype mapping is commonly realised by
27 | fitting a linear model to the genotype as the explanatory variable and the
28 | phenotype as the response variable. Other explanatory variable such as
29 | additional sample measures (e.g. age, height, weight) or batch effects can also
30 | be included. For linear mixed models, in addition to the fixed effects of the
31 | genotype and the covariates, different random effect components can be included,
32 | accounting for population structure in the study cohort or environmental
33 | effects. The application of linear and linear mixed models in quantitative
34 | genetics ranges from genetic studies in model organism such as yeast and
35 | *Arabidopsis thaliana* to human molecular, morphological or imaging derived
36 | traits. Developing new methods for increasing numbers of sample cohorts,
37 | phenotypic measurements or complexity of phenotypes to analyse, often requires
38 | the simulation of datasets with a specific underlying phenotype structure.
39 |
40 | **PhenotypeSimulator** allows for the simulation of complex phenotypes under
41 | different models, including genetic variant effects and infinitesimal genetic
42 | effects (reflecting population structure) as well as correlated, non-genetic
43 | covariates and observational noise effects. Different phenotypic effects can be
44 | combined into a final phenotype while controlling for the proportion of variance
45 | explained by each of the components. For each component, the number of
46 | variables, their distribution and the design of their effect across traits can
47 | be customised.
48 |
49 | ## Installation
50 |
51 | Full documentation of **PhenotypeSimulator** is available at
52 | https://HannahVMeyer.github.io/PhenotypeSimulator/.
53 |
54 | The current github version of *PhenotypeSimulator* is 0.3.4 and can be
55 | installed via
56 |
57 | ```{r gh-installation, eval = FALSE}
58 | # install.packages("devtools")
59 | devtools::install_github("HannahVMeyer/PhenotypeSimulator")
60 | ```
61 |
62 | The current CRAN version of *PhenotypeSimulator* is 0.3.4 and can be installed
63 | via:
64 | ```{r, eval=FALSE}
65 | install.packages("PhenotypeSimulator")
66 | ```
67 |
68 | A log of version changes can be found [here](https://github.com/HannahVMeyer/PhenotypeSimulator/blob/master/NEWS.md).
69 |
70 | ## Citation
71 | Meyer, HV & Birney E (2018) [PhenotypeSimulator: A comprehensive framework for simulating multi-trait, multi-locus genotype to phenotype relationships](https://doi.org/10.1093/bioinformatics/bty197), *Bioinformatics*, 34(17):2951–2956
72 |
--------------------------------------------------------------------------------
/INDEX.Rmd:
--------------------------------------------------------------------------------
1 | ---
2 | output: github_document
3 | ---
4 |
5 |
6 |
7 | ```{r, echo = FALSE}
8 | knitr::opts_chunk$set(
9 | collapse = TRUE,
10 | comment = "#>",
11 | fig.path = "README-"
12 | )
13 | ```
14 | [](https://cran.r-project.org/package=PhenotypeSimulator)
15 | [](https://travis-ci.org/HannahVMeyer/PhenotypeSimulator)
16 | [](https://opensource.org/licenses/MIT)
17 | [](http://cran.rstudio.com/web/packages/PhenotypeSimulator/index.html)
18 |
19 |
20 | ## PhenotypeSimulator
21 |
22 | **PhenotypeSimulator** allows for the flexible simulation of phenotypes from
23 | different genetic and non-genetic (noise) components.
24 |
25 | In quantitative genetics, genotype to phenotype mapping is commonly realised by
26 | fitting a linear model to the genotype as the explanatory variable and the
27 | phenotype as the response variable. Other explanatory variable such as
28 | additional sample measures (e.g. age, height, weight) or batch effects can also
29 | be included. For linear mixed models, in addition to the fixed effects of the
30 | genotype and the covariates, different random effect components can be included,
31 | accounting for population structure in the study cohort or environmental
32 | effects. The application of linear and linear mixed models in quantitative
33 | genetics ranges from genetic studies in model organism such as yeast and
34 | *Arabidopsis thaliana* to human molecular, morphological or imaging derived
35 | traits. Developing new methods for increasing numbers of sample cohorts,
36 | phenotypic measurements or complexity of phenotypes to analyse, often requires
37 | the simulation of datasets with a specific underlying phenotype structure.
38 |
39 | **PhenotypeSimulator** allows for the simulation of complex phenotypes under
40 | different models, including genetic variant effects and infinitesimal genetic
41 | effects (reflecting population structure) as well as correlated, non-genetic
42 | covariates and observational noise effects. Different phenotypic effects can be
43 | combined into a final phenotype while controlling for the proportion of variance
44 | explained by each of the components. For each component, the number of
45 | variables, their distribution and the design of their effect across traits can
46 | be customised.
47 |
48 |
49 | ```{r, echo = FALSE, out.width='100%'}
50 | knitr::include_graphics("docs/simulatedPhenotypes.png")
51 | ```
52 |
53 |
54 | ## Installation
55 |
56 | The current github version of *PhenotypeSimulator* is 0.3.4 and can be
57 | installed via:
58 | ```{r, eval=FALSE}
59 | library(devtools)
60 | install_github("HannahVMeyer/PhenotypeSimulator")
61 | ```
62 | The current CRAN version of *PhenotypeSimulator* is 0.3.4 and can be installed
63 | via:
64 | ```{r, eval=FALSE}
65 | install.packages("PhenotypeSimulator")
66 | ```
67 |
68 | A log of version changes can be found [here](https://github.com/HannahVMeyer/PhenotypeSimulator/blob/master/NEWS.md).
69 |
70 | ## Citation
71 |
72 | Meyer, HV & Birney E (2018) [PhenotypeSimulator: A comprehensive framework for simulating multi-trait, multi-locus genotype to phenotype relationships](https://doi.org/10.1093/bioinformatics/bty197), *Bioinformatics*, 34(17):2951–2956
73 |
74 |
75 |
76 |
77 |
78 |
79 |
80 |
81 |
--------------------------------------------------------------------------------
/docs/pkgdown.js:
--------------------------------------------------------------------------------
1 | /* http://gregfranko.com/blog/jquery-best-practices/ */
2 | (function($) {
3 | $(function() {
4 |
5 | $('.navbar-fixed-top').headroom();
6 |
7 | $('body').css('padding-top', $('.navbar').height() + 10);
8 | $(window).resize(function(){
9 | $('body').css('padding-top', $('.navbar').height() + 10);
10 | });
11 |
12 | $('[data-toggle="tooltip"]').tooltip();
13 |
14 | var cur_path = paths(location.pathname);
15 | var links = $("#navbar ul li a");
16 | var max_length = -1;
17 | var pos = -1;
18 | for (var i = 0; i < links.length; i++) {
19 | if (links[i].getAttribute("href") === "#")
20 | continue;
21 | // Ignore external links
22 | if (links[i].host !== location.host)
23 | continue;
24 |
25 | var nav_path = paths(links[i].pathname);
26 |
27 | var length = prefix_length(nav_path, cur_path);
28 | if (length > max_length) {
29 | max_length = length;
30 | pos = i;
31 | }
32 | }
33 |
34 | // Add class to parent YEAR: 2017 151 | COPYRIGHT HOLDER: Hannah Verena Meyer 152 |153 | 154 |
R/PhenotypeSimulator.R
154 | PhenotypeSimulator.RdPhenotypeSimulator: A package for simulating phenotypes from different 159 | genetic and noise components
160 |R/utilityFunctions.R
150 | addNonNulls.RdAdd all non-NULL elements of list.
155 |addNonNulls(compList)158 | 159 |
| compList | 164 |List of numeric matrices or data.frames of the equal 165 | dimensions. |
166 |
|---|
Matrix or data.frame containing sum of all list elements where
172 | is.null is FALSE.
Scan file for specific line numbers
155 |read_lines(filename, lines, sep = "\n")158 | 159 |
| filename | 164 |/path/to/chromosomefile [string] |
165 |
|---|---|
| lines | 168 |vector of line numbers [integer] to be read |
169 |
| sep | 172 |[string] end-of-line delimiter |
173 |