view utils/case_to_fasta.py @ 1168:b556c96c6719
blocks3d/www Makefile: never check certificates of github, they are too confusing for wget
author |
Daniil Alexeyevsky <dendik@kodomo.fbb.msu.ru> |
date |
Mon, 26 May 2014 17:20:29 +0400 |
parents |
|
children |
|
line source
4 from allpy import protein, markups
7 self, keyword = sys.argv
10 self = os.path.basename(sys.argv[0])
11 print "Usage: %s -s < infile.markup > outfile.fasta" % self
13 print "Accept input alignment in markup format on stdin."
14 print "Print the alignment to stdout in fasta format with case preserved."
20 aln = protein.Alignment().append_file(infile, format='markup')
22 for seq in aln.sequences:
24 if monomer.case == 'lower':
25 monomer.code1 = monomer.code1.lower()
27 monomer.code1 = monomer.code1.upper()
31 # vim: set et ts=4 sts=4 sw=4: