Skip to content

Commit

Permalink
The conflict issues with the plantir python package have been resolved
Browse files Browse the repository at this point in the history
  • Loading branch information
zhanghao-njmu committed Aug 28, 2023
1 parent 7f378a8 commit 6b5a7ab
Show file tree
Hide file tree
Showing 4 changed files with 14 additions and 9 deletions.
3 changes: 2 additions & 1 deletion DESCRIPTION
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ LazyData: True
LazyDataCompression: xz
Depends:
R (>= 4.1.0)
biocViews: SingleCell, Visualization
biocViews: SingleCell, GeneExpression, SingleCellWorkflow, Visualization, ShinyApps
Imports:
AnnotationDbi,
BiocParallel,
Expand Down Expand Up @@ -64,6 +64,7 @@ Remotes:
YuLab-SMU/ggtree
Suggests:
AUCell,
concaveman,
covr,
destiny,
devtools,
Expand Down
10 changes: 7 additions & 3 deletions R/SCP-plot.R
Original file line number Diff line number Diff line change
Expand Up @@ -12640,7 +12640,7 @@ ProjectionPlot <- function(srt_query, srt_ref,
#' )
#' EnrichmentPlot(pancreas_sub,
#' db = "GO_BP", group_by = "CellType", group_use = "Ductal", plot_type = "enrichmap",
#' topTerm = 200, enrichmap_mark = "hull", enrichmap_label = "gene", enrlichmap_nlabel = 3, character_width = 10,
#' topTerm = 200, enrichmap_mark = "hull", enrichmap_label = "feature", enrlichmap_nlabel = 3, character_width = 10,
#' theme_use = "theme_blank", theme_args = list(add_coord = FALSE)
#' ) %>% panel_fix(height = 4)
#'
Expand All @@ -12664,8 +12664,8 @@ EnrichmentPlot <- function(srt, db = "GO_BP", group_by = NULL, group_use = NULL,
word_type = c("term", "feature"), word_size = c(2, 8), min_word_length = 3,
network_layout = "fr", network_labelsize = 5, network_blendmode = "blend",
network_layoutadjust = TRUE, network_adjscale = 60, network_adjiter = 100,
enrichmap_layout = "fr", enrichmap_cluster = "fast_greedy", enrichmap_label = "term", enrichmap_labelsize = 5,
enrlichmap_nlabel = 4, enrichmap_show_keyword = FALSE, enrichmap_mark = "ellipse", enrichmap_expand = c(0.5, 0.5),
enrichmap_layout = "fr", enrichmap_cluster = "fast_greedy", enrichmap_label = c("term", "feature"), enrichmap_labelsize = 5,
enrlichmap_nlabel = 4, enrichmap_show_keyword = FALSE, enrichmap_mark = c("ellipse", "hull"), enrichmap_expand = c(0.5, 0.5),
exclude_words = c("cell", "cellular", "dna", "rna", "protein", "development", "involved", "organization", "system", "regulation", "positive", "negative", "response", "process"),
character_width = 50, lineheight = 0.7,
palette = "Spectral", palcolor = NULL,
Expand All @@ -12675,6 +12675,7 @@ EnrichmentPlot <- function(srt, db = "GO_BP", group_by = NULL, group_use = NULL,
set.seed(seed)
plot_type <- match.arg(plot_type)
word_type <- match.arg(word_type)
enrichmap_mark <- match.arg(word_type)

if (is.null(res)) {
if (is.null(group_by)) {
Expand Down Expand Up @@ -13083,6 +13084,9 @@ EnrichmentPlot <- function(srt, db = "GO_BP", group_by = NULL, group_use = NULL,
df_edges[["to_dim1"]] <- df_nodes[df_edges[["to"]], "dim1"]
df_edges[["to_dim2"]] <- df_nodes[df_edges[["to"]], "dim2"]

if (enrichmap_mark == "hull") {
check_R("concaveman")
}
mark_layer <- do.call(
switch(enrichmap_mark,
"ellipse" = "geom_mark_ellipse",
Expand Down
4 changes: 2 additions & 2 deletions R/utils.R
Original file line number Diff line number Diff line change
Expand Up @@ -97,8 +97,8 @@ PrepareEnv <- function(conda = "auto", miniconda_repo = "https://repo.anaconda.c
}

packages <- c(
"numpy==1.21.6", "numba==0.55.2", "scikit-learn==1.1.2", "pandas==1.3.5", "python-igraph==0.10.2", "matplotlib==3.6.3",
"scipy", "versioned-hdf5", "leidenalg", "scanpy", "scvelo", "palantir"
"numpy==1.21.6", "numba==0.55.2", "scikit-learn==1.1.2", "pandas==1.3.5", "python-igraph==0.10.2", "matplotlib==3.6.3", "palantir==1.0.1",
"scipy", "versioned-hdf5", "leidenalg", "scanpy", "scvelo"
)
check_Python(packages = packages, envname = envname, conda = conda, force = force, ...)

Expand Down
6 changes: 3 additions & 3 deletions man/EnrichmentPlot.Rd

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

0 comments on commit 6b5a7ab

Please sign in to comment.