# HG changeset patch
# User bgruening
# Date 1621790583 0
# Node ID 295c0e28f4eeeb0e9c9fb9e3a3e16b414780cc14
# Parent c612f2d2881c4dea0dfe74e1d2fcb5a56ae58fc1
"planemo upload for repository https://bionanogenomics.com/support/software-downloads/ commit 8afc84a2ccaa084b4eedb01a0b76e4c463931db3"
diff -r c612f2d2881c -r 295c0e28f4ee bionano_scaffold.xml
--- a/bionano_scaffold.xml Mon May 17 21:26:16 2021 +0000
+++ b/bionano_scaffold.xml Sun May 23 17:23:03 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 @@
-
+
-
+
-
+
-
+