Skip to content

Commit

Permalink
add dr slot to compareClusterResult, enrichRestul and gseaResult
Browse files Browse the repository at this point in the history
  • Loading branch information
huerqiang committed May 21, 2021
1 parent 6816848 commit 8ce4ca8
Show file tree
Hide file tree
Showing 5 changed files with 18 additions and 4 deletions.
4 changes: 3 additions & 1 deletion NEWS.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
# DOSE 3.17.1
# DOSE 3.19.0.991
+ add `dr` slot to `compareClusterResult`, `enrichRestul` and `gseaResult`(2021-5-21, Fri)

# DOSE 3.17
+ support setting seed for fgsea method if e.g. `gseGO(seed = TRUE)` (2020-10-28, Wed)
- <https://github.com/YuLab-SMU/DOSE/issues/45>

Expand Down
12 changes: 9 additions & 3 deletions R/00-AllClasses.R
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@
##' @slot .call function call
##' @slot termsim Similarity between term
##' @slot method method of calculating the similarity between nodes
##' @slot dr dimension reduction result
##' @exportClass compareClusterResult
##' @author Guangchuang Yu \url{https://guangchuangyu.github.io}
##' @exportClass compareClusterResult
Expand All @@ -32,7 +33,8 @@ setClass("compareClusterResult",
readable = "logical",
.call = "call",
termsim = "matrix",
method = "character"
method = "character",
dr = "list"
)
)

Expand All @@ -59,6 +61,7 @@ setClass("compareClusterResult",
##' @slot readable logical flag of gene ID in symbol or not.
##' @slot termsim Similarity between term
##' @slot method method of calculating the similarity between nodes
##' @slot dr dimension reduction result
##' @exportClass enrichResult
##' @author Guangchuang Yu \url{https://guangchuangyu.github.io}
##' @seealso \code{\link{enrichDO}}
Expand All @@ -78,7 +81,8 @@ setClass("enrichResult",
geneSets = "list",
readable = "logical",
termsim = "matrix",
method = "character"
method = "character",
dr = "list"
),
prototype=prototype(readable = FALSE)
)
Expand All @@ -104,6 +108,7 @@ setClass("enrichResult",
##' @slot params parameters
##' @slot gene2Symbol gene ID to Symbol
##' @slot readable whether convert gene ID to symbol
##' @slot dr dimension reduction result
##' @exportClass gseaResult
##' @author Guangchuang Yu \url{https://guangchuangyu.github.io}
##' @keywords classes
Expand All @@ -120,7 +125,8 @@ setClass("gseaResult",
gene2Symbol = "character",
readable = "logical",
termsim = "matrix",
method = "character"
method = "character",
dr = "list"
)
)

2 changes: 2 additions & 0 deletions man/compareClusterResult-class.Rd

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

2 changes: 2 additions & 0 deletions man/enrichResult-class.Rd

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

2 changes: 2 additions & 0 deletions man/gseaResult-class.Rd

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

0 comments on commit 8ce4ca8

Please sign in to comment.