Skip to content

Commit a49b5bf

Browse files
committed
Merge branch 'main' into RELEASE_3_21
2 parents 5bbb304 + 795043f commit a49b5bf

5 files changed

Lines changed: 28 additions & 9 deletions

File tree

DESCRIPTION

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
Package: SVP
22
Title: Predicting cell states and their variability in single-cell or spatial omics data
3-
Version: 1.0.1
3+
Version: 1.0.2
44
Authors@R: c(
55
person("Shuangbin", "Xu", email = "xshuangbin@163.com", role = c("aut", "cre"), comment = c(ORCID = "0000-0003-3513-5362")),
66
person("Guangchuang", "Yu", email = "guangchuangyu@gmail.com", role = c("aut", "ctb"), comment = c(ORCID = "0000-0002-6485-8781")))

Makefile

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
11
PKGNAME := $(shell sed -n "s/Package: *\([^ ]*\)/\1/p" DESCRIPTION)
22
PKGVERS := $(shell sed -n "s/Version: *\([^ ]*\)/\1/p" DESCRIPTION)
33
PKGSRC := $(shell basename `pwd`)
4+
BIOCVER := RELEASE_3_21
5+
46
all: rd check clean
57

68
crd:
@@ -39,3 +41,16 @@ bioccheck:
3941
clean:
4042
cd ..;\
4143
rm -rf $(PKGNAME).Rcheck
44+
45+
release:
46+
git checkout $(BIOCVER);\
47+
git fetch --all
48+
49+
update:
50+
git fetch --all
51+
git merge upstream/devel
52+
git merge origin/main
53+
54+
submit:
55+
git push upstream devel
56+
git push origin

NEWS.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
# SVP 1.0.0
2+
3+
+ Bioconductor 3.21 release, and Bioconductor 3.22 bump. (2025-04-17, Thu)
4+
15
# SVP 0.99.2
26

37
+ remove unused code. (2025-03-12, Wen)

R/methods-sgsa.R

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -34,14 +34,14 @@
3434
#' neighbor and build graph, default is FALSE, meaning the nearest neighbor will be found in cells to cells,
3535
#' features to features, cells to features respectively to build graph.
3636
#' @param knn.graph.weighted logical whether consider the distance of nodes in the Nearest Neighbors, default is TRUE.
37-
#' @param knn.k.use numeric the number of the Nearest Neighbors nodes, default is 600.
37+
#' @param knn.k.use numeric the number of the Nearest Neighbors nodes, default is 0.06 * number of gene in \code{data}.
3838
#' @param rwr.restart the restart probability used for restart walk with restart, should be between 0 and 1, default is 0.75.
3939
#' @param rwr.normalize.adj.method character the method to normalize the adjacency matrix of the input graph,
4040
#' default is \code{laplacian}.
4141
#' @param rwr.normalize.affinity logical whether normalize the activity (affinity) result score using quantile normalization,
4242
#' default is FALSE.
4343
#' @param rwr.prop.normalize logical whether divide the specific activity score by total activity score for a sample,
44-
#' default is FALSE.
44+
#' default is FALSE. if \code{gset.idx.list} is celltype gene set, we recommend using TRUE.
4545
#' @param rwr.threads the threads to run Random Walk With Restart (RWR), default is NULL, which will initialize with the default
4646
#' number of threads, you can also set this using \code{RcppParallel::setThreadOptions(numThreads=10)}.
4747
#' @param hyper.test.weighted character which method to weight the activity score of cell, should is one of "Hypergeometric", "Wallenius",
@@ -161,7 +161,7 @@ setGeneric('runSGSA',
161161
knn.used.reduction.dims = 30,
162162
knn.combined.cell.feature = FALSE,
163163
knn.graph.weighted = TRUE,
164-
knn.k.use = 600,
164+
knn.k.use = round(0.06 * nrow(data)),
165165
rwr.restart = .75,
166166
rwr.normalize.adj.method = c("laplacian", "row", "column", "none"),
167167
rwr.normalize.affinity = FALSE,
@@ -200,7 +200,7 @@ setMethod('runSGSA',
200200
knn.used.reduction.dims = 30,
201201
knn.combined.cell.feature = FALSE,
202202
knn.graph.weighted = TRUE,
203-
knn.k.use = 600,
203+
knn.k.use = round(0.06 * nrow(data)),
204204
rwr.restart = .75,
205205
rwr.normalize.adj.method = c("laplacian", "row", "column", "none"),
206206
rwr.normalize.affinity = FALSE,

man/runSGSA-method.Rd

Lines changed: 4 additions & 4 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)