Bioinfo::PBS::Queue - used to submit a batch of task to Torque cluster
version 0.1.15
use Bioinfo::PBS; use Bioinfo::PBS::Queue; my $para = { cpu => 2, name => 'blast', cmd => 'ls -alh; pwd', }; my $pbs_obj = Bioinfo::PBS->new($para); # three tasks are running at the same time my $queue_obj = Bioinfo::PBS::Queue->new(name => 'blastnr', parallel => 3); # all tasks will be running at the same time if parallel is not setted my $queue_obj = Bioinfo::PBS::Queue->new(name => 'blastnr'); $queue_obj->add_tasks($pbs_obj); $queue_obj->add_tasks($pbs_obj); $queue_obj->execute;
This module is created to simplify process of task submitting in PBS system, and waiting for the finish of multiple tasks.
cpu number that will apply
one or more object of Bioinfo::PBS can be added to queue. if a Bioinfo::PBS::Queque be added, all its tasks are added. if a hashref can be passed, a object of Bioinfo::PBS will be created and added to this queue, for example: {cpu =>2, name =>'blast', cmd=>"ls -alh", priority=>1}
run all tasks in the queue by the order
Yan Xueqing <yanxueqing621@163.com>
This software is copyright (c) 2017 by Yan Xueqing.
This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself.
To install Bioinfo, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Bioinfo
CPAN shell
perl -MCPAN -e shell install Bioinfo
For more information on module installation, please visit the detailed CPAN module installation guide.