Hello,
I'm trying to automate clustalw workflow, but as result I need 3 output files .fasta .nexus and .dnd. I've tried many parameters but as result i get always only 2 files .fasta or .nexus and .dnd. The command I'm trying to enter into linux terminal :
clustalw -infile=third.fna -align -type=DNA -score=PERCENT \
-outfile=out.fasta -output=FASTA -outfile=out.nexus \
-output=NEXUS -maxdiv=45
Do anyone have idea how should I fix my command either it's just impossible for clustalw to ouput that amount of files at once?
Clustal won’t give you both, but converting between one or the other won’t be difficult. You will always get the .dnd file and one of your two output choices as you’ve observed.
You can then use a small converter (check out BioPython’s SeqIO.convert,
seqret
from the EMBOSS tools, and many others).I dont't think clustalW is able to do this indeed.
Might be overkill but why not run each cmdline twice: once for the fasta output and once for the nexus dnd output.
Time is valuable for me and my real data could take it very long. Do you know any command line programs that could convert for me fasta to nexus?
You can use readseq for format conversion (e.g. Nexus > Fasta).
fair point.
I know of this one ForCon , pretty old stuff though. I think that there must be more (read: recent) available though. Isn't for instance MEGA not able to do format conversion?