Combining DNA and morphological alignments with overlapping taxa (duplicated sequence name error) #522
|
Hello, I am trying to combine molecular and morphological datasets in IQ-TREE 3. My datasets are: Molecular alignment: molecular.phy 128 taxa ~3.2 million sites (UCE + multilocus DNA) Morphological alignment: morpho.phy 90 taxa 196 discrete characters Many taxa occur in both datasets, but the sampling is not identical. Following the approach suggested in Discussion #213, I created a NEXUS partition file referencing the two alignments: #nexus Then I ran: iqtree3 -p partitions.nex -m MFP -B 1000 -alrt 1000 -T AUTO IQ-TREE successfully loads the first alignment: Loading 2 partitions... and then the morphological alignment: Reading alignment file morpho.phy ... However it stops with the error: ERROR: Duplicated sequence name farlowella_amazona26397 This happens because several taxa occur in both alignments. My question: Is it possible in IQ-TREE to combine multiple alignment files that share taxon names (representing the same taxa across partitions), or should the datasets first be merged into a single supermatrix with missing data ("?")? What is the recommended approach for combining molecular and morphological datasets with partially overlapping taxon sampling? Thank you for your help. |
Replies: 1 comment 2 replies
|
Hi, can you please share your two alignments so we can take a look? Rob |
For what it's worth (and I'm not yet sure how much that is, but let's see...), Claude code thinks that this error is almost certainly because you have a duplicate name in your morpho alignment. If you can share your actual log file, that would also help.
Here's what Claude actually said:
Hi Fernanda,
IQ-TREE fully supports combined molecular + morphological partitioned analyses with overlapping taxa — your partition file approach is correct for this. When taxa appear in both files, IQ-TREE automatically builds a union of all taxa and fills in missing data where a taxon is absent from a partition.
I'd recommend explicitly specifying the sequence type for each partition to avoid auto-detect…