# HG changeset patch # User ross lazarus ross.lazarus@gmail.com # Date 1338421847 -36000 # Node ID 9c1a1e0e664a92a4ba0e9eaac3f78648e0cfcf44 # Parent 3755b2365fb00471ad1fbd1b44c8910c6d990bb9 and again diff -r 3755b2365fb0 -r 9c1a1e0e664a README.txt --- 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)