diff --git a/macros/read_group_macros.xml b/macros/read_group_macros.xml index 8931011709e..2a0a7c97b57 100644 --- a/macros/read_group_macros.xml +++ b/macros/read_group_macros.xml @@ -23,7 +23,7 @@ #import itertools #set $input_name1 = $clean($identifier_or_name($input1)) #set $input_name2 = $clean($identifier_or_name($input2)) - #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]))]) + #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]))]) #if len($common_prefix) > 3 #return $common_prefix #else