Convert a fasta file to Newick format My problem is (should be) pretty simple.
I have a series of 10 sequences which I wish to convert into a Newick format file - what would be good software to do this? I've tried using Jalview and am getting nowhere.
Any help appreciated.
The best would be Biopython using AlignIO, given they are all in a single file otherise SeqIO. The alignment approach,
from Bio import AlignIO
align = AlignIO.read(&quot;/home/path/myseq.fa&quot;, &quot;fasta&quot;)
print(align)
with open(&quot;/home/path/example.nex&quot;, &quot;w&quot;) as handle:
    SeqIO.write(align, handle, &quot;nexus&quot;)

(not debugged)
MEGAX or ClustalX which are nice GUI's that will also work. If you've not got Biopython installed then ClustalX is probably the easiest.