Mercurial > repos > xuebing > sharplabtool
comparison alignvis.r @ 11:b7f1d9f8f3bc
Uploaded
author | xuebing |
---|---|
date | Sat, 10 Mar 2012 07:59:27 -0500 |
parents | |
children |
comparison
equal
deleted
inserted
replaced
10:1558594a3c2e | 11:b7f1d9f8f3bc |
---|---|
1 args <- commandArgs(TRUE) | |
2 x <- read.table(args[1]) | |
3 pdf(args[2]) | |
4 #visualize the profile with heatmap | |
5 srt <- sort(x[,2],index.return=T) # sort by total number of reads | |
6 image(-t(log(as.matrix(x[srt$ix[1:nrow(x)],3:ncol(x)],nc=ncol(x)-2))),col=gray.colors(100)) | |
7 dev.off() | |
8 |