Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add failing test for ancestral --genes file #1319 #1320

Closed
wants to merge 1 commit into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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 "$CRAMTMP/$TESTFILE/ancestral_mutations.json" \
> --output-sequences "$CRAMTMP/$TESTFILE/ancestral_sequences.fasta" \
> --output-translations "$CRAMTMP/$TESTFILE/ancestral_aa_sequences_%GENE.fasta" > /dev/null

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

$ grep -E "\"(ENV|PRO|nuc)\": {" "$CRAMTMP/$TESTFILE/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
Loading