-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Adding new feature that allows for multiple alignments + tests
- Loading branch information
Showing
4 changed files
with
118 additions
and
31 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,17 @@ | ||
Run pathogen-embed with MDS on a H3N2 HA and H3N2 NA alignments. | ||
|
||
$ pathogen-embed \ | ||
> --alignment $TESTDIR/data/h3n2_ha_alignment.fasta $TESTDIR/data/h3n2_na_alignment.fasta \ | ||
> --output-dataframe embed_mds.csv \ | ||
> mds \ | ||
> --components 2 \ | ||
> --stress embed_mds_stress.csv | ||
|
||
There should be one record in the embedding per input sequence in the alignment. | ||
|
||
$ [[ $(sed 1d embed_mds.csv | wc -l) == $(grep "^>" $TESTDIR/data/h3n2_ha_alignment.fasta | wc -l) ]] | ||
|
||
There should be 1 entry for the stress of the MDS embedding. | ||
|
||
$ wc -l < embed_mds_stress.csv | ||
\s*1 (re) |
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,17 @@ | ||
Run pathogen-embed with PCA on a H3N2 HA and H3N2 NA alignments. | ||
|
||
$ pathogen-embed \ | ||
> --alignment $TESTDIR/data/h3n2_ha_alignment.fasta $TESTDIR/data/h3n2_na_alignment.fasta \ | ||
> --output-dataframe embed_pca.csv \ | ||
> pca \ | ||
> --components 2 \ | ||
> --explained-variance embed_pca_variance.csv | ||
|
||
There should be one record in the embedding per input sequence in the alignment. | ||
|
||
$ [[ $(sed 1d embed_pca.csv | wc -l) == $(grep "^>" $TESTDIR/data/h3n2_ha_alignment.fasta | wc -l) ]] | ||
|
||
There should be 2 components of variance explained. | ||
|
||
$ sed 1d embed_pca_variance.csv | wc -l | ||
\s*2 (re) |
The length tests at the end of this line are comparing the length of the file names and not the dimensions of the two datasets.