-
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.
Merge pull request #21 from blab/csv-error-check
Csv error check
- Loading branch information
Showing
4 changed files
with
44 additions
and
4 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
Run pathogen cluster and check that error message is thrown when non csv input is given for embedding | ||
|
||
$ pathogen-cluster \ | ||
> --embedding embed_pca.tsv \ | ||
> --label-attribute pca_label \ | ||
> --distance-threshold 0.5 \ | ||
> --output-dataframe cluster_embed_pca.csv | ||
You must supply a CSV file for the embedding. | ||
[1] |
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,9 @@ | ||
Run pathogen-embed with a tsv instead of a csv to see if it throws an error. | ||
|
||
$ pathogen-embed \ | ||
> --alignment $TESTDIR/data/h3n2_ha_alignment.fasta \ | ||
> --output-dataframe embed_t-sne.tsv \ | ||
> t-sne \ | ||
> --perplexity 25 | ||
You must supply a CSV file for distance_matrix. | ||
[1] |
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,11 @@ | ||
Run pathogen embed and check that embedding parameters with not csv input fails | ||
|
||
$ pathogen-embed \ | ||
> --alignment $TESTDIR/data/h3n2_ha_alignment.fasta \ | ||
> --output-dataframe embed_t-sne.tsv \ | ||
> --output-figure figure.png \ | ||
> --embedding-parameters value.tsv \ | ||
> t-sne \ | ||
> --perplexity 25 | ||
You must supply a CSV file for embedding parameters. | ||
[1] |