if(require("blimaTestingData") && interactive())
{
#Write background images before and after correction for background into /tmp directory. This function creates two jpg images for condition D. Output files are /tmp/6898481102_D_CORRECTED.jpg and /tmp/6898481102_D.jpg.
data(blimatesting)
p = pData(blimatesting[[2]]@experimentData$phenoData)
spotsToGenerate = p$Group %in% "D";
writeBackgroundImages(blimatesting[[2]], imageType="jpg", spotsToGenerate=spotsToGenerate, includePearson=FALSE, outputDir="/tmp", width=505, height=505)
}else
{
print("To run this example, please install blimaTestingData package from bioconductor by running biocLite('blimaTestingData').");
}
Run the code above in your browser using DataLab