Mercurial > repos > fubar > brokenandnotdeletablebyowneroradmin
changeset 5:9c1a1e0e664a
and again
author | ross lazarus ross.lazarus@gmail.com |
---|---|
date | Thu, 31 May 2012 09:50:47 +1000 (2012-05-30) |
parents | 3755b2365fb0 |
children | 78044a3d4a21 |
files | README.txt |
diffstat | 1 files changed, 5 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/README.txt Thu May 31 09:49:38 2012 +1000 +++ b/README.txt Thu May 31 09:50:47 2012 +1000 @@ -31,9 +31,14 @@ This trivial example script replaces the score column with a random number in a bed file using Rscript: ourargs = commandArgs(TRUE) + inf = ourargs[1] + outf = ourargs[2] + inp = read.table(inf,head=F,row.names=NULL,sep='\t') + inp[,5] = runif ( nrow(inp) ) + write.table(inp,outf, quote=FALSE, sep="\t",row.names=F,col.names=F)