File Coverage

blib/lib/BioX/Workflow/Command.pm
Criterion Covered Total %
statement 8 8 100.0
branch n/a
condition n/a
subroutine 3 3 100.0
pod n/a
total 11 11 100.0


line stmt bran cond sub pod time code
1             package BioX::Workflow::Command;
2              
3 2     2   906698 use v5.10;
  2         9  
4             our $VERSION = '2.2.1';
5              
6 2     2   688 use MooseX::App qw(Color);
  2         1692318  
  2         10  
7              
8             app_strict 0;
9              
10             with 'BioX::Workflow::Command::Utils::Log';
11             with 'BioSAILs::Utils::Plugin';
12             with 'BioSAILs::Utils::LoadConfigs';
13              
14             option '+config_base' => (
15             is => 'rw',
16             default => '.bioxworkflow',
17             );
18              
19             sub BUILD {}
20              
21             after 'BUILD' => sub {
22             my $self = shift;
23              
24             return unless $self->plugins;
25              
26             $self->app_load_plugins( $self->plugins );
27             $self->parse_plugin_opts( $self->plugins_opts );
28              
29             ##Must reload the configs to get any options from the plugins
30             if ( $self->has_config_files ) {
31             $self->load_configs;
32             }
33             };
34              
35              
36 2     2   2985882 no Moose;
  2         5  
  2         13  
37             __PACKAGE__->meta->make_immutable;
38              
39             1;
40              
41             __END__
42              
43             =encoding utf-8
44              
45             =head1 NAME
46              
47             BioX::Workflow::Command - Opinionated Bioinformatics Genomics Workflow Creator
48              
49             =head1 SYNOPSIS
50              
51             biox run -w workflow.yml
52             biox -h
53              
54             =head1 documentation
55              
56             Full documentation is available at gitbooks. L<Documentation |
57             https://biosails.gitbooks.io/biox-workflow-command-docs/content/>
58              
59             =head1 Quick Start
60              
61             =head2 Get Help
62              
63             #Global Help
64             biox --help
65             biox-workflow.pl --help
66             #Help Per Command
67             biox run --help
68              
69             =head2 Run a Workflow
70              
71             #Previously biox-workflow.pl --workflow workflow.yaml
72             biox run -w workflow.yml #or --workflow
73             biox-workflow.pl run --workflow workflow.yml
74              
75             =head2 Run a Workflow with make like utilities
76              
77              
78             Using the option --auto_deps will create #HPC deps based on your INPUT/OUTPUTs -
79             use this with caution. It will only work correctly if INPUT/OUTPUT is complete
80             and accurate.
81              
82             biox run --workflow workflow.yml --auto_deps
83              
84              
85             =head2 Create a new workflow
86              
87             This creates a new workflow with rules rule1, rule2, rule3, with a few variables
88             to help get you started.
89              
90             biox new -w workflow.yml --rules rule1,rule2,rule3
91              
92             =head2 Add a new rule to a workflow
93              
94             Add new rules to an existing workflow.
95              
96             biox add -w workflow.yml --rules rule4
97              
98             =head2 Check the status of files in your workflow
99              
100             You must have defined INPUT/OUTPUTs to make use of this rule. If you do, biox
101             will output a table with information about your files.
102              
103             biox stats -w workflow.yml
104              
105             =head1 DESCRIPTION
106              
107             BioX::Workflow::Command is a templating system for creating Bioinformatics Workflows.
108              
109             =head1 AUTHOR
110              
111             Jillian Rowe E<lt>jillian.e.rowe@gmail.comE<gt>
112              
113             =head1 COPYRIGHT
114              
115             Copyright 2017- Jillian Rowe
116              
117             =head1 LICENSE
118              
119             This library is free software; you can redistribute it and/or modify
120             it under the same terms as Perl itself.
121              
122             =head1 Acknowledgements
123              
124             As of version 0.03:
125              
126             This modules continuing development is supported
127             by NYU Abu Dhabi in the Center for Genomics and
128             Systems Biology. With approval from NYUAD, this
129             information was generalized and put on github,
130             for which the authors would like to express their
131             gratitude.
132              
133             Before version 0.03
134              
135             This module was originally developed at and for Weill Cornell Medical
136             College in Qatar within ITS Advanced Computing Team. With approval from
137             WCMC-Q, this information was generalized and put on github, for which
138             the authors would like to express their gratitude.
139              
140              
141             =head1 SEE ALSO
142              
143             =cut