comparison gbk2fa.py @ 24:cfcf33df7fc0 draft

"planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/snpeff commit e4366b6a23223f84039a0590cf0d7079b83d8f84"
author iuc
date Wed, 13 Oct 2021 23:30:29 +0000
parents 479c4f2f4826
children 5c7b70713fb5
comparison
equal deleted inserted replaced
23:74aebe30fb52 24:cfcf33df7fc0
37 for seq_record in SeqIO.parse(input_handle, "genbank"): 37 for seq_record in SeqIO.parse(input_handle, "genbank"):
38 if args.remove_version: 38 if args.remove_version:
39 seq_id = seq_record.id.split('.')[0] 39 seq_id = seq_record.id.split('.')[0]
40 else: 40 else:
41 seq_id = seq_record.id 41 seq_id = seq_record.id
42 print('Writing FASTA record: {}'.format( seq_id )) 42 print('Writing FASTA record: {}'.format(seq_id))
43 output_handle.write(">{}\n{}\n".format(seq_id, seq_record.seq)) 43 output_handle.write(">{}\n{}\n".format(seq_id, seq_record.seq))