Repository 'chipsequtil'
hg clone https://toolshed.g2.bx.psu.edu/repos/alenail/chipsequtil

Changeset 14:425c48c48dde (2016-04-04)
Previous changeset 13:89e9a828de51 (2016-04-04) Next changeset 15:d7e08e5fa1a7 (2016-04-04)
Commit message:
Uploaded
modified:
chipsequtil/map_to_known_genes.py
added:
chipsequtil/._map_to_known_genes.py
chipsequtil/._map_to_known_genes.xml
b
diff -r 89e9a828de51 -r 425c48c48dde chipsequtil/._map_to_known_genes.py
b
Binary file chipsequtil/._map_to_known_genes.py has changed
b
diff -r 89e9a828de51 -r 425c48c48dde chipsequtil/._map_to_known_genes.xml
b
Binary file chipsequtil/._map_to_known_genes.xml has changed
b
diff -r 89e9a828de51 -r 425c48c48dde chipsequtil/map_to_known_genes.py
--- a/chipsequtil/map_to_known_genes.py Mon Apr 04 15:41:48 2016 -0400
+++ b/chipsequtil/map_to_known_genes.py Mon Apr 04 15:59:12 2016 -0400
[
@@ -44,14 +44,15 @@
 
     return gene_ref
 
+
 def parse_gene_ref_line(l) :
     l = map(parse_number, l) # coerce to numbers where possible
     l[9] = map(parse_number, l[9].split(',')) # turn 'x,x,x,...' into list
     l[10] = map(parse_number, l[10].split(','))
     return l
 
-if __name__ == '__main__' :
 
+def main():
     opts, args = parser.parse_args(sys.argv[1:])
 
     if len(args) < 3 :
@@ -216,6 +217,7 @@
     if peak_output != sys.stdout:
         print "arrived here."
         peak_output.close()
+        print "arrived here2."
 
     #if opts.stats_output != sys.stderr :
     #    opts.stats_output = open(opts.stats_output,'w')
@@ -225,3 +227,7 @@
 
     #if opts.stats_output != sys.stderr :
     #    opts.stats_output.close()
+
+
+if __name__ == '__main__' :
+    main()