Skip to content

Commit

Permalink
Merge pull request #214 from rcastelo/211-implement-a-missing-data-po…
Browse files Browse the repository at this point in the history
…licy-for-gsva

211 implement a missing data policy for gsva
  • Loading branch information
rcastelo authored Oct 24, 2024
2 parents 1bd6121 + 5d3c234 commit 0d6007d
Show file tree
Hide file tree
Showing 13 changed files with 756 additions and 101 deletions.
33 changes: 30 additions & 3 deletions R/AllClasses.R
Original file line number Diff line number Diff line change
Expand Up @@ -305,6 +305,21 @@ setClass("ssgseaParam",
#' will be applied. Otherwise, when `sparse=FALSE`, the classical version of
#' the GSVA algorithm will be used.
#'
#' @slot checkNA Character vector of length 1. One of the strings `"auto"`
#' (default), `"yes"`, or `"no"`, which refer to whether the input expression
#' data should be checked for the presence of missing (`NA`) values.
#'
#' @slot didCheckNA Logical vector of length 1, indicating whether the input
#' expression data was checked for the presence of missing (`NA`) values.
#'
#' @slot anyNA Logical vector of length 1, indicating whether the input
#' expression data contains missing (`NA`) values.
#'
#' @slot use Character vector of length 1. One of the strings `"everything"`
#' (default), `"all.obs"`, or `"na.rm"`, which refer to three different policies
#' to apply in the presence of missing values in the input expression data; see
#' [`ssgseaParam`].
#'
#' @seealso
#' [`GsvaExprData-class`],
#' [`GsvaGeneSets-class`],
Expand All @@ -322,7 +337,11 @@ setClass("gsvaParam",
tau="numeric",
maxDiff="logical",
absRanking="logical",
sparse="logical"),
sparse="logical",
checkNA="character",
didCheckNA="logical",
anyNA="logical",
use="character"),
contains="GsvaMethodParam",
prototype=list(exprData=NULL,
geneSets=NULL,
Expand All @@ -335,7 +354,11 @@ setClass("gsvaParam",
tau=NA_real_,
maxDiff=NA,
absRanking=NA,
sparse=FALSE))
sparse=FALSE,
checkNA=NA_character_,
didCheckNA=NA,
anyNA=NA,
use=NA_character_))

#' @name gsvaRanksParam-class
#' @rdname gsvaParam-class
Expand All @@ -353,4 +376,8 @@ setClass("gsvaRanksParam",
tau=NA_real_,
maxDiff=NA,
absRanking=NA,
sparse=FALSE))
sparse=FALSE,
checkNA=NA_character_,
didCheckNA=NA,
anyNA=NA,
use=NA_character_))
Loading

0 comments on commit 0d6007d

Please sign in to comment.