comparison glimmer_glimmer_to_gff.py @ 1:dc0f3e494b55 draft

planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/glimmer commit a4b0969b33a68a0ea9ba12291f6694aec24f13ed
author iuc
date Tue, 30 Oct 2018 18:48:32 -0400
parents 6351903666da
children
comparison
equal deleted inserted replaced
0:6351903666da 1:dc0f3e494b55
21 for line in input_file: 21 for line in input_file:
22 line = line.strip() 22 line = line.strip()
23 if line[0] == '>': 23 if line[0] == '>':
24 header = line[1:] 24 header = line[1:]
25 else: 25 else:
26 (id, start, end, frame, score) = re.split('\s+', line) 26 (id, start, end, frame, score) = re.split(r'\s+', line)
27 if int(end) > int(start): 27 if int(end) > int(start):
28 strand = '+' 28 strand = '+'
29 else: 29 else:
30 strand = '-' 30 strand = '-'
31 (start, end) = (end, start) 31 (start, end) = (end, start)