-
Notifications
You must be signed in to change notification settings - Fork 128
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
1 changed file
with
27 additions
and
0 deletions.
There are no files selected for viewing
27 changes: 27 additions & 0 deletions
27
tests/functional/filter/cram/filter-query-backtick-quoting.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,27 @@ | ||
Setup | ||
|
||
$ source "$TESTDIR"/_setup.sh | ||
|
||
Create metadata file for testing. | ||
|
||
$ cat >metadata.tsv <<~~ | ||
> strain region name | ||
> SEQ_1 A | ||
> SEQ_2 A | ||
> SEQ_3 B | ||
> SEQ_4 | ||
> ~~ | ||
The 'region name' column should be query-able by backtick quoting. | ||
This does not currently work due to a bug. | ||
$ ${AUGUR} filter \ | ||
> --metadata metadata.tsv \ | ||
> --query '(`region name` == "A")' \ | ||
> --output-strains filtered_strains.txt > /dev/null | ||
ERROR: Could not infer columns from the pandas query. If the query is valid, please specify columns using --query-columns. | ||
[2] | ||
$ sort filtered_strains.txt | ||
sort: No such file or directory | ||
[2] |