Skip to content

Commit d78cbd2

Browse files
author
Peter Humburg
committed
fixed issues with documentation
1 parent f919572 commit d78cbd2

28 files changed

Lines changed: 305 additions & 378 deletions

mePipe/DESCRIPTION

Lines changed: 0 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -20,14 +20,3 @@ Imports:
2020
lmSupport
2121
Suggests:
2222
optparse
23-
Collate:
24-
'covariates.R'
25-
'options.R'
26-
'plotHist.R'
27-
'plotQQ.R'
28-
'runME.R'
29-
'ldStructure.R'
30-
'utils.R'
31-
'plotCov.R'
32-
'multiPeaks.R'
33-
'effectSize.R'

mePipe/NAMESPACE

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
# Generated by roxygen2 (4.0.2): do not edit by hand
2+
13
export(allCovariates)
24
export(chooseCov)
35
export(covAssoc)

mePipe/R/covariates.R

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -164,8 +164,7 @@ loadCovariates <- function(files, options = getOptions()){
164164
}
165165

166166
#' Combine two \code{SlicedData} objects
167-
#' @param x A \code{SlicedData} object
168-
#' @param y A \code{SlicedData} object
167+
#' @param ... \code{SlicedData} objects
169168
#' @return A \code{SlicedData} object containg the data from \code{x} and \code{y}
170169
#'
171170
#' @author Peter Humburg

mePipe/R/effectSize.R

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@
1212
#' @param exprOpt Options for reading of gene expression file.
1313
#' @param genoOpt Options for reading of gene expression file.
1414
#' @param covOpt Options for reading of gene expression file.
15+
#' @param ... Further arguments (currently ignored).
1516
#' @return A \code{data.frame} similar to \code{hits} with two additional columns. Column
1617
#' \code{var.explained} gives the variance explained by the linear model that was fitted for
1718
#' the SNP and column \code{effect.size} gives the variance explained by the genotype within

