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
2f47cd46
Commit
2f47cd46
authored
21 years ago
by
Graham McVicker
Browse files
Options
Downloads
Patches
Plain Diff
updated POD for display_xref methods, removed species methods
parent
487d244b
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
modules/Bio/EnsEMBL/Gene.pm
+7
-42
7 additions, 42 deletions
modules/Bio/EnsEMBL/Gene.pm
modules/Bio/EnsEMBL/Transcript.pm
+4
-38
4 additions, 38 deletions
modules/Bio/EnsEMBL/Transcript.pm
with
11 additions
and
80 deletions
modules/Bio/EnsEMBL/Gene.pm
+
7
−
42
View file @
2f47cd46
...
...
@@ -810,10 +810,10 @@ sub _dump{
=head2 transform
Arg 1 : (optional) Bio::EnsEMBL::Slice $slice
Description: when passed a Slice as argument,
it will transform this Gene to the Slice coordinate system.
Without an argument it transforms the Gene (which should be in a slice) to a RawContig
Without an argument it transforms the Gene (which should be
in a slice) to a RawContig
coordinate system.
The method changes the Gene in place and returns itself.
Returntype : Bio::EnsEMBL::Gene
...
...
@@ -845,7 +845,6 @@ sub transform {
# re-jiggle the exons
$transcript
->
transform
(
\
%exon_transforms
);
}
#unset the start, end, and strand - they need to be recalculated
...
...
@@ -883,46 +882,12 @@ sub temporary_id {
}
=head2 species
Arg [1] : optional Bio::Species $species
Example : none
Description: You can set the species for this gene if you want to use species
specific behaviour. Otherwise species is retrieved from attached
database.
Returntype : Bio::Species
Exceptions : none
Caller : external_name, external_db, general for setting
=cut
sub
species
{
my
(
$self
,
$species
)
=
@_
;
if
(
defined
$species
)
{
$self
->
{
species
}
=
$species
;
}
else
{
if
(
!
exists
$self
->
{
species
}
)
{
if
(
defined
$self
->
adaptor
()
)
{
$self
->
{
species
}
=
$self
->
adaptor
()
->
db
->
get_MetaContainer
()
->
get_Species
();
}
}
}
return
$self
->
{
species
};
}
=head2 display_xref
Arg [1] :
int
$display_xref
_id
Example : $gene->display_xref(
42
);
Description: get/set/lazy_loaded display_xref
_id
for this gene
Returntype :
int
Arg [1] :
Bio::EnsEMBL::DBEntry
$display_xref
Example : $gene->display_xref(
$db_entry
);
Description: get/set/lazy_loaded display_xref for this gene
Returntype :
Bio::EnsEMBL::DBEntry
Exceptions : none
Caller : general
...
...
@@ -937,7 +902,7 @@ sub display_xref {
return
$self
->
{'
display_xref
'};
}
elsif
(
defined
$self
->
adaptor
()
)
{
$self
->
{'
display_xref
'}
=
$self
->
adaptor
->
get_display_xref
(
$self
);
}
}
return
$self
->
{'
display_xref
'};
}
...
...
This diff is collapsed.
Click to expand it.
modules/Bio/EnsEMBL/Transcript.pm
+
4
−
38
View file @
2f47cd46
...
...
@@ -274,10 +274,10 @@ sub adaptor {
=head2 display_xref
Arg [1] :
int
$display_xref
_id
Example : $transcript->display_xref(
42
);
Description: get/set/lazy_loaded display_xref
_id
for this transcript
Returntype :
int
Arg [1] :
Bio::EnsEMBL::DBEntry
$display_xref
Example : $transcript->display_xref(
Bio::EnsEMBL::DBEntry->new(...)
);
Description: get/set/lazy_loaded display_xref for this transcript
Returntype :
Bio::EnsEMBL::DBEntry
Exceptions : none
Caller : general
...
...
@@ -1800,40 +1800,6 @@ sub transform {
}
=head2 species
Arg [1] : optional Bio::Species $species
Example : none
Description: You can set the species for this gene if you want to use species
specific behaviour. Otherwise species is retrieved from attached
database.
Returntype : Bio::Species
Exceptions : none
Caller : external_name, external_db, general for setting
=cut
sub
species
{
my
(
$self
,
$species
)
=
@_
;
if
(
defined
$species
)
{
$self
->
{
species
}
=
$species
;
}
else
{
if
(
!
exists
$self
->
{
species
}
)
{
if
(
defined
$self
->
adaptor
()
)
{
$self
->
{
species
}
=
$self
->
adaptor
()
->
db
->
get_MetaContainer
()
->
get_Species
();
}
}
}
return
$self
->
{
species
};
}
=head2 coding_start
Arg [1] : none
...
...
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