Skip to content

Commit 3de0737

Browse files
committed
Add MAF header
1 parent 2e375df commit 3de0737

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

parsnp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -170,6 +170,7 @@ def xmfa_to_maf(xmfa_path, maf_path, all_input_paths):
170170

171171
seqid_pattern = re.compile(r'^cluster(\d+) s(\d+):p(\d+)')
172172
with open(maf_path, 'w') as maf_out:
173+
maf_out.write("##maf version=1 program=parsnp\n")
173174
for aln in AlignIO.parse(xmfa_path, "mauve"):
174175
for rec_idx, rec in enumerate(aln):
175176
aln_len = rec.annotations["end"] - rec.annotations["start"]

0 commit comments

Comments
 (0)