Group
Extension

Matches 5

BioX-Workflow-Command ( J/JI/JILLROWE/BioX-Workflow-Command-2.4.1.tar.gz, JILLROWE, 2018; MetaCPAN )
BioX-Workflow-Command/lib/BioX/Workflow/Command/inspect.pm ( view source; MetaCPAN )
se namespace::autoclean;

use Data::Dumper;
use YAML;
use Storable qw(dclone);
use Try::Tiny;
use JSON;

extends 'BioX::Workflow::Command';
use BioSAILs::Utils::Traits qw(ArrayRefOfStrs);
use Capture:
    => 'rw',
    isa       => 'Str',
    required  => 0,
    predicate => 'has_path',
);

option 'json' => (
    is      => 'rw',
    isa     => 'Bool',
    default => 0,
);

option 'show_only_errors'
$self->app_log->warn('Exiting now.');
        return;
    }

    $DB::single = 2;
    if ( $self->json ) {
        capture_stderr {
            $self->inspect;
        };

    }
    else {
        $se
BioX-Workflow-Command ( J/JI/JILLROWE/BioX-Workflow-Command-2.4.1.tar.gz, JILLROWE, 2018; MetaCPAN )
BioX-Workflow-Command/lib/BioX/Workflow/Command/run/Rules/Directives/Interpolate/Jinja.pm ( view source; MetaCPAN )
my ($tfh, $tfilename) = tempfile();
    my ($jfh, $jfilename) = tempfile();

    my $json = $self->serialize_to_json($jfilename);
    write_file($tfilename, $source);
    #
    my $cmd = 'biosails-bio
BioX-Workflow-Command ( J/JI/JILLROWE/BioX-Workflow-Command-2.4.1.tar.gz, JILLROWE, 2018; MetaCPAN )
BioX-Workflow-Command/lib/BioX/Workflow/Command/run/Rules/Directives/Functions.pm ( view source; MetaCPAN )
use File::Slurp;
use JSON;
use Try::Tiny;

has 'remove_from_json' => (
    is      => 'rw',
    isa     => 'ArrayRef',
    default => sub {
        [
            'remove_from_json', 'register_namespac
o_json {
    my $self = shift;
    my $file = shift;

    my %hacky_self = %{$self};
    foreach my $remove ( @{ $self->remove_from_json } ) {
        delete $hacky_self{$remove};
    }

    my $json 
= JSON->new->utf8->pretty->allow_blessed->encode( \%hacky_self );

    if ($file) {
        write_file( $file, $json );
    }
    return $json;
}

sub read_json_file {
    my $self = shift;
    my $fi
BioX-Workflow-Command ( J/JI/JILLROWE/BioX-Workflow-Command-2.4.1.tar.gz, JILLROWE, 2018; MetaCPAN )
BioX-Workflow-Command/lib/BioX/Workflow/Command/run/Rules/Directives/Types/Config.pm ( view source; MetaCPAN )

        {
            builder => 'create_reg_attr',
            lookup  => [
                '.*_json$',  '.*_yaml$', '.*_yml$', '.*_jsn$',
            ]
        }
    );

    $self->set_register_pro
{
            builder => 'process_directive_config',
            lookup  => [
                '.*_json$', '.*_yaml$', '.*_yml$', '.*_jsn$',
            ],
        }
    );
};

=head3 process_directive
BioX-Workflow-Command ( J/JI/JILLROWE/BioX-Workflow-Command-2.4.1.tar.gz, JILLROWE, 2018; MetaCPAN )
BioX-Workflow-Command/lib/BioX/Workflow/Command/run/Rules/Rules.pm ( view source; MetaCPAN )
he other functions we need to process a rule

1. Do a sanity check of the rule - it could be yaml/json friendly but not biox friendly
2. Clone the local attr
3. Check for carrying indir/outdir INPUT/O

Powered by Groonga
Maintained by Kenichi Ishigaki <ishigaki@cpan.org>. If you find anything, submit it on GitHub.