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
18057903
Commit
18057903
authored
11 years ago
by
Alessandro Vullo
Browse files
Options
Downloads
Patches
Plain Diff
Constructor update to avoid warning
parent
29a95b3b
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
modules/Bio/EnsEMBL/Utils/SequenceOntologyMapper.pm
+10
-8
10 additions, 8 deletions
modules/Bio/EnsEMBL/Utils/SequenceOntologyMapper.pm
with
10 additions
and
8 deletions
modules/Bio/EnsEMBL/Utils/SequenceOntologyMapper.pm
+
10
−
8
View file @
18057903
...
...
@@ -18,7 +18,7 @@ SequenceOntologyMapper - Translates EnsEMBL objects into Sequence Ontology terms
use Bio::EnsEMBL::Utils::SequenceOntologyMapper
# get an Ensembl feature somehow
# get an Ensembl feature somehow
in $feature
...
...
...
...
@@ -37,7 +37,7 @@ in it at the moment (would require to create empty feature objects).
=cut
package
Bio::EnsEMBL::Utils::
Biotype
Mapper
;
package
Bio::EnsEMBL::Utils::
SequenceOntology
Mapper
;
use
strict
;
use
warnings
;
...
...
@@ -57,10 +57,12 @@ use Bio::EnsEMBL::Utils::Exception;
=cut
sub
new
{
my
$class
=
shift
;
my
(
$class
,
$oa
)
=
@_
;
defined
$oa
or
throw
"
No ontology term adaptor specified
";
my
$self
=
{
ontology_adaptor
=>
shift
||
throw
"
No ontology term adaptor specified
"
,
ontology_adaptor
=>
$oa
,
feat_to_acc
=>
{
'
Bio::EnsEMBL::Feature
'
=>
'
SO:0000001
',
# region
...
...
@@ -90,8 +92,8 @@ sub new {
=head2 translate
Arg [0] : Bio::EnsEMBL::Feature
,
subclass
or related Storable
Description: Translates a Feature type into an SO term
Arg [0] :
Instance of
Bio::EnsEMBL::Feature subclass
Description: Translates a Feature type into an SO term
.
Returntype : String; the SO term
Exceptions : if argument is not an instance of Bio::EnsEMBL::Feature
or if cannot translate
...
...
@@ -124,8 +126,8 @@ sub translate {
#
# WARNING
#
# Th
ere doesn't seem to be a class_SO_term method in class
# BaseVariationFeature or its ancestors
# Th
is is inherited from BiotypeMapper, but there doesn't seem to be
#
a class_SO_term method in class
BaseVariationFeature or its ancestors
#
$so_name
=
$feature
->
class_SO_term
()
if
$feature
->
isa
('
Bio::EnsEMBL::Variation::BaseVariationFeature
');
...
...
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