annotate test/test-biosigner @ 3:fa80bd02055f draft default tip

planemo upload for repository https://github.com/workflow4metabolomics/biosigner.git commit 23d58cfd97411ad5d272971896914ce99e30b0ab
author ethevenot
date Tue, 06 Jun 2017 11:44:00 -0400
parents
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
3
fa80bd02055f planemo upload for repository https://github.com/workflow4metabolomics/biosigner.git commit 23d58cfd97411ad5d272971896914ce99e30b0ab
ethevenot
parents:
diff changeset
1 #!/bin/bash
fa80bd02055f planemo upload for repository https://github.com/workflow4metabolomics/biosigner.git commit 23d58cfd97411ad5d272971896914ce99e30b0ab
ethevenot
parents:
diff changeset
2
fa80bd02055f planemo upload for repository https://github.com/workflow4metabolomics/biosigner.git commit 23d58cfd97411ad5d272971896914ce99e30b0ab
ethevenot
parents:
diff changeset
3 # Constants {{{1
fa80bd02055f planemo upload for repository https://github.com/workflow4metabolomics/biosigner.git commit 23d58cfd97411ad5d272971896914ce99e30b0ab
ethevenot
parents:
diff changeset
4 ################################################################
fa80bd02055f planemo upload for repository https://github.com/workflow4metabolomics/biosigner.git commit 23d58cfd97411ad5d272971896914ce99e30b0ab
ethevenot
parents:
diff changeset
5
fa80bd02055f planemo upload for repository https://github.com/workflow4metabolomics/biosigner.git commit 23d58cfd97411ad5d272971896914ce99e30b0ab
ethevenot
parents:
diff changeset
6 PROG_PATH=$(dirname $0)
fa80bd02055f planemo upload for repository https://github.com/workflow4metabolomics/biosigner.git commit 23d58cfd97411ad5d272971896914ce99e30b0ab
ethevenot
parents:
diff changeset
7
fa80bd02055f planemo upload for repository https://github.com/workflow4metabolomics/biosigner.git commit 23d58cfd97411ad5d272971896914ce99e30b0ab
ethevenot
parents:
diff changeset
8 # MAIN {{{1
fa80bd02055f planemo upload for repository https://github.com/workflow4metabolomics/biosigner.git commit 23d58cfd97411ad5d272971896914ce99e30b0ab
ethevenot
parents:
diff changeset
9 ################################################################
fa80bd02055f planemo upload for repository https://github.com/workflow4metabolomics/biosigner.git commit 23d58cfd97411ad5d272971896914ce99e30b0ab
ethevenot
parents:
diff changeset
10
fa80bd02055f planemo upload for repository https://github.com/workflow4metabolomics/biosigner.git commit 23d58cfd97411ad5d272971896914ce99e30b0ab
ethevenot
parents:
diff changeset
11 $PROG_PATH/../biosigner_wrapper.R dataMatrix_in $PROG_PATH/../test-data/dataMatrix.tsv sampleMetadata_in $PROG_PATH/../test-data/sampleMetadata.tsv variableMetadata_in $PROG_PATH/../test-data/variableMetadata.tsv respC gender opcC full methodC all bootI 5 tierC S pvalN 0.05 seedI 123 variableMetadata_out $PROG_PATH/outputVariableMetadata.tsv
fa80bd02055f planemo upload for repository https://github.com/workflow4metabolomics/biosigner.git commit 23d58cfd97411ad5d272971896914ce99e30b0ab
ethevenot
parents:
diff changeset
12
fa80bd02055f planemo upload for repository https://github.com/workflow4metabolomics/biosigner.git commit 23d58cfd97411ad5d272971896914ce99e30b0ab
ethevenot
parents:
diff changeset
13 if ! diff "$PROG_PATH/outputVariableMetadata.tsv" "$PROG_PATH/../test-data/variableMetadata.out" ; then
fa80bd02055f planemo upload for repository https://github.com/workflow4metabolomics/biosigner.git commit 23d58cfd97411ad5d272971896914ce99e30b0ab
ethevenot
parents:
diff changeset
14 echo "Incorrect output variable metadata." >&2
fa80bd02055f planemo upload for repository https://github.com/workflow4metabolomics/biosigner.git commit 23d58cfd97411ad5d272971896914ce99e30b0ab
ethevenot
parents:
diff changeset
15 exit 1
fa80bd02055f planemo upload for repository https://github.com/workflow4metabolomics/biosigner.git commit 23d58cfd97411ad5d272971896914ce99e30b0ab
ethevenot
parents:
diff changeset
16 fi