-
Notifications
You must be signed in to change notification settings - Fork 130
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Clean up and validate ancestral arguments
Reorganizes arguments for ancestral subcommand into logical argument groups and adds validation and a functional test for new amino acid sequence inputs that must all be provided when any are.
- Loading branch information
Showing
2 changed files
with
68 additions
and
24 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
15 changes: 15 additions & 0 deletions
15
tests/functional/ancestral/cram/infer-amino-acid-sequences-with-missing-arguments.t
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
Setup | ||
|
||
$ source "$TESTDIR"/_setup.sh | ||
|
||
Try to infer ancestral amino acid sequences without all required arguments. | ||
This should fail. | ||
|
||
$ ${AUGUR} ancestral \ | ||
> --tree $TESTDIR/../data/tree.nwk \ | ||
> --alignment $TESTDIR/../data/aligned.fasta \ | ||
> --annotation $TESTDIR/../data/zika_outgroup.gb \ | ||
> --genes ENV PRO \ | ||
> --output-node-data "$CRAMTMP/$TESTFILE/ancestral_mutations.json" > /dev/null | ||
ERROR: For amino acid sequence reconstruction, you must provide an annotation file, a list of genes, and a template path to amino acid sequences. | ||
[2] |