Wednesday, August 17, 2011

Convert Clustal to MAF (Multiple Alignment Format) (TBD)

http://biopython.org/wiki/AlignIO
http://web.archiveorange.com/archive/v/5dAwXKUXOF6l2xgl9yNy

from Bio import AlignIO
 
input_handle = open("example.clw", "rU")
output_handle = open("example.maf", "w")
 
alignments = AlignIO.parse(input_handle, "clustal")
AlignIO.write(alignments, output_handle, "maf")  # TBD ...
 
output_handle.close()
input_handle.close()

No comments: