Skip to content

Commit

Permalink
Set iteration default to 10000. Clarify suggested iteration values in…
Browse files Browse the repository at this point in the history
… docs
  • Loading branch information
oganm committed Sep 5, 2018
1 parent fec5803 commit 563e793
Show file tree
Hide file tree
Showing 15 changed files with 668 additions and 43 deletions.
10 changes: 7 additions & 3 deletions R/commonArguments.R
Original file line number Diff line number Diff line change
Expand Up @@ -97,13 +97,17 @@ expression = function(expression){}

#' iterations
#'
#' @keywords internal GSR CORR
#' @keywords internal GSR CORR precRecall
#'
#' @name iterations
#'
#' @param iterations Number of iterations (test = GSR and CORR methods only)
#' @param iterations Number of iterations. We suggest a starting value of 10000
#' iterations. When you decide on parameters you like, we recommend a larger
#' number of iterations (perhaps 200,000 or more). This is to get sufficient
#' precision in the p-values to make multiple-test correction work correctly.
#' (test = GSR CORR and precRecall methods only)
#'
iterations = function(iterations){}
iterations = function(iterations = 10000){}

#' generalStats
#'
Expand Down
4 changes: 0 additions & 4 deletions R/ontology.R
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,7 @@
#' @param path File path. Without gz extension
#' @param overwrite If TRUE, overwrites existing file
#'
#' @return
#' @export
#'
#' @examples
goToday = function(path,overwrite = FALSE){
if(exists(path) & !overwrite){
stop('File exists, not downloading')
Expand Down Expand Up @@ -46,7 +43,6 @@ getGoDates = function(){
#' @param date Character. A valid date as returned from \code{\link{getGoDates}}.
#' @param overwrite If TRUE, overwrites existing file
#'
#' @return
#' @export
goAtDate = function(path, date, overwrite = FALSE){
if(exists(path)){
Expand Down
6 changes: 3 additions & 3 deletions R/testWrappers.R
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,7 @@ gsr = function(scores,
logTrans = FALSE,
annotation = NULL,
aspects = c('Molecular Function','Cellular Component', 'Biological Process'),
iterations,
iterations = 10000,
geneReplicates = c('mean','best'),
pAdjust = c('FDR','Bonferroni'),
geneSetDescription = 'Latest_GO',
Expand Down Expand Up @@ -150,7 +150,7 @@ precRecall = function(scores,
logTrans = FALSE,
annotation = NULL,
aspects = c('Molecular Function','Cellular Component', 'Biological Process'),
iterations,
iterations = 10000,
geneReplicates = c('mean','best'),
pAdjust =c('FDR','Bonferroni'),
geneSetDescription = 'Latest_GO',
Expand Down Expand Up @@ -208,7 +208,7 @@ precRecall = function(scores,
corr = function(expression,
annotation = NULL,
aspects = c('Molecular Function','Cellular Component', 'Biological Process'),
iterations,
iterations = 10000,
geneReplicates = c('mean','best'),
pAdjust = c('FDR','Bonferroni'),
geneSetDescription = 'Latest_GO',
Expand Down
294 changes: 293 additions & 1 deletion docs/README.html

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit 563e793

Please sign in to comment.