Skip to content

Commit

Permalink
Suppress consensus cluster output barf
Browse files Browse the repository at this point in the history
  • Loading branch information
alex-l-kong committed May 13, 2022
1 parent 1e60432 commit 4192c09
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
3 changes: 1 addition & 2 deletions ark/phenotyping/cell_consensus_cluster.R
Original file line number Diff line number Diff line change
Expand Up @@ -59,9 +59,8 @@ clusterAvgsScale <- sapply(as.data.frame(clusterAvgsScale), pmin, cap)
clusterAvgsScale <- sapply(as.data.frame(clusterAvgsScale), pmax, -cap)

# run the consensus clustering
# TODO: also look into invisible() function here (not urgent, just to prevent printout)
print("Running consensus clustering")
consensusClusterResults <- ConsensusClusterPlus(t(clusterAvgsScale), maxK=maxK, seed=seed)
suppressMessages(consensusClusterResults <- ConsensusClusterPlus(t(clusterAvgsScale), maxK=maxK, seed=seed))
som_to_meta_map <- consensusClusterResults[[maxK]]$consensusClass
names(som_to_meta_map) <- clusterAvgs$cell_som_cluster

Expand Down
3 changes: 1 addition & 2 deletions ark/phenotyping/pixel_consensus_cluster.R
Original file line number Diff line number Diff line change
Expand Up @@ -60,9 +60,8 @@ clusterAvgsScale <- sapply(as.data.frame(clusterAvgsScale), pmin, cap)
clusterAvgsScale <- sapply(as.data.frame(clusterAvgsScale), pmax, -cap)

# run the consensus clustering
# TODO: look into suppressing output for Rs (invisible), not urgent
print("Running consensus clustering")
consensusClusterResults <- ConsensusClusterPlus(t(clusterAvgsScale), maxK=maxK, seed=seed)
suppressMessages(consensusClusterResults <- ConsensusClusterPlus(t(clusterAvgsScale), maxK=maxK, seed=seed))
som_to_meta_map <- consensusClusterResults[[maxK]]$consensusClass
names(som_to_meta_map) <- clusterAvgs$pixel_som_cluster

Expand Down

0 comments on commit 4192c09

Please sign in to comment.