Skip to content

Commit

Permalink
Merge pull request jtleek#4 from andrewejaffe/master
Browse files Browse the repository at this point in the history
fixed bug with vfilter
  • Loading branch information
jtleek committed Feb 25, 2015
2 parents 21cee1c + 39deb94 commit fdcf505
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion R/sva.R
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ sva <- function(dat, mod, mod0 = NULL,n.sv=NULL,controls=NULL,method=c("irw","tw
stop(paste("sva error: the number of genes used in the analysis must be between 100 and",dim(dat)[1],"\n"))
}
tmpv = rowVars(dat)
ind = which(rank(-tmpv) < vfilter)
ind = which(rank(-tmpv) <= vfilter)
dat = dat[ind,]
}

Expand Down

0 comments on commit fdcf505

Please sign in to comment.