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