By the way,
I also get a “ValueError” when running a MPX build (this is with the docker implementation that worked for Sars-CoV-2). But I don’t know if this is related to the same error as mentioned above, or if I just did something wrong as this is the first time I analyze MPX. But the error happened during fix_tree.py
:
Job 5: Building tree
Reason: Missing output files: results/hmpxv1/tree_fixed.nwk; Input files updated by another job: results/hmpxv1/tree_raw.nwk, results/hmpxv1/masked.fasta
python3 scripts/fix_tree.py --alignment results/hmpxv1/masked.fasta --input-tree results/hmpxv1/tree_raw.nwk --output results/hmpxv1/tree_fixed.nwk
0.00 -TreeAnc: set-up
32.33 -SequenceData: loaded alignment.
32.33 -SeqData: making compressed alignment...
78.29 -SequenceData: constructed compressed alignment...
90.48 -TreeAnc.optimize_tree: sequences...
90.48 -TreeAnc.infer_ancestral_sequences with method: probabilistic, joint
90.48 WARNING: Previous versions of TreeTime (<0.7.0) RECONSTRUCTED sequences of
tips at positions with AMBIGUOUS bases. This resulted in unexpected
behavior is some cases and is no longer done by default. If you want to
replace those ambiguous sites with their most likely state, rerun with
`reconstruct_tip_states=True` or `--reconstruct-tip-states`.
90.48 --TreeAnc._ml_anc_joint: type of reconstruction: Joint
179.51 -TreeAnc.optimize_branch_length: running branch length optimization using
jointML ancestral sequences
191.45 -TreeAnc.prune_short_branches: pruning short branches (max prob at
zero)...
194.08 -TreeAnc.infer_ancestral_sequences with method: probabilistic, joint
194.08 --TreeAnc._ml_anc_joint: type of reconstruction: Joint
262.32 --TreeAnc.optimize_tree: Iteration 1. #Nuc changed since prev
reconstructions: 3952
262.32 -TreeAnc.optimize_branch_length: running branch length optimization using
jointML ancestral sequences
272.08 -TreeAnc.prune_short_branches: pruning short branches (max prob at
zero)...
272.08 -TreeAnc.infer_ancestral_sequences with method: probabilistic, joint
272.08 --TreeAnc._ml_anc_joint: type of reconstruction: Joint
339.99 --TreeAnc.optimize_tree: Iteration 2. #Nuc changed since prev
reconstructions: 0
340.01 --TreeAnc.optimize_tree: Unconstrained sequence LH:-3627565.628224
### Checking for immediate reversions
Below NODE_0000000: ('G', 162638, 'T') in NODE_0000002 reverted in NODE_0000023
Below NODE_0000000: ('G', 168184, 'C') in NODE_0000002 reverted in NODE_0000023
Below NODE_0000000: ('G', 28709, 'T') in NODE_0000002 reverted in NODE_0000023
Below NODE_0000000: ('C', 172303, 'G') in NODE_0000002 reverted in NODE_0000023
Below NODE_0000000: ('A', 47734, 'T') in NODE_0000002 reverted in NODE_0000023
Below NODE_0000000: ('A', 186076, 'C') in NODE_0000002 reverted in NODE_0000023
Below NODE_0000000: ('A', 4835, 'G') in NODE_0000002 reverted in NODE_0000023
Below NODE_0000000: ('C', 176714, 'A') in NODE_0000002 reverted in NODE_0000023
Below NODE_0000000: ('A', 14430, 'C') in NODE_0000002 reverted in NODE_0000023
Below NODE_0000000: ('C', 4690, 'A') in NODE_0000002 reverted in NODE_0000023
Below NODE_0000000: ('A', 158786, 'G') in NODE_0000002 reverted in NODE_0000023
Below NODE_0000000: ('G', 173473, 'T') in NODE_0000002 reverted in NODE_0000023
Below NODE_0000011: ('A', 7005, 'T') in NODE_0000014 reverted in NODE_0000015
Below NODE_0000023: ('A', 6701, 'C') in NODE_0000024 reverted in NODE_0000026
Below NODE_0000023: ('T', 6697, 'C') in NODE_0000024 reverted in NODE_0000026
Below NODE_0000023: ('T', 6580, 'C') in NODE_0000024 reverted in NODE_0000026
Below NODE_0000023: ('G', 6854, 'T') in NODE_0000024 reverted in NODE_0000026
Below NODE_0000023: ('T', 6873, 'G') in NODE_0000024 reverted in NODE_0000026
Below NODE_0000023: ('G', 6698, 'T') in NODE_0000024 reverted in NODE_0000026
Below NODE_0000023: ('T', 6687, 'C') in NODE_0000024 reverted in NODE_0000026
Below NODE_0000023: ('T', 6835, 'A') in NODE_0000024 reverted in NODE_0000026
Below NODE_0000023: ('G', 6601, 'C') in NODE_0000024 reverted in NODE_0000026
Below NODE_0000023: ('T', 6828, 'C') in NODE_0000024 reverted in NODE_0000026
Below NODE_0000023: ('G', 6686, 'A') in NODE_0000024 reverted in NODE_0000026
Below NODE_0000023: ('A', 6836, 'G') in NODE_0000024 reverted in NODE_0000026
Below NODE_0000023: ('C', 6646, 'A') in NODE_0000024 reverted in NODE_0000026
Below NODE_0000023: ('G', 6809, 'A') in NODE_0000024 reverted in NODE_0000026
Below NODE_0000024: ('C', 6994, 'G') in NODE_0000026 reverted in NODE_0000027
Below NODE_0000024: ('T', 6975, 'A') in NODE_0000026 reverted in NODE_0000027
Below NODE_0000024: ('C', 6993, 'A') in NODE_0000026 reverted in NODE_0000027
Below NODE_0000024: ('T', 6935, 'C') in NODE_0000026 reverted in NODE_0000027
Below NODE_0000024: ('G', 6982, 'T') in NODE_0000026 reverted in NODE_0000027
Traceback (most recent call last):
File "/nextstrain/build/scripts/fix_tree.py", line 63, in <module>
reversion["child"].clades.remove(reversion["grandchild"])
ValueError: list.remove(x): x not in list