Skip to content
Snippets Groups Projects
Commit a9c53af3 authored by Vincent  LAVILLE's avatar Vincent LAVILLE
Browse files

NEW README

parent a937fcda
No related branches found
No related tags found
No related merge requests found
...@@ -2,3 +2,4 @@ ...@@ -2,3 +2,4 @@
.Rhistory .Rhistory
.RData .RData
.Ruserdata .Ruserdata
VarExp.Rproj
...@@ -7,12 +7,16 @@ knitr::opts_chunk$set(echo = TRUE) ...@@ -7,12 +7,16 @@ knitr::opts_chunk$set(echo = TRUE)
The R package **VarExp** provides functions for the estimating of the percentage of phenotypic variance explained by genetic effects, interaction effects or jointly by both effects. This suite of functions are useful for meta-analysis designs where pooling individual genotype data is challenging. A pre-print article related to this work is available [here](bioRkiv link) The R package **VarExp** provides functions for the estimating of the percentage of phenotypic variance explained by genetic effects, interaction effects or jointly by both effects. This suite of functions are useful for meta-analysis designs where pooling individual genotype data is challenging. A pre-print article related to this work is available [here](bioRkiv link)
## Prerequisite
Library [**Rcurl**](https://cran.r-project.org/web/packages/RCurl/index.html) is required to run **VarExp**
## Installation ## Installation
Install the development version of **VarExp** from GitHub by typing: For now, **VarExp** can be installed only using package source. In R, after setting your working directory to *VarExp_0.1.0.tar.gz* location, type:
```r ```r
devtools::install_github("vincela/VarExp") install.packages("VarExp_0.1.0.tar.gz", repos = NULL, type = "source")
``` ```
## Input format ## Input format
...@@ -55,7 +59,7 @@ Data used in this tutorial are included in the ***VarExp*** package. ...@@ -55,7 +59,7 @@ Data used in this tutorial are included in the ***VarExp*** package.
```r ```r
# Load the package # Load the package
library(VarExp2) library(VarExp)
# Load the meta-analysis summary statistics file # Load the meta-analysis summary statistics file
data(GWAS) data(GWAS)
......
...@@ -122,10 +122,14 @@ $(document).ready(function () { ...@@ -122,10 +122,14 @@ $(document).ready(function () {
<div id="varexp" class="section level1"> <div id="varexp" class="section level1">
<h1>VarExp</h1> <h1>VarExp</h1>
<p>The R package <strong>VarExp</strong> provides functions for the estimating of the percentage of phenotypic variance explained by genetic effects, interaction effects or jointly by both effects. This suite of functions are useful for meta-analysis designs where pooling individual genotype data is challenging. A pre-print article related to this work is available <a href="bioRkiv%20link">here</a></p> <p>The R package <strong>VarExp</strong> provides functions for the estimating of the percentage of phenotypic variance explained by genetic effects, interaction effects or jointly by both effects. This suite of functions are useful for meta-analysis designs where pooling individual genotype data is challenging. A pre-print article related to this work is available <a href="bioRkiv%20link">here</a></p>
<div id="prerequisite" class="section level2">
<h2>Prerequisite</h2>
<p>Library <a href="https://cran.r-project.org/web/packages/RCurl/index.html"><strong>Rcurl</strong></a> is required to run <strong>VarExp</strong></p>
</div>
<div id="installation" class="section level2"> <div id="installation" class="section level2">
<h2>Installation</h2> <h2>Installation</h2>
<p>Install the development version of <strong>VarExp</strong> from GitHub by typing:</p> <p>For now, <strong>VarExp</strong> can be installed only using package source. In R, after setting your working directory to <em>VarExp_0.1.0.tar.gz</em> location, type:</p>
<pre class="r"><code>devtools::install_github(&quot;vincela/VarExp&quot;)</code></pre> <pre class="r"><code>install.packages(&quot;VarExp_0.1.0.tar.gz&quot;, repos = NULL, type = &quot;source&quot;)</code></pre>
</div> </div>
<div id="input-format" class="section level2"> <div id="input-format" class="section level2">
<h2>Input format</h2> <h2>Input format</h2>
...@@ -176,7 +180,7 @@ $(document).ready(function () { ...@@ -176,7 +180,7 @@ $(document).ready(function () {
<h2>Short tutorial</h2> <h2>Short tutorial</h2>
<p>Data used in this tutorial are included in the <strong><em>VarExp</em></strong> package.</p> <p>Data used in this tutorial are included in the <strong><em>VarExp</em></strong> package.</p>
<pre class="r"><code># Load the package <pre class="r"><code># Load the package
library(VarExp2) library(VarExp)
   
# Load the meta-analysis summary statistics file # Load the meta-analysis summary statistics file
data(GWAS) data(GWAS)
...@@ -211,7 +215,11 @@ fracJ &lt;- calculateVarFrac(std_betaG, std_betaI, C, parsY[2], sum(COHORT$PH ...@@ -211,7 +215,11 @@ fracJ &lt;- calculateVarFrac(std_betaG, std_betaI, C, parsY[2], sum(COHORT$PH
</div> </div>
<div id="code-of-conduct" class="section level2"> <div id="code-of-conduct" class="section level2">
<h2>Code of conduct</h2> <h2>Code of conduct</h2>
<p>Please note that this project is released with a <a href="link%20to%20file">Contributor Code of Conduct</a>. By participating in this project you agree to abide by its terms.</p> <p>Please note that this project is released with a <a href="https://github.com/vincenla/VarExp/code-of-conduct.md">Contributor Code of Conduct</a>. By participating in this project you agree to abide by its terms.</p>
</div>
<div id="license" class="section level2">
<h2>License</h2>
<p>This project is licensed under the MIT License - see the <a href="https://github.com/vincentla/VarExp/">LICENSE.md</a> file for details</p>
</div> </div>
</div> </div>
   
......
...@@ -4,7 +4,7 @@ ...@@ -4,7 +4,7 @@
\name{COHORT} \name{COHORT}
\alias{COHORT} \alias{COHORT}
\title{Example of cohort description input file} \title{Example of cohort description input file}
\format{An object of class \code{data.frame} with 5 rows and 7 columns.} \format{An object of class \code{data.frame} with 5 rows and 6 columns.}
\usage{ \usage{
COHORT COHORT
} }
......
...@@ -4,7 +4,7 @@ ...@@ -4,7 +4,7 @@
\name{GWAS} \name{GWAS}
\alias{GWAS} \alias{GWAS}
\title{Example of GWAS result input file} \title{Example of GWAS result input file}
\format{An object of class \code{data.frame} with 15 rows and 13 columns.} \format{An object of class \code{data.frame} with 10 rows and 7 columns.}
\usage{ \usage{
GWAS GWAS
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment