Skip to content

Commit

Permalink
removed a couple of cbinds
Browse files Browse the repository at this point in the history
  • Loading branch information
pfgherardini committed Jul 19, 2018
1 parent 7201881 commit 4f73043
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions R/cluster.R
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,7 @@ process_files_groups <- function(files, col.names, num.clusters, num.samples, as

m <- grappolo:::cluster_data(tab, col.names, k = num.clusters, sampsize = min(nrow(tab), 1000), samples = num.samples)
colnames(m) <- gsub("groups", "cellType", colnames(m))
orig.data <- cbind(orig.data, cellType = m[, "cellType"])
orig.data <- data.frame(orig.data, cellType = m[, "cellType"], check.names = FALSE, stringsAsFactors = FALSE)

temp <- get_stats_by_sample(m)

Expand All @@ -130,7 +130,7 @@ process_file <- function(f, col.names, num.clusters, num.samples, asinh.cofactor

m <- grappolo:::cluster_data(tab, col.names, k = num.clusters, sampsize = min(nrow(tab), 1000), samples = num.samples)
colnames(m) <- gsub("groups", "cellType", colnames(m))
orig.data <- cbind(orig.data, cellType = m[, "cellType"])
orig.data <- data.frame(orig.data, cellType = m[, "cellType"], check.names = FALSE, stringsAsFactors = FALSE)

tab.medians <- plyr::ddply(m, ~cellType, plyr::colwise(median))

Expand Down

0 comments on commit 4f73043

Please sign in to comment.