Mercurial > repos > xuebing > sharplabtool
view tools/mytools/alignvis.r @ 2:c2a356708570
Uploaded
author | xuebing |
---|---|
date | Fri, 09 Mar 2012 19:45:42 -0500 |
parents | 9071e359b9a3 |
children |
line wrap: on
line source
args <- commandArgs(TRUE) x <- read.table(args[1]) pdf(args[2]) #visualize the profile with heatmap srt <- sort(x[,2],index.return=T) # sort by total number of reads image(-t(log(as.matrix(x[srt$ix[1:nrow(x)],3:ncol(x)],nc=ncol(x)-2))),col=gray.colors(100)) dev.off()