# HG changeset patch
# User bgruening
# Date 1621790507 0
# Node ID 5afc675c2d1c7f1d2f23a4ec78a555ec1130b80d
# Parent 13529dc38551cd5bf7fa7c6c63e9b56865a5083b
"planemo upload for repository https://bionanogenomics.com/support/software-downloads/ commit 8afc84a2ccaa084b4eedb01a0b76e4c463931db3"
diff -r 13529dc38551 -r 5afc675c2d1c bionano_scaffold.xml
--- a/bionano_scaffold.xml Mon May 17 21:24:54 2021 +0000
+++ b/bionano_scaffold.xml Sun May 23 17:21:47 2021 +0000
@@ -5,23 +5,24 @@
- perl /HybridScaffold/hybridScaffold.pl --version
use a minimum 2 slots
+ && export SLOTS=\$(( \${GALAXY_SLOTS:-2} > 2 ? \${GALAXY_SLOTS:-2} : 2 ))
#if $configuration_options.configuration == 'vgp'
&& cp '${vgp_mode}' ./config.xml
+ && sed -i "s|__MEMORY__|\$GALAXY_MEMORY_GB|" ./config.xml
+ && sed -i "s|__CORES__|\$SLOTS|" ./config.xml
#else
- #import os
- #set cores = os.environ.get('GALAXY_SLOTS', 2)
- #set memory = os.environ.get('GALAXY_MEMORY_MB', 4000) / 1000
&& cp '${configuration_file}' ./config.xml
- && sed -i 's|attr="maxmem" val0=.* display|attr="maxmem" val0="$memory" display|' ./config.xml
- && sed -i 's|attr="maxthreads" val0=.* display|attr="maxthreads" val0="$cores" display|' ./config.xml
- && sed -i 's|attr="maxvirtmem" val0=.*/>|attr="maxvirtmem" val0="$cores"/>|' ./config.xml
- && sed -i 's|attr="insertThreads" val0=.*/>|attr="insertThreads" val0="$cores"/>|' ./config.xml
+ && sed -i "s|attr=\"maxmem\" val0=.* display|attr=\"maxmem\" val0=\"\$GALAXY_MEMORY_GB\" display|" ./config.xml
+ && sed -i "s|attr=\"maxthreads\" val0=.* display|attr=\"maxthreads\" val0=\"\$SLOTS\" display|" ./config.xml
+ && sed -i "s|attr=\"maxvirtmem\" val0=.*/>|attr=\"maxvirtmem\" val0=\"\$GALAXY_MEMORY_GB\"/>|" ./config.xml
+ && sed -i "s|attr=\"insertThreads\" val0=.*/>|attr=\"insertThreads\" val0=\"\$SLOTS\"/>|" ./config.xml
#end if
## output the configuration file on stdout
&& cat ./config.xml
@@ -53,24 +54,19 @@
-f
$zip_file
-o ./
- ##;
- ##sleep 1000000
]]>
-
-
-
+
+
+
@@ -100,7 +96,7 @@
-
+
@@ -136,7 +132,7 @@
-
+
@@ -178,7 +174,7 @@
-
+
@@ -201,7 +197,7 @@
-
+
@@ -238,7 +234,7 @@
-
+
@@ -275,7 +271,7 @@
-
+
@@ -348,7 +344,7 @@
-
+
@@ -453,16 +449,16 @@
-
+
-
+
-
+
-
+
@@ -488,16 +484,16 @@
-
+
-
+
-
+
-
+
@@ -531,16 +527,16 @@
-
+
-
+
-
+
-
+
@@ -572,16 +568,16 @@
-
+
-
+
-
+
-
+