Skip to content

Commit

Permalink
fix default PrintPCA behavior
Browse files Browse the repository at this point in the history
  • Loading branch information
andrewwbutler committed Aug 23, 2016
1 parent 07188a9 commit 5fc4d9a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions R/seurat.R
Original file line number Diff line number Diff line change
Expand Up @@ -1314,10 +1314,10 @@ setMethod("PCTopCells", "seurat",
#' @param genes.print Number of genes to print for each PC
#' @return Only text output
#' @export
setGeneric("PrintPCA", function(object,pcs.print=1:5,genes.print=30,use.full=TRUE) standardGeneric("PrintPCA"))
setGeneric("PrintPCA", function(object,pcs.print=1:5,genes.print=30,use.full=FALSE) standardGeneric("PrintPCA"))
#' @export
setMethod("PrintPCA", "seurat",
function(object,pcs.print=1:5,genes.print=30,use.full=TRUE) {
function(object,pcs.print=1:5,genes.print=30,use.full=FALSE) {
for(i in pcs.print) {
code=paste("PC",i,sep="")
sx=PCTopGenes(object,i, genes.print * 2, use.full = use.full, do.balanced = TRUE)
Expand Down

0 comments on commit 5fc4d9a

Please sign in to comment.