Skip to content

Instantly share code, notes, and snippets.

@dfjenkins3
Created October 21, 2015 22:42
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save dfjenkins3/f0b6305fe2133a6c7de5 to your computer and use it in GitHub Desktop.
Save dfjenkins3/f0b6305fe2133a6c7de5 to your computer and use it in GitHub Desktop.
Installing and Running Reference ComBat
#install reference batch from github
library(devtools)
install_github("wevanjohnson/sva-devel", ref="reference_batch")
library(sva)
#example ComBat call with reference batch
combat<-ComBat(dat=indata, batch=c(rep(1,100),rep(2,100)), mod=NULL, ref.batch=2)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment