comparison sequence_format_converter.py @ 3:772bd67ef26a draft

"planemo upload for repository https://github.com/ARTbio/tools-artbio/tree/master/tools/sequence_format_converter commit 07c73df696d6d80e03f03232603d713882131625"
author artbio
date Mon, 11 May 2020 19:58:45 -0400
parents 9ce7ccd468aa
children
comparison
equal deleted inserted replaced
2:f1d59113125a 3:772bd67ef26a
36 input = open(input, 'r') 36 input = open(input, 'r')
37 block = [] 37 block = []
38 reference = ['A', 'T', 'G', 'C', 'N'] 38 reference = ['A', 'T', 'G', 'C', 'N']
39 format = '' 39 format = ''
40 try: 40 try:
41 for l in range(4): 41 for n in range(4):
42 block.append(input.readline()[:-1]) 42 block.append(input.readline()[:-1])
43 except IndexError: 43 except IndexError:
44 logging.info("File hasn't at leat four lines !") 44 logging.info("File hasn't at leat four lines !")
45 sys.exit("File hasn't at leat four lines !") 45 sys.exit("File hasn't at leat four lines !")
46 input.close() 46 input.close()