Mercurial > repos > devteam > picard
comparison read_group_macros.xml @ 24:e65f2d5fd3d8 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:38:18 +0000 |
| parents | 2474cd44d10a |
| children |
comparison
equal
deleted
inserted
replaced
| 23:4740a2548206 | 24:e65f2d5fd3d8 |
|---|---|
| 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 |
