Mercurial > repos > alenail > chipsequtil
changeset 14:425c48c48dde draft
Uploaded
author | alenail |
---|---|
date | Mon, 04 Apr 2016 15:59:12 -0400 |
parents | 89e9a828de51 |
children | d7e08e5fa1a7 |
files | chipsequtil/._map_to_known_genes.py chipsequtil/._map_to_known_genes.xml chipsequtil/map_to_known_genes.py |
diffstat | 3 files changed, 7 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- 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()