Skip to content
Snippets Groups Projects
Commit 2fad2ce6 authored by Hervé  MENAGER's avatar Hervé MENAGER
Browse files

upload all workflows from workflow-is-cwl/workflows to Galaxy

parent 2e533443
No related branches found
No related tags found
No related merge requests found
Pipeline #12591 passed
set -m set -m
. /app/galaxy/.venv/bin/activate . /app/galaxy/.venv/bin/activate
cwltool --pack /app/workflow-is-cwl/workflows/cmsearch-multimodel-wf.cwl > /app/workflow-is-cwl/workflows/cmsearch-multimodel-wf.packed.cwl for filename in /app/workflow-is-cwl/workflows/*.cwl; do
cat /app/workflow-is-cwl/workflows/cmsearch-multimodel-wf.packed.cwl cwltool --pack $filename > "$filename.packed"
done
sh /app/start.sh & sh /app/start.sh &
GALAXY_PID=$! GALAXY_PID=$!
echo "Galaxy PID is $GALAXY_PID" echo "Galaxy PID is $GALAXY_PID"
......
from bioblend.galaxy import GalaxyInstance from bioblend.galaxy import GalaxyInstance
import json import json
import sys, glob
BASE_URL='http://localhost:8080' BASE_URL='http://localhost:8080'
KEY='111111111111111111111' KEY='111111111111111111111'
gi = GalaxyInstance(url=BASE_URL, key=KEY) gi = GalaxyInstance(url=BASE_URL, key=KEY)
cwl_wf = json.load(open('/app/workflow-is-cwl/workflows/cmsearch-multimodel-wf.packed.cwl','r')) for filename in glob.glob('/app/workflow-is-cwl/workflows/*.cwl.packed'):
gi.workflows.import_workflow_dict(cwl_wf) try:
cwl_wf = json.load(open(filename,'r'))
gi.workflows.import_workflow_dict(cwl_wf)
except:
print "failed uploading %s" % filename
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