annotate resize_coordinate_window.py @ 4:4eb3cc1f8466 draft default tip

"planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/resize_coordinate_window commit d357611d8d49631f0eb7c5e022e80cb4c9483308"
author iuc
date Wed, 11 Dec 2019 18:06:42 -0500
parents 9ba78e8985dc
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
4
4eb3cc1f8466 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/resize_coordinate_window commit d357611d8d49631f0eb7c5e022e80cb4c9483308"
iuc
parents: 3
diff changeset
1
4eb3cc1f8466 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/resize_coordinate_window commit d357611d8d49631f0eb7c5e022e80cb4c9483308"
iuc
parents: 3
diff changeset
2
0
08b6255afde7 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/resize_coordinate_window commit b'67cff25a50ba173b0468819204d0999496f68ea9'
iuc
parents:
diff changeset
3 import argparse
1
0164d2edba9f planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/resize_coordinate_window commit 7aa2429d3f53a14be7e44dc6021ed3e11dc2f080
iuc
parents: 0
diff changeset
4 import fileinput
0
08b6255afde7 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/resize_coordinate_window commit b'67cff25a50ba173b0468819204d0999496f68ea9'
iuc
parents:
diff changeset
5 import sys
08b6255afde7 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/resize_coordinate_window commit b'67cff25a50ba173b0468819204d0999496f68ea9'
iuc
parents:
diff changeset
6
1
0164d2edba9f planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/resize_coordinate_window commit 7aa2429d3f53a14be7e44dc6021ed3e11dc2f080
iuc
parents: 0
diff changeset
7 # Maximum value of a signed 32 bit integer (2**31 - 1).
0164d2edba9f planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/resize_coordinate_window commit 7aa2429d3f53a14be7e44dc6021ed3e11dc2f080
iuc
parents: 0
diff changeset
8 MAX_CHROM_LEN = 2147483647
0
08b6255afde7 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/resize_coordinate_window commit b'67cff25a50ba173b0468819204d0999496f68ea9'
iuc
parents:
diff changeset
9
1
0164d2edba9f planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/resize_coordinate_window commit 7aa2429d3f53a14be7e44dc6021ed3e11dc2f080
iuc
parents: 0
diff changeset
10
0164d2edba9f planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/resize_coordinate_window commit 7aa2429d3f53a14be7e44dc6021ed3e11dc2f080
iuc
parents: 0
diff changeset
11 def stop_err(msg):
4
4eb3cc1f8466 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/resize_coordinate_window commit d357611d8d49631f0eb7c5e022e80cb4c9483308"
iuc
parents: 3
diff changeset
12 sys.exit(msg)
0
08b6255afde7 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/resize_coordinate_window commit b'67cff25a50ba173b0468819204d0999496f68ea9'
iuc
parents:
diff changeset
13
3
9ba78e8985dc planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/resize_coordinate_window commit ad3846c086321d9bd604e974fd21323347b73470
iuc
parents: 2
diff changeset
14
0
08b6255afde7 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/resize_coordinate_window commit b'67cff25a50ba173b0468819204d0999496f68ea9'
iuc
parents:
diff changeset
15 parser = argparse.ArgumentParser()
08b6255afde7 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/resize_coordinate_window commit b'67cff25a50ba173b0468819204d0999496f68ea9'
iuc
parents:
diff changeset
16 parser.add_argument('--input', dest='input', help="Input dataset")
1
0164d2edba9f planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/resize_coordinate_window commit 7aa2429d3f53a14be7e44dc6021ed3e11dc2f080
iuc
parents: 0
diff changeset
17 parser.add_argument('--start_coordinate', dest='start_coordinate', type=int, help='Chromosome start coordinate, either 0 or 1.')
0
08b6255afde7 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/resize_coordinate_window commit b'67cff25a50ba173b0468819204d0999496f68ea9'
iuc
parents:
diff changeset
18 parser.add_argument('--subtract_from_start', dest='subtract_from_start', type=int, help='Distance to subtract from start.')
08b6255afde7 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/resize_coordinate_window commit b'67cff25a50ba173b0468819204d0999496f68ea9'
iuc
parents:
diff changeset
19 parser.add_argument('--add_to_end', dest='add_to_end', type=int, help='Distance to add to end.')
1
0164d2edba9f planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/resize_coordinate_window commit 7aa2429d3f53a14be7e44dc6021ed3e11dc2f080
iuc
parents: 0
diff changeset
20 parser.add_argument('--extend_existing', dest='extend_existing', help='Extend existing start/end instead of from computed midpoint.')
0164d2edba9f planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/resize_coordinate_window commit 7aa2429d3f53a14be7e44dc6021ed3e11dc2f080
iuc
parents: 0
diff changeset
21 parser.add_argument('--chrom_len_file', dest='chrom_len_file', help="File names of .len files for chromosome lengths")
0164d2edba9f planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/resize_coordinate_window commit 7aa2429d3f53a14be7e44dc6021ed3e11dc2f080
iuc
parents: 0
diff changeset
22 parser.add_argument('--region_boundaries', dest='region_boundaries', help="Option for handling region boundaries")
0
08b6255afde7 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/resize_coordinate_window commit b'67cff25a50ba173b0468819204d0999496f68ea9'
iuc
parents:
diff changeset
23 parser.add_argument('--output', dest='output', help="Output dataset")
08b6255afde7 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/resize_coordinate_window commit b'67cff25a50ba173b0468819204d0999496f68ea9'
iuc
parents:
diff changeset
24 args = parser.parse_args()
08b6255afde7 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/resize_coordinate_window commit b'67cff25a50ba173b0468819204d0999496f68ea9'
iuc
parents:
diff changeset
25
08b6255afde7 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/resize_coordinate_window commit b'67cff25a50ba173b0468819204d0999496f68ea9'
iuc
parents:
diff changeset
26 extend_existing = args.extend_existing == 'existing'
4
4eb3cc1f8466 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/resize_coordinate_window commit d357611d8d49631f0eb7c5e022e80cb4c9483308"
iuc
parents: 3
diff changeset
27 out = open(args.output, 'w')
0
08b6255afde7 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/resize_coordinate_window commit b'67cff25a50ba173b0468819204d0999496f68ea9'
iuc
parents:
diff changeset
28
1
0164d2edba9f planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/resize_coordinate_window commit 7aa2429d3f53a14be7e44dc6021ed3e11dc2f080
iuc
parents: 0
diff changeset
29 chrom_start = int(args.start_coordinate)
0164d2edba9f planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/resize_coordinate_window commit 7aa2429d3f53a14be7e44dc6021ed3e11dc2f080
iuc
parents: 0
diff changeset
30 chrom_lens = dict()
0164d2edba9f planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/resize_coordinate_window commit 7aa2429d3f53a14be7e44dc6021ed3e11dc2f080
iuc
parents: 0
diff changeset
31 # Determine the length of each chromosome and add it to the chrom_lens dictionary.
0164d2edba9f planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/resize_coordinate_window commit 7aa2429d3f53a14be7e44dc6021ed3e11dc2f080
iuc
parents: 0
diff changeset
32 len_file_missing = False
0164d2edba9f planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/resize_coordinate_window commit 7aa2429d3f53a14be7e44dc6021ed3e11dc2f080
iuc
parents: 0
diff changeset
33 len_file_error = None
0164d2edba9f planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/resize_coordinate_window commit 7aa2429d3f53a14be7e44dc6021ed3e11dc2f080
iuc
parents: 0
diff changeset
34 len_file = fileinput.FileInput(args.chrom_len_file)
0164d2edba9f planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/resize_coordinate_window commit 7aa2429d3f53a14be7e44dc6021ed3e11dc2f080
iuc
parents: 0
diff changeset
35 try:
0164d2edba9f planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/resize_coordinate_window commit 7aa2429d3f53a14be7e44dc6021ed3e11dc2f080
iuc
parents: 0
diff changeset
36 for line in len_file:
0164d2edba9f planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/resize_coordinate_window commit 7aa2429d3f53a14be7e44dc6021ed3e11dc2f080
iuc
parents: 0
diff changeset
37 fields = line.split("\t")
0164d2edba9f planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/resize_coordinate_window commit 7aa2429d3f53a14be7e44dc6021ed3e11dc2f080
iuc
parents: 0
diff changeset
38 chrom_lens[fields[0]] = int(fields[1])
2
541f300f322d planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/resize_coordinate_window commit 174be06d7c7e7789df16ea5d5068f20b21257a2f
iuc
parents: 1
diff changeset
39 except Exception as e:
1
0164d2edba9f planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/resize_coordinate_window commit 7aa2429d3f53a14be7e44dc6021ed3e11dc2f080
iuc
parents: 0
diff changeset
40 len_file_error = str(e)
0164d2edba9f planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/resize_coordinate_window commit 7aa2429d3f53a14be7e44dc6021ed3e11dc2f080
iuc
parents: 0
diff changeset
41
0164d2edba9f planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/resize_coordinate_window commit 7aa2429d3f53a14be7e44dc6021ed3e11dc2f080
iuc
parents: 0
diff changeset
42 with open(args.input) as fhi:
0164d2edba9f planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/resize_coordinate_window commit 7aa2429d3f53a14be7e44dc6021ed3e11dc2f080
iuc
parents: 0
diff changeset
43 for line in fhi:
0164d2edba9f planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/resize_coordinate_window commit 7aa2429d3f53a14be7e44dc6021ed3e11dc2f080
iuc
parents: 0
diff changeset
44 if line.startswith('#'):
0164d2edba9f planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/resize_coordinate_window commit 7aa2429d3f53a14be7e44dc6021ed3e11dc2f080
iuc
parents: 0
diff changeset
45 # Skip comments.
0164d2edba9f planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/resize_coordinate_window commit 7aa2429d3f53a14be7e44dc6021ed3e11dc2f080
iuc
parents: 0
diff changeset
46 continue
0164d2edba9f planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/resize_coordinate_window commit 7aa2429d3f53a14be7e44dc6021ed3e11dc2f080
iuc
parents: 0
diff changeset
47 items = line.split('\t')
0164d2edba9f planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/resize_coordinate_window commit 7aa2429d3f53a14be7e44dc6021ed3e11dc2f080
iuc
parents: 0
diff changeset
48 if len(items) != 9:
0164d2edba9f planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/resize_coordinate_window commit 7aa2429d3f53a14be7e44dc6021ed3e11dc2f080
iuc
parents: 0
diff changeset
49 # Skip invalid gff data.
0164d2edba9f planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/resize_coordinate_window commit 7aa2429d3f53a14be7e44dc6021ed3e11dc2f080
iuc
parents: 0
diff changeset
50 continue
0164d2edba9f planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/resize_coordinate_window commit 7aa2429d3f53a14be7e44dc6021ed3e11dc2f080
iuc
parents: 0
diff changeset
51 chrom = items[0]
0164d2edba9f planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/resize_coordinate_window commit 7aa2429d3f53a14be7e44dc6021ed3e11dc2f080
iuc
parents: 0
diff changeset
52 start = int(items[3])
0164d2edba9f planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/resize_coordinate_window commit 7aa2429d3f53a14be7e44dc6021ed3e11dc2f080
iuc
parents: 0
diff changeset
53 end = int(items[4])
0164d2edba9f planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/resize_coordinate_window commit 7aa2429d3f53a14be7e44dc6021ed3e11dc2f080
iuc
parents: 0
diff changeset
54 if extend_existing:
0164d2edba9f planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/resize_coordinate_window commit 7aa2429d3f53a14be7e44dc6021ed3e11dc2f080
iuc
parents: 0
diff changeset
55 new_start = start - args.subtract_from_start
0164d2edba9f planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/resize_coordinate_window commit 7aa2429d3f53a14be7e44dc6021ed3e11dc2f080
iuc
parents: 0
diff changeset
56 new_end = end + args.add_to_end
0164d2edba9f planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/resize_coordinate_window commit 7aa2429d3f53a14be7e44dc6021ed3e11dc2f080
iuc
parents: 0
diff changeset
57 else:
0164d2edba9f planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/resize_coordinate_window commit 7aa2429d3f53a14be7e44dc6021ed3e11dc2f080
iuc
parents: 0
diff changeset
58 midpoint = (start + end) // 2
0164d2edba9f planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/resize_coordinate_window commit 7aa2429d3f53a14be7e44dc6021ed3e11dc2f080
iuc
parents: 0
diff changeset
59 new_start = midpoint - args.subtract_from_start
0164d2edba9f planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/resize_coordinate_window commit 7aa2429d3f53a14be7e44dc6021ed3e11dc2f080
iuc
parents: 0
diff changeset
60 new_end = midpoint + args.add_to_end
0164d2edba9f planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/resize_coordinate_window commit 7aa2429d3f53a14be7e44dc6021ed3e11dc2f080
iuc
parents: 0
diff changeset
61 # Check start boundary.
0164d2edba9f planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/resize_coordinate_window commit 7aa2429d3f53a14be7e44dc6021ed3e11dc2f080
iuc
parents: 0
diff changeset
62 if new_start < chrom_start:
0164d2edba9f planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/resize_coordinate_window commit 7aa2429d3f53a14be7e44dc6021ed3e11dc2f080
iuc
parents: 0
diff changeset
63 if args.region_boundaries == 'discard':
0164d2edba9f planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/resize_coordinate_window commit 7aa2429d3f53a14be7e44dc6021ed3e11dc2f080
iuc
parents: 0
diff changeset
64 continue
0164d2edba9f planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/resize_coordinate_window commit 7aa2429d3f53a14be7e44dc6021ed3e11dc2f080
iuc
parents: 0
diff changeset
65 elif args.region_boundaries == 'limit':
0164d2edba9f planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/resize_coordinate_window commit 7aa2429d3f53a14be7e44dc6021ed3e11dc2f080
iuc
parents: 0
diff changeset
66 new_start = chrom_start
0164d2edba9f planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/resize_coordinate_window commit 7aa2429d3f53a14be7e44dc6021ed3e11dc2f080
iuc
parents: 0
diff changeset
67 elif args.region_boundaries == 'error':
0164d2edba9f planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/resize_coordinate_window commit 7aa2429d3f53a14be7e44dc6021ed3e11dc2f080
iuc
parents: 0
diff changeset
68 out.close()
0164d2edba9f planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/resize_coordinate_window commit 7aa2429d3f53a14be7e44dc6021ed3e11dc2f080
iuc
parents: 0
diff changeset
69 stop_err('Requested expansion places region beyond chromosome start boundary of %d.' % chrom_start)
0164d2edba9f planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/resize_coordinate_window commit 7aa2429d3f53a14be7e44dc6021ed3e11dc2f080
iuc
parents: 0
diff changeset
70 # Check end boundary.
0164d2edba9f planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/resize_coordinate_window commit 7aa2429d3f53a14be7e44dc6021ed3e11dc2f080
iuc
parents: 0
diff changeset
71 chrom_len = chrom_lens.get(chrom, None)
0164d2edba9f planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/resize_coordinate_window commit 7aa2429d3f53a14be7e44dc6021ed3e11dc2f080
iuc
parents: 0
diff changeset
72 if chrom_len is None:
0164d2edba9f planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/resize_coordinate_window commit 7aa2429d3f53a14be7e44dc6021ed3e11dc2f080
iuc
parents: 0
diff changeset
73 len_file_missing = True
0164d2edba9f planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/resize_coordinate_window commit 7aa2429d3f53a14be7e44dc6021ed3e11dc2f080
iuc
parents: 0
diff changeset
74 chrom_len = MAX_CHROM_LEN
0164d2edba9f planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/resize_coordinate_window commit 7aa2429d3f53a14be7e44dc6021ed3e11dc2f080
iuc
parents: 0
diff changeset
75 if new_end > chrom_len:
0164d2edba9f planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/resize_coordinate_window commit 7aa2429d3f53a14be7e44dc6021ed3e11dc2f080
iuc
parents: 0
diff changeset
76 if args.region_boundaries == 'discard':
0164d2edba9f planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/resize_coordinate_window commit 7aa2429d3f53a14be7e44dc6021ed3e11dc2f080
iuc
parents: 0
diff changeset
77 continue
0164d2edba9f planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/resize_coordinate_window commit 7aa2429d3f53a14be7e44dc6021ed3e11dc2f080
iuc
parents: 0
diff changeset
78 elif args.region_boundaries == 'limit':
0164d2edba9f planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/resize_coordinate_window commit 7aa2429d3f53a14be7e44dc6021ed3e11dc2f080
iuc
parents: 0
diff changeset
79 new_end = chrom_len
0164d2edba9f planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/resize_coordinate_window commit 7aa2429d3f53a14be7e44dc6021ed3e11dc2f080
iuc
parents: 0
diff changeset
80 elif args.region_boundaries == 'error':
0164d2edba9f planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/resize_coordinate_window commit 7aa2429d3f53a14be7e44dc6021ed3e11dc2f080
iuc
parents: 0
diff changeset
81 out.close()
0164d2edba9f planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/resize_coordinate_window commit 7aa2429d3f53a14be7e44dc6021ed3e11dc2f080
iuc
parents: 0
diff changeset
82 stop_err('Requested expansion places region beyond chromosome end boundary of %d.' % chrom_len)
0164d2edba9f planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/resize_coordinate_window commit 7aa2429d3f53a14be7e44dc6021ed3e11dc2f080
iuc
parents: 0
diff changeset
83 new_line = '\t'.join([chrom, items[1], items[2], str(new_start), str(new_end), items[5], items[6], items[7], items[8]])
0164d2edba9f planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/resize_coordinate_window commit 7aa2429d3f53a14be7e44dc6021ed3e11dc2f080
iuc
parents: 0
diff changeset
84 out.write(new_line)
0
08b6255afde7 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/resize_coordinate_window commit b'67cff25a50ba173b0468819204d0999496f68ea9'
iuc
parents:
diff changeset
85 out.close()
08b6255afde7 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/resize_coordinate_window commit b'67cff25a50ba173b0468819204d0999496f68ea9'
iuc
parents:
diff changeset
86
1
0164d2edba9f planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/resize_coordinate_window commit 7aa2429d3f53a14be7e44dc6021ed3e11dc2f080
iuc
parents: 0
diff changeset
87 if len_file_error is not None:
4
4eb3cc1f8466 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/resize_coordinate_window commit d357611d8d49631f0eb7c5e022e80cb4c9483308"
iuc
parents: 3
diff changeset
88 print("All chrom lengths set to %d, error in chrom len file: %s" % (MAX_CHROM_LEN, len_file_error))
1
0164d2edba9f planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/resize_coordinate_window commit 7aa2429d3f53a14be7e44dc6021ed3e11dc2f080
iuc
parents: 0
diff changeset
89 if len_file_missing:
4
4eb3cc1f8466 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/resize_coordinate_window commit d357611d8d49631f0eb7c5e022e80cb4c9483308"
iuc
parents: 3
diff changeset
90 print("All chrom lengths set to %d, chrom len files are not installed." % MAX_CHROM_LEN)