Skip to content

Commit

Permalink
Restore ancestral functional test
Browse files Browse the repository at this point in the history
This reverts "Temporarily disable failing test" (f5323be) which should no longer fail after previous changes.
  • Loading branch information
victorlin committed Jan 22, 2025
1 parent 0d81c0e commit 5c53256
Showing 1 changed file with 14 additions and 17 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -8,23 +8,20 @@ assign mutations on the branch leading to the inferred root (differences between
the "root" used as an alignment reference and the inferred most recent common
ancestor).

TODO: enable this test after Biopython 1.85 warning is properly addressed
<https://github.com/nextstrain/augur/issues/1727>

$ ${AUGUR} ancestral \
> --tree $TESTDIR/../data/tree.nwk \
> --alignment $TESTDIR/../data/aligned.fasta \
> --annotation $TESTDIR/../data/zika_outgroup.gb \
> --root-sequence $TESTDIR/../data/zika_outgroup.gb \
> --genes ENV PRO \
> --translations $TESTDIR/../data/aa_sequences_%GENE.fasta \
> --seed 314159 \
> --output-node-data "$CRAMTMP/$TESTFILE/ancestral_mutations.json" > /dev/null
$ ${AUGUR} ancestral \
> --tree $TESTDIR/../data/tree.nwk \
> --alignment $TESTDIR/../data/aligned.fasta \
> --annotation $TESTDIR/../data/zika_outgroup.gb \
> --root-sequence $TESTDIR/../data/zika_outgroup.gb \
> --genes ENV PRO \
> --translations $TESTDIR/../data/aa_sequences_%GENE.fasta \
> --seed 314159 \
> --output-node-data "$CRAMTMP/$TESTFILE/ancestral_mutations.json" > /dev/null

Check that the reference length was correctly exported as the nuc annotation

$ python3 "$TESTDIR/../../../../scripts/diff_jsons.py" \
> --exclude-regex-paths "['seqid']" -- \
> "$TESTDIR/../data/ancestral_mutations_with_root_sequence.json" \
> "$CRAMTMP/$TESTFILE/ancestral_mutations.json"
{}
$ python3 "$TESTDIR/../../../../scripts/diff_jsons.py" \
> --exclude-regex-paths "['seqid']" -- \
> "$TESTDIR/../data/ancestral_mutations_with_root_sequence.json" \
> "$CRAMTMP/$TESTFILE/ancestral_mutations.json"
{}

0 comments on commit 5c53256

Please sign in to comment.