Skip to content

Commit

Permalink
fix parameter
Browse files Browse the repository at this point in the history
  • Loading branch information
lpantano committed Jan 11, 2024
1 parent 4db9035 commit ce4a884
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 4 deletions.
6 changes: 3 additions & 3 deletions R/clustering.R
Original file line number Diff line number Diff line change
Expand Up @@ -946,7 +946,7 @@ degMDS = function(counts, condition=NULL, k=2, d="euclidian", xi=1, yi=2) {
#' @param plot boolean plot the clusters found
#' @param fixy vector integers used as ylim in plot
#' @param nClusters an integer scalar or vector with the desired number of groups
#' @param skipDendo a boolean to run or not dendextend. Temporary fix to memory
#' @param skipDendrogram a boolean to run or not dendextend. Temporary fix to memory
#' issue in linux.
#' @details
#' It can work with one or more groups with 2 or
Expand Down Expand Up @@ -1138,7 +1138,7 @@ degPatterns = function(ma, metadata, minc=15, summarize="merge",
}

dend_plot <- NA
if (length(unique(groups)) > 0 & is.null(nClusters) & !skipDendo){
if (length(unique(groups)) > 0 & is.null(nClusters) & !skipDendrogram){
dend <- cluster_genes
h = dend$dc
clust <- cutree(as.hclust(dend), h = h)
Expand All @@ -1155,7 +1155,7 @@ degPatterns = function(ma, metadata, minc=15, summarize="merge",
if (plot)
plot(dend_plot, xlab="", ylab="", main="", sub="", axes=FALSE, cex = 2)
}
if (length(unique(groups)) > 0 & is.numeric(nClusters) & !skipDendo){
if (length(unique(groups)) > 0 & is.numeric(nClusters) & !skipDendrogram){
dend <- cluster_genes
clust <- cutree(as.hclust(dend), k = nClusters)
clust.cutree <- dendextend::cutree(dend, k = nClusters, order_clusters_as_data = FALSE)
Expand Down
6 changes: 5 additions & 1 deletion man/degPatterns.Rd

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

0 comments on commit ce4a884

Please sign in to comment.