-
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.
- Loading branch information
Showing
3 changed files
with
240 additions
and
5 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
41 changes: 41 additions & 0 deletions
41
tests/functional/merge/cram/merge-sequences-and-metadata.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,41 @@ | ||
SETUP | ||
|
||
$ export AUGUR="${AUGUR:-$TESTDIR/../../../../bin/augur}" | ||
|
||
Merge sequences and metadata | ||
|
||
$ cat >x.fasta <<~~ | ||
> >seq1 | ||
> ATCG | ||
> >seq2 | ||
> GCTA | ||
> >seq3 | ||
> TCGA | ||
> ~~ | ||
|
||
$ cat >y.fasta <<~~ | ||
> >seq3 | ||
> ATCG | ||
> >seq4 | ||
> GCTA | ||
> ~~ | ||
|
||
$ cat >x.tsv <<~~ | ||
> strain a b c | ||
> one X1a X1b X1c | ||
> two X2a X2b X2c | ||
> ~~ | ||
|
||
$ cat >y.tsv <<~~ | ||
> strain b c f e d | ||
> two Y2c Y2f Y2e Y2d | ||
> three Y3f Y3e Y3d | ||
> ~~ | ||
|
||
$ ${AUGUR} merge \ | ||
> --metadata X=x.tsv Y=y.tsv \ | ||
> --sequences X=x.fasta Y=y.fasta \ | ||
> --output-metadata merged.tsv \ | ||
> --output-sequences merged.fasta \ | ||
> --quiet | ||
[INFO]\x1b[0m 1 duplicated records removed (esc) |
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,36 @@ | ||
SETUP | ||
|
||
$ export AUGUR="${AUGUR:-$TESTDIR/../../../../bin/augur}" | ||
|
||
Merge sequences without metadata | ||
|
||
$ cat >x.fasta <<~~ | ||
> >seq1 | ||
> ATCG | ||
> >seq2 | ||
> GCTA | ||
> >seq3 | ||
> TCGA | ||
> ~~ | ||
|
||
$ cat >y.fasta <<~~ | ||
> >seq3 | ||
> ATCG | ||
> >seq4 | ||
> GCTA | ||
> ~~ | ||
|
||
$ ${AUGUR} merge \ | ||
> --sequences x=x.fasta y=y.fasta \ | ||
> --output-sequences - > merged.fasta | ||
[INFO]\x1b[0m 1 duplicated records removed (esc) | ||
|
||
$ cat merged.fasta | ||
>seq3 | ||
ATCG | ||
>seq4 | ||
GCTA | ||
>seq1 | ||
ATCG | ||
>seq2 | ||
GCTA |