Bio::EnsEMBL::Utils::Converter ens_bio
SummaryIncluded librariesPackage variablesDescriptionGeneral documentationMethods
Toolbar
WebCvsRaw content
Summary
Bio::EnsEMBL::Utils::Converter::ens_bio
Package variables
No package variables defined.
Included modules
Bio::EnsEMBL::Utils::Converter
Inherit
Bio::EnsEMBL::Utils::Converter
Synopsis
No synopsis!
Description
This is a helper module to assist Bio::EnsEMBL::Utils::Converter find
which converter instance should be used, based on the -in and -out
parameters.
Methods
_guess_module
No description
Code
newDescriptionCode
Methods description
newcode    nextTop
  Please see Bio::EnsEMBL::Utils::Converter::new
Methods code
_guess_moduledescriptionprevnextTop
sub _guess_module {
    my ($self, $in, $out) = @_;
    my $tail;
    if($in eq 'Bio::EnsEMBL::SeqFeature'){
        $tail = 'ens_bio_seqFeature';
    }elsif($in eq 'Bio::Ens::EMBL::FeaturePair'){
        $tail = 'ens_bio_featurePair';
    }else{
        $self->throw("[$in] to [$out], not supported");
    }
    return "Bio::EnsEMBL::Utils::Converter::$tail";
}

1;
}
newdescriptionprevnextTop
sub new {
    my ($caller, @args) = @_;
    my $class = ref($caller) || $caller;

    if($class eq 'Bio::EnsEMBL::Utils::Converter::ens_bio'){
        my %params = @args;
        @params{map{lc $_} keys %params} = values %params;
        my $module = $class->_guess_module($params{-in}, $params{-out});
        return undef unless ($class->_load_module($module));
        return "$module"->new(@args);
    }else{
        my $self = $class->SUPER::new(@args);
#        $self->_initialize(@args);
return $self; } } # Unlike bio_ens, ens_bio does not need _initialize method for analysis and
# contig information.
#
}
General documentation
LICENSETop
  Copyright (c) 1999-2009 The European Bioinformatics Institute and
Genome Research Limited. All rights reserved.
This software is distributed under a modified Apache license. For license details, please see /info/about/code_licence.html
CONTACTTop
  Please email comments or questions to the public Ensembl
developers list at <ensembl-dev@ebi.ac.uk>.
Questions may also be sent to the Ensembl help desk at <helpdesk@ensembl.org>.
AUTHORTop
Juguang Xiao <juguang@fugu-sg.org>
SYNOPISISTop
You are not supposed to use this module directly. Please read
Bio::EnsEMBL::Utils::Converter