Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
E
ensembl
Manage
Activity
Members
Labels
Plan
Issues
0
Issue boards
Milestones
Iterations
Wiki
Requirements
Jira
Code
Merge requests
1
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Package Registry
Container Registry
Operate
Environments
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
ensembl-gh-mirror
ensembl
Commits
aff3bd04
Commit
aff3bd04
authored
21 years ago
by
juguang
Browse files
Options
Downloads
Patches
Plain Diff
refine the doc
parent
f4036606
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
modules/Bio/EnsEMBL/Utils/Converter.pm
+24
-42
24 additions, 42 deletions
modules/Bio/EnsEMBL/Utils/Converter.pm
with
24 additions
and
42 deletions
modules/Bio/EnsEMBL/Utils/Converter.pm
+
24
−
42
View file @
aff3bd04
...
...
@@ -26,16 +26,16 @@ Bio::EnsEMBL::Utils::Converter, a converter factory
=head1 DESCRIPTION
Module to converter the business objects between EnsEMBL and any other projects, currently BioPerl.
Module to converter the business objects between EnsEMBL and any other projects, currently BioPerl.
What the ready conversions are,
What the ready conversions are,
Bio::SeqFeature::Generic <-> Bio::EnsEMBL::SeqFeature, Bio::EnsEMBL::SimpleFeature
Bio::SeqFeature::FeaturePair <-> Bio::EnsEMBL::SeqFeature, Bio::EnsEMBL::RepeatFeature
Bio::Search::HSP::GenericHSP -> Bio::EnsEMBL::BaseAlignFeature's submodules
Bio::Tools::Prediction::Gene -> Bio::EnsEMBL::PredictionTranscript
Bio::Tools::Prediction::Exon -> Bio::EnsEMBL::Exon
Bio::Pipeline::Analysis -> Bio::EnsEMBL::Analysis
Bio::SeqFeature::Generic <-> Bio::EnsEMBL::SeqFeature, Bio::EnsEMBL::SimpleFeature
Bio::SeqFeature::FeaturePair <-> Bio::EnsEMBL::SeqFeature, Bio::EnsEMBL::RepeatFeature
Bio::Search::HSP::GenericHSP -> Bio::EnsEMBL::BaseAlignFeature's submodules
Bio::Tools::Prediction::Gene -> Bio::EnsEMBL::PredictionTranscript
Bio::Tools::Prediction::Exon -> Bio::EnsEMBL::Exon
Bio::Pipeline::Analysis -> Bio::EnsEMBL::Analysis
=head1 FEEDBACK
...
...
@@ -55,15 +55,12 @@ Internal methods are usually preceded with a _
package
Bio::EnsEMBL::Utils::
Converter
;
use
strict
;
use
vars
qw(@ISA)
;
use
Bio::EnsEMBL::
Root
;
@ISA
=
qw(Bio::EnsEMBL::Root)
;
our
@ISA
=
qw(Bio::EnsEMBL::Root)
;
=head2 new
Title : new
Usage :
my $converter = Bio::EnsEMBL::Utils::Converter->new(
...
...
@@ -111,10 +108,12 @@ sub _initialize {
}
=head2 _guess_module
Usage : $module = $class->_guess_module(
'Bio::EnsEMBL::SimpleFeature',
'Bio::EnsEMBL::Generic'
);
=cut
sub
_guess_module
{
...
...
@@ -131,6 +130,7 @@ sub _guess_module {
}
=head2 convert
Title : convert
Usage : my $array_ref = $converter->convert(\@input);
Function: does the actual conversion
...
...
@@ -161,9 +161,8 @@ sub convert{
return
\
@output
;
}
sub
_converter_single
{
my
(
$self
,
$input
)
=
@_
;
$self
->
throw
("
Not implemented. Please check the instance subclass
");
sub
_convert_single
{
shift
->
throw
("
Not implemented. Please check the instance subclass
");
}
=head2 in
...
...
@@ -174,16 +173,6 @@ sub _converter_single{
Return :
Args :
=cut
sub
in
{
my
(
$self
,
$arg
)
=
@_
;
if
(
defined
(
$arg
)){
$self
->
{
_in
}
=
$arg
;
}
return
$self
->
{
_in
};
}
=head2 out
Title : out
...
...
@@ -194,23 +183,16 @@ sub in {
=cut
sub
out
{
my
(
$self
,
$arg
)
=
@_
;
if
(
defined
(
$arg
)){
$self
->
{
_out
}
=
$arg
;
}
return
$self
->
{
_out
};
}
=head2 analysis
Title : analysis
Useage : $self->analysis
Function : get and set for analysis
Return : L<Bio::EnsEMBL::Analysis>
Args : L<Bio::EnsEMBL::Analysis>
=cut
foreach
my
$field
(
qw(in out)
){
my
$slot
=
__PACKAGE__
.
"
::
$field
";
no
strict
'
refs
';
*$field
=
sub
{
my
$self
=
shift
;
$self
->
{
$slot
}
=
shift
if
@_
;
return
$self
->
{
$slot
};
};
}
=head2 _load_module
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment