Mercurial > repos > erasmus-medical-center > voom_transform
view voom_transform.R @ 0:c6a3a93a237e draft default tip
planemo upload for repository https://github.com/ErasmusMC-Bioinformatics/galaxytools-emc/tree/master/tools/voom_transform commit e7e72828395347db6ba45ad6b927cd551b5e9327
author | erasmus-medical-center |
---|---|
date | Wed, 25 Jan 2017 10:13:10 -0500 |
parents | |
children |
line wrap: on
line source
#!/usr/bin/env Rscript options( show.error.messages=F, error = function () { cat( geterrmessage(), file=stderr() ); q( "no", 1, F ) } ) loc <- Sys.setlocale("LC_MESSAGES", "en_US.UTF-8") library("getopt") library("limma") spec <- matrix(c( "expressionmatrix", "e", 1, "character", "transformedmatrix", "t", 1, "character" ), byrow=TRUE, ncol=4) opt <- getopt(spec) em <- read.delim(opt$expressionmatrix,header=T,row.names=1,stringsAsFactors=F,check.names=FALSE,na.strings=c("")) vem <- voom(em) write.table(file=opt$transformedmatrix,vem$E,sep="\t",row.names=TRUE,col.names=NA,quote=F)