line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
|
|
|
|
|
|
package Bio::Tools::Run::QCons::Types; |
2
|
|
|
|
|
|
|
{ |
3
|
|
|
|
|
|
|
$Bio::Tools::Run::QCons::Types::VERSION = '0.112881'; |
4
|
|
|
|
|
|
|
} |
5
|
|
|
|
|
|
|
|
6
|
|
|
|
|
|
|
# ABSTRACT: Type library for Bio::Tools::Run::QCons |
7
|
|
|
|
|
|
|
|
8
|
3
|
|
|
3
|
|
83773
|
use strict; |
|
3
|
|
|
|
|
6
|
|
|
3
|
|
|
|
|
122
|
|
9
|
3
|
|
|
3
|
|
18
|
use warnings; |
|
3
|
|
|
|
|
6
|
|
|
3
|
|
|
|
|
98
|
|
10
|
|
|
|
|
|
|
|
11
|
3
|
|
|
3
|
|
18
|
use Mouse::Util::TypeConstraints; |
|
3
|
|
|
|
|
6
|
|
|
3
|
|
|
|
|
36
|
|
12
|
3
|
|
|
3
|
|
1333
|
use namespace::autoclean; |
|
3
|
|
|
|
|
25998
|
|
|
3
|
|
|
|
|
37
|
|
13
|
|
|
|
|
|
|
|
14
|
3
|
|
|
3
|
|
4897
|
use IPC::Cmd qw(can_run); |
|
3
|
|
|
|
|
290462
|
|
|
3
|
|
|
|
|
627
|
|
15
|
|
|
|
|
|
|
|
16
|
|
|
|
|
|
|
subtype 'Executable' |
17
|
|
|
|
|
|
|
=> as 'Str', |
18
|
|
|
|
|
|
|
=> where { _exists_executable($_) }, |
19
|
|
|
|
|
|
|
=> message { "Can't find $_ in your PATH or not an executable" }; |
20
|
|
|
|
|
|
|
|
21
|
|
|
|
|
|
|
sub _exists_executable { |
22
|
4
|
|
|
4
|
|
14
|
my $candidate = shift; |
23
|
|
|
|
|
|
|
|
24
|
4
|
100
|
|
|
|
164
|
return 1 if -x $candidate; |
25
|
|
|
|
|
|
|
|
26
|
3
|
|
|
|
|
35
|
return scalar can_run($candidate); |
27
|
|
|
|
|
|
|
} |
28
|
|
|
|
|
|
|
|
29
|
3
|
|
|
3
|
|
42
|
no Mouse::Util::TypeConstraints; |
|
3
|
|
|
|
|
4
|
|
|
3
|
|
|
|
|
44
|
|
30
|
|
|
|
|
|
|
|
31
|
|
|
|
|
|
|
__END__ |