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
5fa472ed
Commit
5fa472ed
authored
14 years ago
by
Andreas Kusalananda Kähäri
Browse files
Options
Downloads
Patches
Plain Diff
Add documentation for the get_all_xrefs() method.
parent
faf4fab3
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
modules/Bio/EnsEMBL/Gene.pm
+36
-1
36 additions, 1 deletion
modules/Bio/EnsEMBL/Gene.pm
modules/Bio/EnsEMBL/Transcript.pm
+35
-1
35 additions, 1 deletion
modules/Bio/EnsEMBL/Transcript.pm
modules/Bio/EnsEMBL/Translation.pm
+22
-1
22 additions, 1 deletion
modules/Bio/EnsEMBL/Translation.pm
with
93 additions
and
3 deletions
modules/Bio/EnsEMBL/Gene.pm
+
36
−
1
View file @
5fa472ed
...
...
@@ -702,7 +702,8 @@ sub get_all_DBEntries {
present on the gene (i.e. they have not already been
added or loaded).
NB: This method is an alias for get_all_DBentries()
NB: This method is an alias for the
get_all_DBentries() method.
Return type: Listref of Bio::EnsEMBL::DBEntry objects
...
...
@@ -763,6 +764,40 @@ sub get_all_DBLinks {
return
\
@links
;
}
=head2 get_all_xrefs
Arg [1] : String database name (optional)
SQL wildcard characters (_ and %) can be used to
specify patterns.
Example : @xrefs = @{ $gene->get_all_xrefs() };
@xrefs = @{ $gene->get_all_xrefs('Uniprot%') };
Description: Retrieves *all* related xrefs for this gene. This
includes all xrefs that are associated with the
transcripts and corresponding translations of this
gene.
If you want to retrieve the xrefs associated
with only the gene (and not the transcript
or translations) then you should use the
get_all_object_xrefs() method instead.
Note: Each entry may be listed more than once. No
uniqueness checks are done. Also if you put in an
incorrect external database name no checks are done
to see if this exists, you will just get an empty
list.
NB: This method is an alias for the
get_all_DBLinks() method.
Return type: Listref of Bio::EnsEMBL::DBEntry objects
Status : Stable
=cut
sub
get_all_xrefs
{
my
$self
=
shift
;
return
$self
->
get_all_DBLinks
(
@
_
);
...
...
This diff is collapsed.
Click to expand it.
modules/Bio/EnsEMBL/Transcript.pm
+
35
−
1
View file @
5fa472ed
...
...
@@ -228,6 +228,39 @@ sub get_all_DBLinks {
return
\
@links
;
}
=head2 get_all_xrefs
Arg [1] : String database name (optional)
SQL wildcard characters (_ and %) can be used to
specify patterns.
Example : @xrefs = @{ $transcript->get_all_xrefs() };
@xrefs = @{ $transcript->get_all_xrefs('Uniprot%') };
Description: Retrieves *all* related xrefs for this transcript.
This includes all xrefs that are associated with the
corresponding translation of this transcript.
If you want to retrieve the xrefs associated with
only the transcript (and not the translation) then
you should use the get_all_object_xrefs() method
instead.
Note: Each entry may be listed more than once. No
uniqueness checks are done. Also if you put in an
incorrect external database name no checks are done
to see if this exists, you will just get an empty
list.
NB: This method is an alias for the
get_all_DBLinks() method.
Return type: Listref of Bio::EnsEMBL::DBEntry objects
Status : Stable
=cut
sub
get_all_xrefs
{
my
$self
=
shift
;
return
$self
->
get_all_DBLinks
(
@
_
);
...
...
@@ -301,7 +334,8 @@ sub get_all_DBEntries {
present on the transcript (i.e. they have not already
been added or loaded).
NB: This method is an alias for get_all_DBentries()
NB: This method is an alias for the
get_all_DBentries() method.
Return type: Listref of Bio::EnsEMBL::DBEntry objects
...
...
This diff is collapsed.
Click to expand it.
modules/Bio/EnsEMBL/Translation.pm
+
22
−
1
View file @
5fa472ed
...
...
@@ -617,7 +617,8 @@ sub get_all_DBEntries {
are present on the translation (i.e. they have not
already been added or loaded).
NB: This method is an alias for get_all_DBentries()
NB: This method is an alias for the
get_all_DBentries() method.
Return type: Listref of Bio::EnsEMBL::DBEntry objects
...
...
@@ -683,6 +684,26 @@ sub get_all_DBLinks {
return
$self
->
get_all_DBEntries
(
@
_
);
}
=head2 get_all_xrefs
Arg [1] : String database name (optional)
SQL wildcard characters (_ and %) can be used to
specify patterns.
Example : @xrefs = @{ $translation->get_all_xrefs() };
@xrefs = @{ $translation->get_all_xrefs('Uniprot%') };
Description: This method is here for consistancy with the Gene
and Transcript classes. It is an alias for the
get_all_DBLinks() method, which in turn directly
calls get_all_DBEntries().
Return type: Listref of Bio::EnsEMBL::DBEntry objects
Status : Stable
=cut
sub
get_all_xrefs
{
my
$self
=
shift
;
return
$self
->
get_all_DBLinks
(
@
_
);
...
...
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