comparison filter.xml @ 20:f6c7f9802673 draft default tip

planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/main/tools/scanpy commit a6bd86a67a159906ff55e8b2dedda71d019d3caf
author iuc
date Wed, 03 Dec 2025 10:01:46 +0000
parents 2a55e0dae43a
children
comparison
equal deleted inserted replaced
19:1a3c5bb03947 20:f6c7f9802673
1 <tool id="scanpy_filter" name="Scanpy filter" version="@TOOL_VERSION@+galaxy3" profile="@PROFILE@"> 1 <tool id="scanpy_filter" name="Scanpy filter" version="@TOOL_VERSION@+galaxy@VERSION_SUFFIX@" profile="@PROFILE@">
2 <description>mark and subsample</description> 2 <description>mark and subsample</description>
3 <macros> 3 <macros>
4 <import>macros.xml</import> 4 <import>macros.xml</import>
5 </macros> 5 </macros>
6 <expand macro="bio_tools"/> 6 <expand macro="bio_tools"/>
85 #if str($method.filter.index.format) == 'file' 85 #if str($method.filter.index.format) == 'file'
86 with open('$method.filter.index.file', 'r') as filter_f: 86 with open('$method.filter.index.file', 'r') as filter_f:
87 filters = [str(x.strip()) for x in filter_f.readlines()] 87 filters = [str(x.strip()) for x in filter_f.readlines()]
88 filtered = filters 88 filtered = filters
89 #else 89 #else
90 #set $filters = [str(x.strip()) for x in $method.filter.index.text.split(',')] 90 #set $filters = [str(x.strip()) for x in str($method.filter.index.text).split(',')]
91 filtered = $filters 91 filtered = $filters
92 #end if 92 #end if
93 #end if 93 #end if
94 print(filtered) 94 print(filtered)
95 95