Skip to content

Commit

Permalink
Include package.R file to avoid undefined function.
Browse files Browse the repository at this point in the history
  • Loading branch information
Gene233 committed Mar 26, 2024
1 parent e6ba036 commit 03dc19f
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion DESCRIPTION
Original file line number Diff line number Diff line change
Expand Up @@ -20,10 +20,10 @@ Collate:
'tf_idf_iae_wrappers.R'
'score.R'
'AllGenerics.R'
'smartid-package.R'
'gs_score-methods.R'
'plot.R'
'scale_mgm.R'
'smartid-package.R'
'score-methods.R'
'select_markers.R'
'top_markers.R'
Expand Down
2 changes: 1 addition & 1 deletion R/gs_score-methods.R
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#' @include score.R
#' @include score.R smartid-package.R
NULL

#' @rdname gs_score
Expand Down
4 changes: 2 additions & 2 deletions R/score-methods.R
Original file line number Diff line number Diff line change
Expand Up @@ -42,10 +42,10 @@ setMethod(
expr <- SummarizedExperiment::assay(data, i = slot)
## get label
if (!is.null(par.idf) & !is.null(par.idf$label)) {
par.idf$label <- colData(data)[[par.idf$label]]
par.idf$label <- SummarizedExperiment::colData(data)[[par.idf$label]]
}
if (!is.null(par.iae) & !is.null(par.iae$label)) {
par.iae$label <- colData(data)[[par.iae$label]]
par.iae$label <- SummarizedExperiment::colData(data)[[par.iae$label]]
}

res <- cal_score(
Expand Down
4 changes: 2 additions & 2 deletions R/top_markers-methods.R
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#' @include top_markers.R
#' @include top_markers.R smartid-package.R
NULL

#' @rdname top_markers
Expand Down Expand Up @@ -63,7 +63,7 @@ setMethod(
## get expr
expr <- SummarizedExperiment::assay(data, i = slot)
## get label
label <- colData(data)[[label]]
label <- SummarizedExperiment::colData(data)[[label]]

top_m <- top_markers(
data = expr,
Expand Down

0 comments on commit 03dc19f

Please sign in to comment.