forked from grubbybio/pRNASeqTools
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmode.pm
64 lines (60 loc) · 1.32 KB
/
mode.pm
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
#!/usr/bin/env perl
package mode;
use Modern::Perl;
use MooseX::App;
opendir DIR, "." or die $!;
my $dir = join ",", readdir DIR;
closedir DIR;
has 'dir' => (
is => 'ro',
isa => 'Str',
default => $dir,
documentation => q[original files in the working directory.],
);
my $prefix = $1 if($0 =~ /^(.+)\/.+$/);
has 'prefix' => (
is => 'ro',
isa => 'Str',
default => $prefix,
);
option 'outdir' => (
is => 'rw',
isa => 'Str',
default => './out',
documentation => q[Output directory.],
);
option 'genome' => (
is => 'rw',
isa => 'Str',
default => 'ath',
documentation => q[Currently supported genome: ath, osa, b73, gma, smo, bra, w22],
);
option 'thread' => (
is => 'rw',
isa => 'Int',
default => '4',
documentation => q[Threads used.],
);
option 'adaptor' => (
is => 'rw',
isa => 'Str',
documentation => q[3' adaptor. 'AGATCGGAAGAGC' is the most common used, 'TGGAATTCTCGGG' is another.],
);
option 'control' => (
is => 'rw',
isa => 'HashRef',
required => 1,
documentation => q[seq files seperated by plus for control],
);
option 'treatment' => (
is => 'rw',
isa => 'HashRef',
documentation => q[seq files seperated by plus for treatment, multiple treatments allowed],
);
option 'mask' => (
is => 'rw',
isa => 'Str',
documentation => q[Masked sequences from the genome],
);
1;
__END__