blib/lib/Bio/Tools/Run/Samtools/Config.pm

filter: Statementstmt 100% 24 / 24 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 100% 4 / 4 Podpod n/a totaltotal 100% 28 / 28 CC 1 SCAR 0.0
CC
1
Cov
100%
BEGIN
1.0
BEGIN
1.0
BEGIN
1.0
CRAP 1.0
« blib/lib/Bio/Tools/Run/Phylo/Phylip/PhylipConf.pm ↑ Summary blib/lib/Bio/Tools/Run/TigrAssembler.pm »
1 # $Id$
2 #
3 # BioPerl module for Bio::Tools::Run::Samtools::Config
4 #
5 # Please direct questions and support issues to <bioperl-l@bioperl.org>
6 #
7 # Cared for by Mark A. Jensen <maj -at- fortinbras -dot- us>
8 #
9 # Copyright Mark A. Jensen
10 #
11 # You may distribute this module under the same terms as perl itself
12  
13 # POD documentation - main docs before the code
14  
15 =head1 NAME
16  
17 Bio::Tools::Run::Samtools::Config - configurator for Bio::Tools::Run::Samtools
18  
19 =head1 SYNOPSIS
20  
21 Not used directly.
22  
23 =head1 DESCRIPTION
24  
25 Exports global configuration variables (as required by
26 L<Bio::Tools::Run::WrapperBase::CommandExts>) to Samtools.pm.
27  
28 =head1 FEEDBACK
29  
30 =head2 Mailing Lists
31  
32 User feedback is an integral part of the evolution of this and other
33 Bioperl modules. Send your comments and suggestions preferably to
34 the Bioperl mailing list. Your participation is much appreciated.
35  
36 bioperl-l@bioperl.org - General discussion
37 http://bioperl.org/wiki/Mailing_lists - About the mailing lists
38  
39 =head2 Support
40  
41 Please direct usage questions or support issues to the mailing list:
42  
43 L<bioperl-l@bioperl.org>
44  
45 rather than to the module maintainer directly. Many experienced and
46 reponsive experts will be able look at the problem and quickly
47 address it. Please include a thorough description of the problem
48 with code and data examples if at all possible.
49  
50 =head2 Reporting Bugs
51  
52 Report bugs to the Bioperl bug tracking system to help us keep track
53 of the bugs and their resolution. Bug reports can be submitted via
54 the web:
55  
56 http://redmine.open-bio.org/projects/bioperl
57  
58 =head1 AUTHOR - Mark A. Jensen
59  
60 Email maj -at- fortinbras -dot- us
61  
62 =head1 APPENDIX
63  
64 The rest of the documentation details each of the object methods.
65 Internal methods are usually preceded with a _
66  
67 =cut
68  
69 # Let the code begin...
70  
71 package Bio::Tools::Run::Samtools::Config;
72 3 ▶use strict;
Subroutine BEGIN: called CC=1 SCAR=0.0
73 3 ▶use warnings;
Subroutine BEGIN: called CC=1 SCAR=0.0
74 3 ▶no warnings qw(qw);
Subroutine BEGIN: called CC=1 SCAR=0.0
75 3 ▶use Exporter;
Subroutine BEGIN: called CC=1 SCAR=0.0
76  
77 3 our (@ISA, @EXPORT, @EXPORT_OK);
78 3 push @ISA, 'Exporter';
79 3 @EXPORT = qw(
80 $program_dir
81 @program_commands
82 %command_prefixes
83 @program_params
84 @program_switches
85 %param_translation
86 %command_files
87 );
88  
89 3 @EXPORT_OK = qw();
90  
91 3 our $program_dir;
92 3 our @program_commands = qw(
93 view
94 sort
95 index
96 merge
97 faidx
98 pileup
99 fixmate
100 rmdup
101 fillmd
102 );
103  
104 # composite commands: pseudo-commands that run a
105 # sequence of commands
106 # composite command prefix => list of prefixes of commands this
107 # composite command runs
108 #
109  
110 # prefixes only for commands that take params/switches...
111 3 our %command_prefixes = (
112 'view' => 'view',
113 'sort' => 'srt',
114 'index' => 'idx',
115 'merge' => 'mrg',
116 'faidx' => 'fai',
117 'pileup' => 'pup',
118 'fillmd' => 'fmd'
119 );
120  
121 3 our @program_params = qw(
122 command
123 view|tab_delim
124 view|out_file
125 view|pass_flags
126 view|filt_flags
127 view|refseq
128 view|qual_threshold
129 view|library
130 view|read_group
131 srt|mem_hint
132 mrg|headers_in
133 pup|refseq
134 pup|map_qcap
135 pup|ref_list
136 pup|site_list
137 pup|theta
138 pup|n_haplos
139 pup|exp_hap_diff
140 pup|indel_prob
141 );
142  
143 3 our @program_switches = qw(
144 view|bam_output
145 view|uncompressed
146 view|add_header
147 view|only_header
148 view|sam_input
149 srt|sort_by_names
150 mrg|sort_by_names
151 pup|qual_last_col
152 pup|sam_input
153 pup|indels_only
154 pup|call_cons
155 pup|genot_L
156 fmd|match_with_eq
157 );
158  
159 3 our %param_translation = (
160 'view|tab_delim' => 't',
161 'view|out_file' => 'o',
162 'view|pass_flags' => 'f',
163 'view|refseq' => 'T',
164 'view|filt_flags' => 'F',
165 'view|qual_threshold' => 'q',
166 'view|library' => 'l',
167 'view|read_group' => 'r',
168 'view|bam_output' => 'b',
169 'view|uncompressed' => 'u',
170 'view|add_header' => 'h',
171 'view|only_header' => 'H',
172 'view|sam_input' => 'S',
173 'srt|mem_hint' => 'm',
174 'srt|sort_by_names' => 'n',
175 'mrg|headers_in' => 'h',
176 'mrg|sort_by_names' => 'n',
177 'pup|refseq' => 'f',
178 'pup|map_qcap' => 'M',
179 'pup|ref_list' => 't',
180 'pup|site_list' => 'l',
181 'pup|theta' => 'T',
182 'pup|n_haplos' => 'N',
183 'pup|exp_hap_diff' => 'f',
184 'pup|indel_prob' => 'I',
185 'pup|qual_last_col' => 's',
186 'pup|sam_input' => 'S',
187 'pup|indels_only' => 'i',
188 'pup|call_cons' => 'c',
189 'pup|genot_L' => 'g',
190 'fmd|match_with_eq' => 'e'
191 );
192  
193 #
194 # the order in the arrayrefs is the order required
195 # on the command line
196 #
197 # the strings in the arrayrefs (less special chars)
198 # become the keys for named parameters to run_maq
199 #
200 # special chars:
201 #
202 # '#' implies optional
203 # '*' implies variable number of this type
204 # <|> implies stdin/stdout redirect
205 #
206  
207 3 our %command_files = (
208 'view' => [qw( bam #*rgn >out )],
209 'sort' => [qw( bam pfx )],
210 'index' => [qw( bam )],
211 'merge' => [qw( obm *ibm )],
212 'faidx' => [qw( fas #*rgn )],
213 'pileup' => [qw( bam >out )],
214 'fixmate' => [qw( ibm obm )],
215 'rmdup' => [qw( ibm obm )],
216 'fillmd' => [qw( bam fas )]
217 );
218  
219 3 1;
« blib/lib/Bio/Tools/Run/Phylo/Phylip/PhylipConf.pm ↑ Summary blib/lib/Bio/Tools/Run/TigrAssembler.pm »