comparison bowtie2_macros.xml @ 27:a6d65b0c67af draft

"planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/bowtie2 commit d142d9cd5a8db8a87184c4b7622ea8de8355894f"
author iuc
date Sat, 10 Jul 2021 07:45:14 +0000
parents 09b2cdb7ace5
children cd659e8cc5fa
comparison
equal deleted inserted replaced
26:09b2cdb7ace5 27:a6d65b0c67af
22 #return $clean($identifier_or_name($input1)) 22 #return $clean($identifier_or_name($input1))
23 #else 23 #else
24 #import itertools 24 #import itertools
25 #set $input_name1 = $clean($identifier_or_name($input1)) 25 #set $input_name1 = $clean($identifier_or_name($input1))
26 #set $input_name2 = $clean($identifier_or_name($input2)) 26 #set $input_name2 = $clean($identifier_or_name($input2))
27 #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]))]) 27 #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]))])
28 #if len($common_prefix) > 3 28 #if len($common_prefix) > 3
29 #return $common_prefix 29 #return $common_prefix
30 #else 30 #else
31 #return $input_name1 31 #return $input_name1
32 #end if 32 #end if