comparison glimmer_glimmer_to_gff.py @ 1:b7b320f4c595 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:51:01 -0400
parents a4136c1534be
children
comparison
equal deleted inserted replaced
0:a4136c1534be 1:b7b320f4c595
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)