diff datamash-transpose.xml @ 10:3dcdff1ab5ac draft default tip

planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/main/tools/datamash commit 178914e2f45c9d80bd4d88377c634593246b9f36
author iuc
date Tue, 18 Nov 2025 22:08:08 +0000
parents a1cdc32ea989
children
line wrap: on
line diff
--- a/datamash-transpose.xml	Thu Mar 23 20:46:30 2023 +0000
+++ b/datamash-transpose.xml	Tue Nov 18 22:08:08 2025 +0000
@@ -2,6 +2,7 @@
     <description>rows/columns in a tabular file</description>
     <macros>
         <import>macros.xml</import>
+        <token name="@VERSION_SUFFIX@">0</token>
     </macros>
     <edam_topics>
         <edam_topic>topic_3570</edam_topic> <!-- Pure math / linear algebra -->
@@ -13,7 +14,7 @@
     <expand macro="stdio"/>
     <command><![CDATA[
         #import os
-        #set file_size_MB = os.path.getsize(str($in_file)) / (1024 * 1024)
+        #set file_size_MB = $in_file.get_size() / (1024 * 1024)
         #set size_threshold_MB = 1024
         #if $file_size_MB <= $size_threshold_MB:
             datamash transpose @FIELD_SEPARATOR@ < $in_file > $out_file