From 3445a95085025faa5afa88c4d3b276fa74134156 Mon Sep 17 00:00:00 2001 From: Luke Sargent Date: Wed, 3 Mar 2021 12:09:39 -0800 Subject: [PATCH 1/3] updating bam.iobio interactive tool wrapper for new docker image --- .../interactive/interactivetool_bam_iobio.xml | 59 +++++++++---------- 1 file changed, 28 insertions(+), 31 deletions(-) diff --git a/tools/interactive/interactivetool_bam_iobio.xml b/tools/interactive/interactivetool_bam_iobio.xml index 67b844210db..e6662db0660 100644 --- a/tools/interactive/interactivetool_bam_iobio.xml +++ b/tools/interactive/interactivetool_bam_iobio.xml @@ -1,46 +1,43 @@ - + - qiaoy/iobio-bundle.bam-iobio:1.0-ondemand + anderspitman/bam.iobio.io:latest - - 80 - + + 9001 + / /tmp/app.conf && - mv /tmp/app.conf /etc/supervisor.d/app.conf && - - /usr/bin/supervisord -c /etc/supervisord.conf + #import re + mkdir -p /bam/input_files; + #set $bam_cleaned_name = re.sub('[^\w\-\.]', '_', str($baminfile.element_identifier)) + #set $bai_cleaned_name = re.sub('[^\w\-\.]', '_', str($baiinfile.element_identifier)) + ln -sf '$baminfile' '/bam/input_files/${bam_cleaned_name}' && + ln -sf '$baiinfile' '/bam/input_files/${bai_cleaned_name}' && + echo '{ "bam": "http://localhost:9999/${bam_cleaned_name}", "bai":"http://localhost:9999/${bai_cleaned_name}"}' >> /bam/config/config.json && + cd /bam/input_files && + node /iobio-gru-backend/src/static_server.js 9999 & + node /iobio-gru-backend/src/index.js --tools-dir=/iobio-gru-backend/tool_bin --app-dir=/bam; ]]> - + + - - - - BAM iobio visualisation. + Required inputs: + + 1. BAM file: binary alignment map file + + 2. BAI file: corresponding index file + + The `iobio project`_ is developed by the `Marth lab`_ at the `University of Utah Center for Genetic Discovery`_. + + .. _iobio project: https://iobio.io + .. _Marth lab: https://marthlab.org/ + .. _University of Utah Center for Genetic Discovery: https://ucgd.genetics.utah.edu/ From de3092483dbd630a9209a7c3eccd5ef246e054d3 Mon Sep 17 00:00:00 2001 From: Luke Sargent Date: Thu, 4 Mar 2021 14:54:00 -0800 Subject: [PATCH 2/3] implementing requested changes -- dockerhub->quay, versioning image, adding output, suppressing stderr for green history item --- tools/interactive/interactivetool_bam_iobio.xml | 17 ++++++++--------- 1 file changed, 8 insertions(+), 9 deletions(-) diff --git a/tools/interactive/interactivetool_bam_iobio.xml b/tools/interactive/interactivetool_bam_iobio.xml index e6662db0660..892073e8ce2 100644 --- a/tools/interactive/interactivetool_bam_iobio.xml +++ b/tools/interactive/interactivetool_bam_iobio.xml @@ -1,6 +1,6 @@ - anderspitman/bam.iobio.io:latest + quay.io/iobio/bam.iobio.io:0.3.0 @@ -12,19 +12,20 @@ #import re mkdir -p /bam/input_files; #set $bam_cleaned_name = re.sub('[^\w\-\.]', '_', str($baminfile.element_identifier)) - #set $bai_cleaned_name = re.sub('[^\w\-\.]', '_', str($baiinfile.element_identifier)) ln -sf '$baminfile' '/bam/input_files/${bam_cleaned_name}' && - ln -sf '$baiinfile' '/bam/input_files/${bai_cleaned_name}' && - echo '{ "bam": "http://localhost:9999/${bam_cleaned_name}", "bai":"http://localhost:9999/${bai_cleaned_name}"}' >> /bam/config/config.json && + ln -sf '$baminfile.metadata.bam_index' '/bam/input_files/${bam_cleaned_name}.bai' && + echo '{ "bam": "http://localhost:9999/${bam_cleaned_name}", "bai":"http://localhost:9999/${bam_cleaned_name}.bai"}' >> /bam/config/config.json && cd /bam/input_files && - node /iobio-gru-backend/src/static_server.js 9999 & - node /iobio-gru-backend/src/index.js --tools-dir=/iobio-gru-backend/tool_bin --app-dir=/bam; + node /iobio-gru-backend/src/static_server.js 9999 > /dev/null 2>&1 & + node /iobio-gru-backend/src/index.js --tools-dir=/iobio-gru-backend/tool_bin --app-dir=/bam > /dev/null 2>&1; ]]> - + + + @@ -32,8 +33,6 @@ 1. BAM file: binary alignment map file - 2. BAI file: corresponding index file - The `iobio project`_ is developed by the `Marth lab`_ at the `University of Utah Center for Genetic Discovery`_. .. _iobio project: https://iobio.io From 66c7508186d382197f9af9ed26fb73cc44af8722 Mon Sep 17 00:00:00 2001 From: Luke Sargent Date: Wed, 12 May 2021 12:25:51 -0700 Subject: [PATCH 3/3] suggested changes --- tools/interactive/interactivetool_bam_iobio.xml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/tools/interactive/interactivetool_bam_iobio.xml b/tools/interactive/interactivetool_bam_iobio.xml index 892073e8ce2..5afcd03534d 100644 --- a/tools/interactive/interactivetool_bam_iobio.xml +++ b/tools/interactive/interactivetool_bam_iobio.xml @@ -1,9 +1,9 @@ - + - quay.io/iobio/bam.iobio.io:0.3.0 + quay.io/iobio/bam.iobio.io:0.4.0 - + 9001 /