3 See the NOTICE file distributed with
this work
for additional information
4 regarding copyright ownership.
6 Licensed under the Apache License, Version 2.0 (the
"License");
7 you may not use
this file except in compliance with the License.
8 You may obtain a copy of the License at
12 Unless required by applicable law or agreed to in writing, software
13 distributed under the License is distributed on an
"AS IS" BASIS,
14 WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
15 See the License
for the specific language governing permissions and
16 limitations under the License.
23 Please email comments or questions to the
public Ensembl
24 developers list at <http:
26 Questions may also be sent to the Ensembl help desk at
31 Juguang Xiao <juguang@fugu-sg.org>
41 You are not supposed to use
this module directly. Please read
47 which converter instance should be used, based on the -in and -out
54 package Bio::EnsEMBL::Utils::Converter::ens_bio;
66 my ($caller, @args) = @_;
67 my $class = ref($caller) || $caller;
69 if($class eq
'Bio::EnsEMBL::Utils::Converter::ens_bio'){
71 @params{
map{lc $_} keys %params} = values %params;
72 my $module = $class->_guess_module($params{-in}, $params{-out});
73 return undef unless ($class->_load_module($module));
74 return "$module"->new(@args);
76 my $self = $class->SUPER::new(@args);
77 # $self->_initialize(@args);
83 # Unlike bio_ens, ens_bio does not need _initialize method for analysis and
88 my ($self, $in, $out) = @_;
90 if($in eq
'Bio::EnsEMBL::SeqFeature'){
91 $tail =
'ens_bio_seqFeature';
92 }elsif($in eq
'Bio::Ens::EMBL::FeaturePair'){
93 $tail =
'ens_bio_featurePair';
95 $self->throw(
"[$in] to [$out], not supported");
97 return "Bio::EnsEMBL::Utils::Converter::$tail";