<div dir="ltr"><div dir="ltr"><div dir="ltr"><div>I have :</div><div><br></div><div>aligner = PairwiseAligner()</div><div>alignments = aligner.align(chain1, chain2)</div><div><br></div><div>how to write alignments[0] as a text file containing the alignment in fasta format. I went through the documentation below, and I'm not really sure I follow. Do I have to save the alignments as text first, then, read it using AlingIO then write it using SeqIO? </div><div><br></div><div><a href="http://biopython.org/DIST/docs/api/Bio.AlignIO-module.html">http://biopython.org/DIST/docs/api/Bio.AlignIO-module.html</a><br></div><div><br></div><div>A code snippet would be most helpful.</div><div><br>Regards. </div></div></div></div>