Mercurial > repos > bgruening > bionano_scaffold
changeset 3:295c0e28f4ee draft
"planemo upload for repository https://bionanogenomics.com/support/software-downloads/ commit 8afc84a2ccaa084b4eedb01a0b76e4c463931db3"
| author | bgruening | 
|---|---|
| date | Sun, 23 May 2021 17:23:03 +0000 | 
| parents | c612f2d2881c | 
| children | 8cc3862f8b8e | 
| files | bionano_scaffold.xml | 
| diffstat | 1 files changed, 35 insertions(+), 39 deletions(-) [+] | 
line wrap: on
 line diff
--- 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 @@ </macros> <expand macro="edam_ontology"/> <expand macro="requirements"/> - <version_command>perl /HybridScaffold/hybridScaffold.pl --version</version_command> <command detect_errors="exit_code"><![CDATA[ #set RefAligner = '/usr/local/bin/RefAligner' ## softlinks do not work cp '${ngs_fasta}' ./ngs.fasta && cp '${bionano_cmap}' ./bionano.cmap + && export GALAXY_MEMORY_GB=\$((\${GALAXY_MEMORY_MB:-8192}/1024)) + ## return max out of GALAXY_SLOTS and 2 --> 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 ]]> </command> <configfiles> <configfile name="vgp_mode"><