changeset 7:6a8ae8cd7167 draft default tip

planemo upload for repository https://github.com/BMCV/galaxy-image-analysis/tree/master/tools/projective_transformation/ commit c86a1b93cb7732f7331a981d13465653cc1a2790
author imgteam
date Wed, 24 Apr 2024 08:13:05 +0000
parents 2f504e075496
children
files projective_transformation.py projective_transformation.xml
diffstat 2 files changed, 5 insertions(+), 3 deletions(-) [+]
line wrap: on
line diff
--- a/projective_transformation.py	Thu Apr 04 15:26:07 2024 +0000
+++ b/projective_transformation.py	Wed Apr 24 08:13:05 2024 +0000
@@ -9,6 +9,7 @@
 import argparse
 import warnings
 
+import giatools.io
 import numpy as np
 import pandas as pd
 import skimage.color
@@ -47,7 +48,7 @@
 
 
 def transform(moving_fn, fixed_fn, warp_mat, output_fn):
-    moving = skimage.io.imread(moving_fn)
+    moving = giatools.io.imread(moving_fn)
     nDims = len(moving.shape)
     assert nDims in [2, 3, 4, 5, 6], 'this tool only supports up to 6 dimensions'
 
@@ -62,7 +63,7 @@
     else:
         isMulCh = False
 
-    fixed = skimage.io.imread(fixed_fn)
+    fixed = giatools.io.imread(fixed_fn)
     if fixed.shape[-1] in [3, 4] and len(fixed.shape) > 2:
         hw_fixed = fixed.shape[-3:-1]
     else:
--- a/projective_transformation.xml	Thu Apr 04 15:26:07 2024 +0000
+++ b/projective_transformation.xml	Wed Apr 24 08:13:05 2024 +0000
@@ -4,7 +4,7 @@
         <import>creators.xml</import>
         <import>tests.xml</import>
         <token name="@TOOL_VERSION@">0.1.2</token>
-        <token name="@VERSION_SUFFIX@">3</token>
+        <token name="@VERSION_SUFFIX@">4</token>
     </macros>
     <creator>
         <expand macro="creators/bmcv"/>
@@ -21,6 +21,7 @@
         <requirement type="package" version="1.24.4">numpy</requirement>
         <requirement type="package" version="1.10.1">scipy</requirement>
         <requirement type="package" version="2021.7.2">tifffile</requirement>
+        <requirement type="package" version="0.1">giatools</requirement>
     </requirements>
     <command detect_errors="aggressive">
     <![CDATA[