Skip to content

Commit 95672f6

Browse files
release 0.4.3
removed deprecated method to create sparse matrices
1 parent 855e801 commit 95672f6

File tree

12 files changed

+34591
-532
lines changed

12 files changed

+34591
-532
lines changed

DESCRIPTION

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
Package: leiden
22
Type: Package
33
Title: R Implementation of Leiden Clustering Algorithm
4-
Version: 0.4.2
5-
Date: 2022-05-01
4+
Version: 0.4.3
5+
Date: 2022-09-10
66
Authors@R: c(person("S. Thomas", "Kelly", email = "tomkellygenetics@gmail.com", role = c("aut", "cre", "trl")),
77
person("Vincent A.", "Traag", email = "v.a.traag@cwts.leidenuniv.nl", role = c("com")))
88
Description: Implements the 'Python leidenalg' module to be called in R.

Meta/vignette.rds

28 Bytes
Binary file not shown.

NAMESPACE

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,11 @@ S3method(leiden,igraph)
77
S3method(leiden,list)
88
S3method(leiden,matrix)
99
export(leiden)
10+
importClassesFrom(Matrix,CsparseMatrix)
11+
importClassesFrom(Matrix,dMatrix)
1012
importClassesFrom(Matrix,dgCMatrix)
1113
importClassesFrom(Matrix,dgeMatrix)
14+
importClassesFrom(Matrix,generalMatrix)
1215
importFrom(igraph,E)
1316
importFrom(igraph,V)
1417
importFrom(igraph,as.undirected)

NEWS.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,11 @@
1+
# leiden 0.4.3
2+
3+
Minor update to pass CRAN checks
4+
5+
- removed deprecated method to create sparse matrices
6+
7+
- correct links in citations and vignettes
8+
19
# leiden 0.4.2
210

311
* migrates bug fixes to conda environment and limit on total cells to refactored package

R/leiden.R

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -182,7 +182,7 @@ leiden.data.frame <- leiden.matrix
182182

183183
##' @importFrom igraph graph_from_adjacency_matrix edge_attr set_edge_attr E
184184
##' @importFrom methods as
185-
##' @importClassesFrom Matrix dgCMatrix dgeMatrix
185+
##' @importClassesFrom Matrix dgCMatrix dgeMatrix CsparseMatrix generalMatrix dMatrix
186186
##' @export
187187
leiden.Matrix <- function(object,
188188
partition_type = c(
@@ -216,7 +216,7 @@ leiden.Matrix <- function(object,
216216
on.exit(options(oo))
217217

218218
#cast to sparse matrix
219-
object <- as(object, "dgCMatrix")
219+
object <- as(as(as(object, "CsparseMatrix"), "generalMatrix"), "dMatrix")
220220
#run as igraph object (passes to reticulate)
221221
if(is.null(weights)){
222222
object <- graph_from_adjacency_matrix(adjmatrix = object, weighted = TRUE)

README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# Leiden Algorithm
22

3-
## leiden version 0.4.2
3+
## leiden version 0.4.3
44

55
[![CRAN_Status_Badge](http://www.r-pkg.org/badges/version/leiden)](https://cran.r-project.org/package=leiden)
66
[![Travis Build Status](https://travis-ci.com/TomKellyGenetics/leiden.svg?branch=master)](https://travis-ci.com/TomKellyGenetics/leiden)
@@ -284,15 +284,15 @@ Please cite this implementation R in if you use it:
284284
To cite the leiden package in publications use:
285285
286286
S. Thomas Kelly (2022). leiden: R implementation of the Leiden algorithm. R
287-
package version 0.4.2 https://github.com/TomKellyGenetics/leiden
287+
package version 0.4.3 https://github.com/TomKellyGenetics/leiden
288288
289289
A BibTeX entry for LaTeX users is
290290
291291
@Manual{,
292292
title = {leiden: R implementation of the Leiden algorithm},
293293
author = {S. Thomas Kelly},
294294
year = {2022},
295-
note = {R package version 0.4.2},
295+
note = {R package version 0.4.3},
296296
url = {https://github.com/TomKellyGenetics/leiden},
297297
}
298298
```

doc/benchmarking.html

Lines changed: 34437 additions & 471 deletions
Large diffs are not rendered by default.

doc/run_bipartite.html

Lines changed: 72 additions & 9 deletions
Large diffs are not rendered by default.

doc/run_igraph.html

Lines changed: 32 additions & 20 deletions
Large diffs are not rendered by default.

doc/run_leiden.html

Lines changed: 28 additions & 21 deletions
Large diffs are not rendered by default.

0 commit comments

Comments
 (0)