Skip to content

Commit

Permalink
BaseSpace run_id patch (#8)
Browse files Browse the repository at this point in the history
Fixes #7 

* Ensure run_id is captured

* fix syntax

* check run id variable
  • Loading branch information
kevinlibuit authored Sep 13, 2021
1 parent 2383a54 commit 3d218f8
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion workflows/wf_basespace_fetch.wdl
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,13 @@ task fetch_bs {

#Grab BaseSpace Run_ID from given BaseSpace Run Name
run_id=$(${bs_command} list run | grep "~{basespace_run_name}" | awk -F "|" '{ print $3 }' | awk '{$1=$1;print}' )
echo "run_id: ${run_id}"
echo "run_id: ${run_id}"

if [[ -z "${run_id}" ]]
then
echo "No run id found associated with input BaseSpace run name: ~{basespace_run_name}" >&2
exit 1
fi

#Grab BaseSpace Dataset ID from dataset lists within given run
dataset_id_array=($(${bs_command} list dataset --input-run=${run_id} | grep "~{dataset_name}" | awk -F "|" '{ print $3 }' ))
Expand Down

0 comments on commit 3d218f8

Please sign in to comment.