Skip to content
Snippets Groups Projects
Commit ef2c6624 authored by Alex Kanitz's avatar Alex Kanitz
Browse files

Merge branch 'fix_labkey_test' into 'dev'

fix(prepare_inputs): support relative paths

See merge request !68
parents 416a60f7 402da16e
No related branches found
No related tags found
2 merge requests!76Bump version to v0.2.0,!68fix(prepare_inputs): support relative paths
Pipeline #11001 passed
...@@ -12,8 +12,8 @@ test: ...@@ -12,8 +12,8 @@ test:
# add code quality tests here # add code quality tests here
# add unit tests here # add unit tests here
# add script tests here # add script tests here
# - bash tests/test_scripts_labkey_to_snakemake_table/test.sh - bash tests/test_scripts_prepare_inputs_table/test.sh
# - bash tests/test_scripts_labkey_to_snakemake_api/test.sh - bash tests/test_scripts_prepare_inputs_labkey/test.sh
- bash tests/test_alfa/test.sh - bash tests/test_alfa/test.sh
# add integration tests here # add integration tests here
- bash tests/test_create_dag_image/test.sh - bash tests/test_create_dag_image/test.sh
......
...@@ -254,10 +254,10 @@ replacing the placeholders with the appropriate values (check out the ...@@ -254,10 +254,10 @@ replacing the placeholders with the appropriate values (check out the
help screen with option '--help' for further options and information): help screen with option '--help' for further options and information):
```bash ```bash
python scripts/labkey_to_snakemake.py \ python scripts/prepare_inputs.py \
--labkey-domain="my.labkey.service.io" --labkey-domain="my.labkey.service.io"
--labkey-domain="/my/project/path" --labkey-domain="/my/project/path"
--input-to-output-mapping="scripts/labkey_to_snakemake.dict.tsv" \ --input-to-output-mapping="scripts/prepare_inputs.dict.tsv" \
--resources-dir="/path/to/my/genome/resources" \ --resources-dir="/path/to/my/genome/resources" \
--output-table="config/my_run/samples.tsv" \ --output-table="config/my_run/samples.tsv" \
--config_file="config/my_run/config.yaml" \ --config_file="config/my_run/config.yaml" \
......
057cbd5757ca7f0b94909eeeca531af3 config.yaml
34422785b7cc77d1aac73d25e767dc2d samples.tsv
...@@ -30,10 +30,10 @@ password ${LABKEY_PASS} ...@@ -30,10 +30,10 @@ password ${LABKEY_PASS}
EOF EOF
# Run tests # Run tests
python "../../scripts/labkey_to_snakemake.py" \ python "../../scripts/prepare_inputs.py" \
--labkey-domain="${LABKEY_HOST}" \ --labkey-domain="${LABKEY_HOST}" \
--labkey-path="/Zavolan Group/TEST_LABKEY" \ --labkey-path="/Zavolan Group/TEST_LABKEY" \
--input-to-output-mapping="../../scripts/labkey_to_snakemake.dict.tsv" \ --input-to-output-mapping="../../scripts/prepare_inputs.dict.tsv" \
--resources-dir="../input_files" \ --resources-dir="../input_files" \
--output-table="samples.tsv" \ --output-table="samples.tsv" \
--config-file="config.yaml" \ --config-file="config.yaml" \
......
40bd0f0fcecdd0d9bc932f63c2811478 config.yaml
c8dcc5a203e9046806c4090525960151 samples.tsv
...@@ -21,13 +21,15 @@ script_dir="$(cd "$(dirname "${BASH_SOURCE[0]}")" >/dev/null 2>&1 && pwd)" ...@@ -21,13 +21,15 @@ script_dir="$(cd "$(dirname "${BASH_SOURCE[0]}")" >/dev/null 2>&1 && pwd)"
cd $script_dir/ cd $script_dir/
# Run tests # Run tests
python "../../scripts/labkey_to_snakemake.py" \ python "../../scripts/prepare_inputs.py" \
--input-to-output-mapping="../../scripts/labkey_to_snakemake.dict.tsv" \ --input-to-output-mapping="../../scripts/prepare_inputs.dict.tsv" \
--resources-dir="../input_files" \ --resources-dir="../input_files" \
--output-table="samples.tsv" \ --output-table="samples.tsv" \
--config-file="config.yaml" \ --config-file="config.yaml" \
--multimappers='10' \ --multimappers='10' \
--logo="../../images/logo.128px.png" \ --logo="../../images/logo.128px.png" \
--output-dir="" \
--no-process-paths \
"input_table.tsv" "input_table.tsv"
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment