Mercurial > repos > marie-tremblay-metatoul > normalization
annotate test-normalization.sh @ 6:221cbd549c40 draft default tip
planemo upload for repository https://github.com/workflow4metabolomics/normalization commit 4bbd4d65e954192aff1a4d210001deb625667136
author | workflow4metabolomics |
---|---|
date | Tue, 30 Jul 2019 09:43:57 -0400 |
parents | |
children |
rev | line source |
---|---|
6
221cbd549c40
planemo upload for repository https://github.com/workflow4metabolomics/normalization commit 4bbd4d65e954192aff1a4d210001deb625667136
workflow4metabolomics
parents:
diff
changeset
|
1 #!/bin/bash |
221cbd549c40
planemo upload for repository https://github.com/workflow4metabolomics/normalization commit 4bbd4d65e954192aff1a4d210001deb625667136
workflow4metabolomics
parents:
diff
changeset
|
2 |
221cbd549c40
planemo upload for repository https://github.com/workflow4metabolomics/normalization commit 4bbd4d65e954192aff1a4d210001deb625667136
workflow4metabolomics
parents:
diff
changeset
|
3 # Variables |
221cbd549c40
planemo upload for repository https://github.com/workflow4metabolomics/normalization commit 4bbd4d65e954192aff1a4d210001deb625667136
workflow4metabolomics
parents:
diff
changeset
|
4 script_dir="${0%/*}" |
221cbd549c40
planemo upload for repository https://github.com/workflow4metabolomics/normalization commit 4bbd4d65e954192aff1a4d210001deb625667136
workflow4metabolomics
parents:
diff
changeset
|
5 normalization_script=$script_dir/galaxy/normalization/NmrNormalization_wrapper.R |
221cbd549c40
planemo upload for repository https://github.com/workflow4metabolomics/normalization commit 4bbd4d65e954192aff1a4d210001deb625667136
workflow4metabolomics
parents:
diff
changeset
|
6 data_dir=$script_dir/galaxy/normalization/test-data |
221cbd549c40
planemo upload for repository https://github.com/workflow4metabolomics/normalization commit 4bbd4d65e954192aff1a4d210001deb625667136
workflow4metabolomics
parents:
diff
changeset
|
7 |
221cbd549c40
planemo upload for repository https://github.com/workflow4metabolomics/normalization commit 4bbd4d65e954192aff1a4d210001deb625667136
workflow4metabolomics
parents:
diff
changeset
|
8 # Run script |
221cbd549c40
planemo upload for repository https://github.com/workflow4metabolomics/normalization commit 4bbd4d65e954192aff1a4d210001deb625667136
workflow4metabolomics
parents:
diff
changeset
|
9 Rscript $normalization_script dataMatrix $data_dir/MTBLS1_bucketedData.tabular scalingMethod Total graphType Overlay logOut norm.log dataMatrixOut $script_dir/matrixout.tabular || exit 1 |
221cbd549c40
planemo upload for repository https://github.com/workflow4metabolomics/normalization commit 4bbd4d65e954192aff1a4d210001deb625667136
workflow4metabolomics
parents:
diff
changeset
|
10 |
221cbd549c40
planemo upload for repository https://github.com/workflow4metabolomics/normalization commit 4bbd4d65e954192aff1a4d210001deb625667136
workflow4metabolomics
parents:
diff
changeset
|
11 # Test output file |
221cbd549c40
planemo upload for repository https://github.com/workflow4metabolomics/normalization commit 4bbd4d65e954192aff1a4d210001deb625667136
workflow4metabolomics
parents:
diff
changeset
|
12 diff $data_dir/MTBLS1_bucketedData_normalized.tabular $script_dir/matrixout.tabular || exit 2 |