Mercurial > repos > devteam > picard
comparison read_group_macros.xml @ 28:881d7645d1bf draft
"planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/picard commit 92e89c89178482870c14cf15f38fbfd4470aa130"
author | iuc |
---|---|
date | Sat, 15 Jan 2022 12:39:30 +0000 |
parents | f6ced08779c4 |
children |
comparison
equal
deleted
inserted
replaced
27:a1f0b3f4b781 | 28:881d7645d1bf |
---|---|
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 |