Repository 'ebseq'
hg clone https://toolshed.g2.bx.psu.edu/repos/ning/ebseq

Changeset 42:66fc1abbdf07 (2014-06-16)
Previous changeset 41:76a16146f5f1 (2014-06-16) Next changeset 43:95d6a7a59632 (2014-06-16)
Commit message:
Uploaded
added:
GetIg.R
b
diff -r 76a16146f5f1 -r 66fc1abbdf07 GetIg.R
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/GetIg.R Mon Jun 16 16:24:23 2014 -0400
[
@@ -0,0 +1,23 @@
+sink(file="/tmp/none")
+sink("/dev/null")
+options(warn=-1)
+options(echo=F) 
+
+invisible("EBSeq")
+suppressMessages(library("EBSeq"))
+
+args <- commandArgs(trailingOnly = T)
+inputfile <- args[1]
+outputfile <- args[2]
+
+print(args)
+
+a1=read.csv(inputfile,stringsAsFactors=F,header=F, sep="\t")
+Ng=GetNg(a1[[1]],a1[[2]])
+Ig=Ng$IsoformNgTrun
+
+
+
+
+write.table(Ig,file=outputfile,quote=F,col.names=F,row.names=F,sep = "\t")
+