changeset 2:ee0d6e789958 draft

planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/hapog commit 0da1ca313d02ca780a671247e434a424fa67887b
author iuc
date Sun, 28 Jan 2024 23:46:07 +0000
parents 7d56a813fd24
children 5287036a797a
files hapog.xml
diffstat 1 files changed, 10 insertions(+), 5 deletions(-) [+]
line wrap: on
line diff
--- a/hapog.xml	Tue Oct 10 17:29:42 2023 +0000
+++ b/hapog.xml	Sun Jan 28 23:46:07 2024 +0000
@@ -1,21 +1,26 @@
 <tool id="hapog" name="Hapo-G" profile="21.05" version="@TOOL_VERSION@+galaxy@VERSION_SUFFIX@">
     <description>genome polishing</description>
     <macros>
-        <token name="@TOOL_VERSION@">1.3.6</token>
+        <token name="@TOOL_VERSION@">1.3.7</token>
         <token name="@VERSION_SUFFIX@">0</token>
     </macros>
+    <xrefs>
+        <xref type="bio.tools">hapog</xref>
+    </xrefs>
     <requirements>
         <requirement type="package" version="@TOOL_VERSION@">hapog</requirement>
     </requirements>
     <command detect_errors="exit_code"><![CDATA[
+##Compute samtools memory settings like in samtools_sort
+##use only 75% of available: https://github.com/samtools/samtools/issues/831
+addmemory=\${GALAXY_MEMORY_MB_PER_SLOT:-768} &&
+((addmemory=addmemory*75/100)) &&
 hapog
 --genome '${genome}'
 --output output/
 
-## setting default threads to 2 until
-## https://github.com/institut-de-genomique/HAPO-G/issues/34
-## gets addressed, at least
---threads \${GALAXY_SLOTS:-2}
+--threads \${GALAXY_SLOTS:-1}
+--samtools-mem \$addmemory"M"
 
 #if str( $reads.type ) == "short":
     #for $i in $reads.pe1