comparison read_group_macros.xml @ 16:47c6967dc4e0 draft default tip

planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/bwa commit 8f4d108191d52e3b60212dfcc3f57541e5f849d0
author iuc
date Fri, 19 Aug 2022 18:51:11 +0000
parents 086ba7b646e5
children
comparison
equal deleted inserted replaced
15:22b497739c9c 16:47c6967dc4e0
21 #return $clean($identifier_or_name($input1)) 21 #return $clean($identifier_or_name($input1))
22 #else 22 #else
23 #import itertools 23 #import itertools
24 #set $input_name1 = $clean($identifier_or_name($input1)) 24 #set $input_name1 = $clean($identifier_or_name($input1))
25 #set $input_name2 = $clean($identifier_or_name($input2)) 25 #set $input_name2 = $clean($identifier_or_name($input2))
26 #set $common_prefix = ''.join([c[0] for c in itertools.takewhile(lambda x: all(x[0] == y for y in x), itertools.izip(*[$input_name1, $input_name2]))]) 26 #set $common_prefix = ''.join([c[0] for c in itertools.takewhile(lambda x: all(x[0] == y for y in x), zip(*[$input_name1, $input_name2]))])
27 #if len($common_prefix) > 3 27 #if len($common_prefix) > 3
28 #return $common_prefix 28 #return $common_prefix
29 #else 29 #else
30 #return $input_name1 30 #return $input_name1
31 #end if 31 #end if