comparison glimmer_glimmer_to_gff.py @ 1:239a68a49505 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:49:40 -0400
parents 5631611d5bb8
children
comparison
equal deleted inserted replaced
0:5631611d5bb8 1:239a68a49505
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)