mePipe/R/multiPeaks.R

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,17 +8,19 @@
88
#' @param hits \code{data.frame} with SNP-gene pairs and associsted p-value,
99
#' as produced by Matrix-eQTL. Additional columns may be included. In particular,
1010
#' output from \code{getLDpairs} is accepted.
11-
#' @param pvalue P-value threshold for association between secondary SNP and
11+
#' @param p.value P-value threshold for association between secondary SNP and
1212
#' gene expression.
1313
#' @param expression Gene expression data. This can either be the file name
1414
#' or a \code{slicedData} object.
1515
#' @param genotype Genotype data. This can either be the file name
1616
#' or a \code{slicedData} object.
17-
#' @param covariat List of covariates to use. These can either be given as file names
17+
#' @param covariate List of covariates to use. These can either be given as file names
1818
#' or a \code{slicedData} objects.
1919
#' @param minFDR Minimum FDR for associations to be considered.
2020
#' @param minR Minimum R-squared at which two eSNPs will be assumed to have no independent
2121
#' effect.
22+
#' @param snppos Name of file with SNP positions.
23+
#' @param window Window size around peak SNP.
2224
#' @param geneID If this argument is provided only associations with the given
2325
#' gene are considered.
2426
#' @param exprOpt Options for reading of gene expression file.
@@ -31,7 +33,7 @@
3133
#' @export
3234
getMultiPeak <- function(hits, p.value=1e-6, expression, genotype, covariate, minFDR,
3335
minR, snppos, window, geneID, exprOpt=getOptions(), genoOpt=getOptions(),
34-
covOpt=getOptions(), output, ...){
36+
covOpt=getOptions(), ...){
3537
## only use peaks that reach significance
3638
hits <- subset(hits, FDR <= minFDR)
3739
if(!missing(geneID) && !is.null(geneID)) hits <- subset(hits, gene == geneID)

mePipe/R/runME.R

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,8 @@
2222
#' @param verbose Flag indicating whether additional progress information should be printed.
2323
#' @param qqplot Flag indicating whether a QQ plot of p-values should be generated
2424
#' rather than a histogram.
25+
#' @param cluster Logical indicating whether SGE jobs should be generated
26+
#' instead of running locally.
2527
#' @return The object returned by \code{\link[MatrixEQTL]{Matrix_eQTL_main}}
2628
#' @note Before calling this function a call to \code{sge.setDefaultOptions} has to be made.
2729
#' @author Peter Humburg

mePipe/R/utils.R

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,7 @@ loadData <- function(file, options){
8787
#' Obtain model summaries for Matrix-eQTL model
8888
#' @param expression vector of expression values
8989
#' @param genotype vector of genotypes
90-
#' @param \code{data.frame} of covariates
90+
#' @param covariates \code{data.frame} of covariates
9191
#' @return A list as produced by \code{summary.lm} with additional entry \code{pr2} giving the partial
9292
#' r^2 for all effects in the model.
9393
#'

mePipe/man/allCovariates.Rd

Lines changed: 10 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1,32 +1,28 @@
1+
% Generated by roxygen2 (4.0.2): do not edit by hand
12
\name{allCovariates}
23
\alias{allCovariates}
34
\title{Run principle component analysis of gene expression data to generate
45
table of possible covariates.}
56
\usage{
6-
allCovariates(expression, exprOpt = getOptions(), output,
7-
sep = "\t")
7+
allCovariates(expression, exprOpt = getOptions(), output, sep = "\\t")
88
}
99
\arguments{
10-
\item{expression}{Name of file containing the gene
11-
expression data.}
10+
\item{expression}{Name of file containing the gene expression data.}
1211

13-
\item{exprOpt}{Options for reading of gene expression
14-
data.}
12+
\item{exprOpt}{Options for reading of gene expression data.}
1513

16-
\item{output}{Name of file to which the principle
17-
components should be saved (optional).}
14+
\item{output}{Name of file to which the principle components should be saved (optional).}
1815

19-
\item{sep}{Character used to separate entries in output
20-
file.}
16+
\item{sep}{Character used to separate entries in output file.}
2117
}
2218
\value{
23-
\code{data.frame} with all principle components
19+
\code{data.frame} with all principle components
2420
}
2521
\description{
26-
Run principle component analysis of gene expression data
27-
to generate table of possible covariates.
22+
Run principle component analysis of gene expression data to generate
23+
table of possible covariates.
2824
}
2925
\author{
30-
Peter Humburg
26+
Peter Humburg
3127
}
3228

mePipe/man/chooseCov.Rd

Lines changed: 26 additions & 36 deletions
Original file line numberDiff line numberDiff line change
@@ -1,61 +1,51 @@
1+
% Generated by roxygen2 (4.0.2): do not edit by hand
12
\name{chooseCov}
23
\alias{chooseCov}
34
\title{Determine the optimal number of covariates.}
45
\usage{
5-
chooseCov(expression, genotype, covariate,
6-
candidates = seq(5, 50, by = 5), covThreshold = 0.01,
7-
covOpt = getOptions(), output = "covSelect",
8-
doCis = FALSE, doTrans = FALSE, ...)
6+
chooseCov(expression, genotype, covariate, candidates = seq(5, 50, by = 5),
7+
covThreshold = 0.01, covOpt = getOptions(), output = "covSelect",
8+
doCis = FALSE, doTrans = FALSE, ...)
99
}
1010
\arguments{
11-
\item{expression}{Name of file containing the gene
12-
expression data.}
11+
\item{expression}{Name of file containing the gene expression data.}
1312

14-
\item{genotype}{Name of file containing the genotyping
15-
data.}
13+
\item{genotype}{Name of file containing the genotyping data.}
1614

17-
\item{covariate}{Character vector of file names for
18-
covariate files (see details).}
15+
\item{covariate}{Character vector of file names for covariate files (see details).}
1916

20-
\item{candidates}{Numeric vector listing the numbers of
21-
covariates that should be evaluated.}
17+
\item{candidates}{Numeric vector listing the numbers of covariates that should be evaluated.}
2218

23-
\item{covThreshold}{FDR threshold to use when determining
24-
the number of significant eQTLs.}
19+
\item{covThreshold}{FDR threshold to use when determining the number of significant eQTLs.}
2520

26-
\item{covOpt}{List of options to use for reading of
27-
covariate data.}
21+
\item{covOpt}{List of options to use for reading of covariate data.}
2822

29-
\item{output}{Name of output directory}
23+
\item{output}{Name of output directory}
3024

31-
\item{doCis}{Logical indicating whether covariates should
32-
be selected based on cis-associations.}
25+
\item{doCis}{Logical indicating whether covariates should be selected based on cis-associations.}
3326

34-
\item{doTrans}{Logical indicating whether covariates
35-
should be selected based on trans-associations.}
27+
\item{doTrans}{Logical indicating whether covariates should be selected based on trans-associations.}
3628

37-
\item{...}{Addition parameters for \code{\link{runME}}}
29+
\item{...}{Addition parameters for \code{\link{runME}}}
3830
}
3931
\value{
40-
A list with elements \item{covariates}{Numeric vector
41-
with the number of covariates used in each iteration.}
42-
\item{eqtls}{A list with components \code{significant}
43-
and \code{all}. Each consisting of a numeric vector with
44-
the number of genes that have significant associations or
45-
any association with SNPs respectively.} \item{best}{Base
46-
of file name(s) that contain the results of the run that
47-
produced the most eQTLs.}
32+
A list with elements
33+
\item{covariates}{Numeric vector with the number of covariates used in each iteration.}
34+
\item{eqtls}{A list with components \code{significant} and \code{all}. Each consisting
35+
of a numeric vector with the number of genes that have significant associations or any
36+
association with SNPs respectively.}
37+
\item{best}{Base of file name(s) that contain the results of the run that produced the
38+
most eQTLs.}
4839
}
4940
\description{
50-
Determine the optimal number of covariates.
41+
Determine the optimal number of covariates.
5142
}
5243
\details{
53-
The argument \code{covariates} may be a vector of several
54-
file names. In this case the first one will be used to
55-
select varying numbers of covariates and the remaining
56-
ones will always be used.
44+
The argument \code{covariates} may be a vector of several file names.
45+
In this case the first one will be used to select varying numbers of covariates and
46+
the remaining ones will always be used.
5747
}
5848
\author{
59-
Peter Humburg
49+
Peter Humburg
6050
}
6151

mePipe/man/combineSlicedData.Rd

Lines changed: 6 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,22 +1,20 @@
1+
% Generated by roxygen2 (4.0.2): do not edit by hand
12
\name{combineSlicedData}
23
\alias{combineSlicedData}
34
\title{Combine two \code{SlicedData} objects}
45
\usage{
5-
combineSlicedData(...)
6+
combineSlicedData(...)
67
}
78
\arguments{
8-
\item{x}{A \code{SlicedData} object}
9-
10-
\item{y}{A \code{SlicedData} object}
9+
\item{...}{\code{SlicedData} objects}
1110
}
1211
\value{
13-
A \code{SlicedData} object containg the data from
14-
\code{x} and \code{y}
12+
A \code{SlicedData} object containg the data from \code{x} and \code{y}
1513
}
1614
\description{
17-
Combine two \code{SlicedData} objects
15+
Combine two \code{SlicedData} objects
1816
}
1917
\author{
20-
Peter Humburg
18+
Peter Humburg
2119
}
2220

0 commit comments

Comments
 (0)