Skip to content

Commit

Permalink
Add test for ancestral --genes file
Browse files Browse the repository at this point in the history
  • Loading branch information
corneliusroemer authored and victorlin committed Dec 20, 2023
1 parent b6f63ff commit aae0640
Show file tree
Hide file tree
Showing 2 changed files with 24 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
Setup

$ source "$TESTDIR"/_setup.sh

Infer ancestral nucleotide and amino acid sequences, using a genes file.

$ ${AUGUR} ancestral \
> --tree $TESTDIR/../data/tree.nwk \
> --alignment $TESTDIR/../data/aligned.fasta \
> --annotation $TESTDIR/../data/zika_outgroup.gb \
> --genes $TESTDIR/../data/genes.txt \
> --translations $TESTDIR/../data/aa_sequences_%GENE.fasta \
> --output-node-data ancestral_mutations.json \
> --output-sequences ancestral_sequences.fasta \
> --output-translations ancestral_aa_sequences_%GENE.fasta > /dev/null

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

$ grep -E "\"(ENV|PRO|nuc)\": {" ancestral_mutations.json
"ENV": {
"PRO": {
"nuc": {
2 changes: 2 additions & 0 deletions tests/functional/ancestral/data/genes.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
ENV
PRO

0 comments on commit aae0640

Please sign in to comment.