本文整理匯總了Python中ruffus.Pipeline.combinations_with_replacement方法的典型用法代碼示例。如果您正苦於以下問題:Python Pipeline.combinations_with_replacement方法的具體用法?Python Pipeline.combinations_with_replacement怎麽用?Python Pipeline.combinations_with_replacement使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在類ruffus.Pipeline
的用法示例。
在下文中一共展示了Pipeline.combinations_with_replacement方法的1個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的Python代碼示例。
示例1:
# 需要導入模塊: from ruffus import Pipeline [as 別名]
# 或者: from ruffus.Pipeline import combinations_with_replacement [as 別名]
test_pipeline2.permutations(task_func=check_permutations3_task,
input=output_from("WOWWWEEE"),
filter=formatter(".*/(?P<FILE_PART>.+).tmp1$"),
tuple_size=3,
output="{path[0][0]}/{FILE_PART[0][0]}.{basename[1][0]}.{basename[2][0]}.tmp2",
extras=["{basename[0][0][0]}{basename[1][0][0]}{basename[2][0][0]}", # extra: prefices
# extra: path for 2nd input, 1st file
"{subpath[0][0][0]}",
"{subdir[0][0][0]}"])
test_pipeline2.merge(check_permutations3_merged_task,
check_permutations3_task, tempdir + "/merged.results")
test_pipeline2.combinations_with_replacement(check_combinations_with_replacement2_task,
input=output_from("WOWWWEEE"),
filter=formatter(
".*/(?P<FILE_PART>.+).tmp1$"),
tuple_size=2,
output="{path[0][0]}/{FILE_PART[0][0]}.{basename[1][0]}.tmp2",
extras=["{basename[0][0][0]}{basename[1][0][0]}", # extra: prefices
# extra: path for 2nd input, 1st file
"{subpath[0][0][0]}",
"{subdir[0][0][0]}"])
test_pipeline2.merge(check_combinations_with_replacement2_merged_task,
check_combinations_with_replacement2_task, tempdir + "/merged.results")
test_pipeline2.combinations_with_replacement(task_func=check_combinations_with_replacement3_task,
input=output_from("WOWWWEEE"),
filter=formatter(
".*/(?P<FILE_PART>.+).tmp1$"),
tuple_size=3,
output="{path[0][0]}/{FILE_PART[0][0]}.{basename[1][0]}.{basename[2][0]}.tmp2",
extras=["{basename[0][0][0]}{basename[1][0][0]}{basename[2][0][0]}", # extra: prefices
# extra: path for 2nd input, 1st file
"{subpath[0][0][0]}",