生物信息

工具 | ParaFly

2021-09-18  本文已影响0人  shwzhao

很多重复命令(如:建几万个基因树)用 for 循环串行太慢了,可以使用 ParaFly 并行。

ParaFly -c cmd.sh -CPU 20
Number of  Commands: 22967


All commands completed successfully. :-)

$ ParaFly
##########################################################
#
# Usage: ParaFly (opts)
#
# Required:
#   -c <str>              :filename containing list of bash-style commands to execute.
#   -CPU <int>            :number_of_threads
#
# Optional:
#   -shuffle              :randomly shuffles the command order.
#   -failed_cmds <str>    :filename to capture failed commands.  default("FailedCommands")
#   -v                    :simple progress monitoring.
#   -vv                   :increased verbosity in progress monitoring.
#
##########################################################

Note: This process creates a file named based on your commands filename with a .completed extension.
This enables a resume functionality, where if rerun, only those commands not completed successfully will be reprocessed.
上一篇 下一篇

猜你喜欢

热点阅读