13 See the NOTICE file distributed with
this work
for additional information
14 regarding copyright ownership.
16 Licensed under the Apache License, Version 2.0 (the
"License"); you may not use
this file except in compliance with the License.
17 You may obtain a copy of the License at
21 Unless required by applicable law or agreed to in writing, software distributed under the License
22 is distributed on an
"AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
23 See the License
for the specific language governing permissions and limitations under the License.
27 Please subscribe to the Hive mailing list: http:
32 package Bio::EnsEMBL::Hive::Examples::Factories::PipeConfig::FastaSplitter_conf;
37 use base (
'Bio::EnsEMBL::Hive::PipeConfig::HiveGeneric_conf'); # All Hive databases configuration files should inherit from HiveGeneric, directly or indirectly
43 %{ $self->SUPER::default_options() }, # inherit other stuff from the base
class
45 'pipeline_name' =>
'split_fasta', # name used by the beekeeper to prefix job names on the farm
47 # runnable-specific parameters' defaults:
48 'max_chunk_length' => 500000,
49 'output_prefix' =>
'chunk_number_',
50 'output_suffix' =>
'.fasta',
52 'chunks_dir' =>
'fasta_split_chunks',
57 sub pipeline_create_commands {
60 @{$self->SUPER::pipeline_create_commands}, # inheriting database and hive tables
' creation
62 'mkdir -p
'.$self->o('chunks_dir
'),
67 sub pipeline_analyses {
70 { -logic_name => 'split_fasta
',
73 'inputfile
' => $self->o('inputfile
'),
74 'max_chunk_length
' => $self->o('max_chunk_length
'),
75 'output_prefix
' => $self->o('chunks_dir
').'/
'.$self->o('output_prefix
'),
76 'output_suffix
' => $self->o('output_suffix
'),
79 2 => [ 'align
' ], # will create a fan of jobs
83 { -logic_name => 'align
',