Mercurial > repos > devteam > bwa
comparison read_group_macros.xml @ 25:e188dc7a68e6 draft
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:56 +0000 |
parents | 01ac0a5fedc3 |
children |
comparison
equal
deleted
inserted
replaced
24:64f11cf59c6e | 25:e188dc7a68e6 |
---|---|
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 |