Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #1256: filter: Fix support for numerical IDs with …
…both metadata and sequences
- Loading branch information
Showing
3 changed files
with
35 additions
and
0 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
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
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,32 @@ | ||
Setup | ||
|
||
$ source "$TESTDIR"/_setup.sh | ||
|
||
Create a pair of files with numerical strain IDs. | ||
|
||
$ cat >metadata.tsv <<~~ | ||
> strain col1 | ||
> 1 A | ||
> 2 B | ||
> 3 C | ||
> ~~ | ||
$ cat >sequences.fasta <<~~ | ||
> >1 | ||
> AAAA | ||
> >2 | ||
> AAAA | ||
> >3 | ||
> AAAA | ||
> ~~ | ||
Test that nothing is filtered out due to missing sequence data. | ||
$ ${AUGUR} filter \ | ||
> --metadata metadata.tsv \ | ||
> --sequences sequences.fasta \ | ||
> --output-strains filtered_strains.txt \ | ||
> > /dev/null 2>&1 | ||
$ sort filtered_strains.txt | ||
1 | ||
2 | ||
3 |