comparison resize_coordinate_window.py @ 2:541f300f322d draft

planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/resize_coordinate_window commit 174be06d7c7e7789df16ea5d5068f20b21257a2f
author iuc
date Mon, 14 Nov 2016 14:04:00 -0500
parents 0164d2edba9f
children 9ba78e8985dc
comparison
equal deleted inserted replaced
1:0164d2edba9f 2:541f300f322d
32 len_file = fileinput.FileInput(args.chrom_len_file) 32 len_file = fileinput.FileInput(args.chrom_len_file)
33 try: 33 try:
34 for line in len_file: 34 for line in len_file:
35 fields = line.split("\t") 35 fields = line.split("\t")
36 chrom_lens[fields[0]] = int(fields[1]) 36 chrom_lens[fields[0]] = int(fields[1])
37 except Exception, e: 37 except Exception as e:
38 len_file_error = str(e) 38 len_file_error = str(e)
39 39
40 with open(args.input) as fhi: 40 with open(args.input) as fhi:
41 for line in fhi: 41 for line in fhi:
42 if line.startswith('#'): 42 if line.startswith('#'):