Skip to content

Commit

Permalink
add list for geneset types
Browse files Browse the repository at this point in the history
  • Loading branch information
sara-fallet committed Jan 10, 2024
1 parent afffa09 commit dc9007b
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion R/cit_gsa.R
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@
#' @param geneset a vector, a gmt file or a BiocSet object.
#'If the parameter is \itemize{
#' \item a vector : corresponds to the gene name of the gene set, must be the same as those of the columns of the matrix \code{M}
#' \item a list : each elements of the list are a gene set with the names of the genes, must be the same as those of the columns of the matrix \code{M}
#' \item a gmt file : the genes names of each genes set in the file, must be the same as those of the columns of the matrix \code{M}
#' \item a BiocSet object : the genes names of each genes set in the object, must be the same as those of the columns of the matrix \code{M}
#'}
Expand Down Expand Up @@ -103,7 +104,7 @@ cit_gsa <- function(M,
stopifnot(is.logical(parallel))
stopifnot(is.logical(adaptive))
stopifnot(is.numeric(n_perm))
stopifnot(inherits(geneset,"GSA.genesets") | inherits(geneset,"BiocSet") | is.character(geneset))
stopifnot(inherits(geneset,"GSA.genesets") | inherits(geneset,"BiocSet") | is.character(geneset) | is.list(geneset))


M_colnames <- colnames(M)
Expand Down

0 comments on commit dc9007b

Please sign in to comment.