Skip to content

Commit

Permalink
Merge pull request #110 from kharchenkolab/dev
Browse files Browse the repository at this point in the history
Version 1.4.3
  • Loading branch information
evanbiederstedt authored Aug 7, 2021
2 parents ec4502e + 35e5815 commit e96ca04
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 4 deletions.
6 changes: 6 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,11 @@
## Upcoming

## [1.4.3] - 2021-02-08

### Changed
- Fix the function `parseCellGroups()`, check if clustering exists


## [1.4.2] - 2021-28-06

### Changed
Expand Down
2 changes: 1 addition & 1 deletion DESCRIPTION
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
Package: conos
Title: Clustering on Network of Samples
Version: 1.4.2
Version: 1.4.3
Authors@R: c(person("Viktor","Petukhov", email="[email protected]", role="aut"), person("Nikolas","Barkas", email="[email protected]", role="aut"), person("Peter", "Kharchenko", email = "[email protected]", role = "aut"), person("Weiliang", "Qiu", email = "[email protected]", role = c("ctb")), person("Evan", "Biederstedt", email="[email protected]", role=c("aut", "cre")))
Description: Wires together large collections of single-cell RNA-seq datasets, which allows for both the identification of recurrent cell clusters and the propagation of information between datasets in multi-sample or atlas-scale collections. 'Conos' focuses on the uniform mapping of homologous cell types across heterogeneous sample collections. For instance, users could investigate a collection of dozens of peripheral blood samples from cancer patients combined with dozens of controls, which perhaps includes samples of a related tissue such as lymph nodes. This package interacts with data available through the 'conosPanel' package, which is available in a 'drat' repository. To access this data package, see the instructions at <https://github.com/kharchenkolab/conos>. The size of the 'conosPanel' package is approximately 12 MB.
License: GPL-3
Expand Down
10 changes: 7 additions & 3 deletions R/conos.R
Original file line number Diff line number Diff line change
Expand Up @@ -1152,6 +1152,7 @@ findSubcommunities <- function(con, target.clusters, clustering=NULL, groups=NUL

#' @keywords internal
parseCellGroups <- function(con, clustering, groups, parse.clusters=TRUE) {

if (!parse.clusters){
return(groups)
}
Expand All @@ -1163,15 +1164,18 @@ parseCellGroups <- function(con, clustering, groups, parse.clusters=TRUE) {
return(groups)
}

if (length(con$clusters) < 1){
stop("Generate a joint clustering first")
} else if (!(clustering %in% names(con$clusters)) && !is.null(clustering)) {
stop(paste("Clustering",clustering,"does not exist, run findCommunity() first"))
}

if (is.null(clustering)) {
if (length(con$clusters) > 0){
return(con$clusters[[1]]$groups)
}
stop("Either 'groups' must be provided or the conos object must have some clustering estimated")
}
if (is.null(clusters[[clustering]])){
stop(paste("Clustering",clustering,"doesn't exist, run findCommunity() first"))
}

return(con$clusters[[clustering]]$groups)
}
Expand Down

0 comments on commit e96ca04

Please sign in to comment.