Skip to content

Commit

Permalink
Merge pull request #17 from mlin/mlin-fix-Fetch_SRA_to_BAM
Browse files Browse the repository at this point in the history
fix Fetch_SRA_to_BAM use of $PLATFORM
  • Loading branch information
dpark01 authored Apr 5, 2020
2 parents 36e79b2 + 5a856b1 commit b2786ba
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pipes/WDL/tasks/tasks_ncbi_tools.wdl
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ task Fetch_SRA_to_BAM {
}

command {
set -ex -o pipefail
set -euxo pipefail

# pull reads from SRA and make a fully annotated BAM
/opt/docker/scripts/sra_to_ubam.sh ${SRA_ID} ${SRA_ID}.bam
Expand All @@ -23,7 +23,7 @@ task Fetch_SRA_to_BAM {
'.EXPERIMENT_PACKAGE_SET.EXPERIMENT_PACKAGE.EXPERIMENT.PLATFORM | keys[] as $k | "\($k)"' \
| tee OUT_PLATFORM
cat ${SRA_ID}.json | jq -r \
.EXPERIMENT_PACKAGE_SET.EXPERIMENT_PACKAGE.EXPERIMENT.PLATFORM.$PLATFORM.INSTRUMENT_MODEL \
.EXPERIMENT_PACKAGE_SET.EXPERIMENT_PACKAGE.EXPERIMENT.PLATFORM.$(<OUT_PLATFORM).INSTRUMENT_MODEL \
| tee OUT_MODEL
cat ${SRA_ID}.json | jq -r \
'.EXPERIMENT_PACKAGE_SET.EXPERIMENT_PACKAGE.SAMPLE.IDENTIFIERS.EXTERNAL_ID|select(.namespace == "BioSample")|.content' \
Expand Down

0 comments on commit b2786ba

Please sign in to comment.