Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Open sidebar
ensembl-gh-mirror
ensembl
Commits
443d4117
Commit
443d4117
authored
Mar 19, 2019
by
Marek Szuba
Browse files
s/rnaproduct/RNAProduct/ in comments
parent
5bd0fbd3
Changes
4
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
52 additions
and
52 deletions
+52
-52
modules/Bio/EnsEMBL/DBSQL/RNAProductAdaptor.pm
modules/Bio/EnsEMBL/DBSQL/RNAProductAdaptor.pm
+17
-17
modules/Bio/EnsEMBL/DBSQL/TranscriptAdaptor.pm
modules/Bio/EnsEMBL/DBSQL/TranscriptAdaptor.pm
+3
-3
modules/Bio/EnsEMBL/RNAProduct.pm
modules/Bio/EnsEMBL/RNAProduct.pm
+29
-29
modules/Bio/EnsEMBL/Utils/RNAProductTypeMapper.pm
modules/Bio/EnsEMBL/Utils/RNAProductTypeMapper.pm
+3
-3
No files found.
modules/Bio/EnsEMBL/DBSQL/RNAProductAdaptor.pm
View file @
443d4117
...
...
@@ -103,7 +103,7 @@ sub fetch_all_by_Transcript {
=head2 fetch_all_by_external_name
Arg [1] : String $external_name
An external identifier of the
rnap
roduct to be obtained
An external identifier of the
RNAP
roduct to be obtained
Arg [2] : (optional) String $external_db_name
The name of the external database from which the
identifier originates.
...
...
@@ -113,11 +113,11 @@ sub fetch_all_by_Transcript {
@{ $rp_a->fetch_all_by_external_name('MIMAT0000416') };
my @more_rnaproducts =
@{ $rp_a->fetch_all_by_external_name('hsa-miR-1-__') };
Description: Retrieves all
rnap
roducts which are associated with
Description: Retrieves all
RNAP
roducts which are associated with
an external identifier such as a GO term, miRBase
identifer, etc. Usually there will only be a single
rnap
roduct returned in the list reference, but not
always. If no
rnap
roducts with the external identifier
RNAP
roduct returned in the list reference, but not
always. If no
RNAP
roducts with the external identifier
are found, a reference to an empty list is returned.
SQL wildcards % and _ are supported in the $external_name
but their use is somewhat restricted for performance reasons.
...
...
@@ -192,10 +192,10 @@ sub fetch_all_by_type {
The internal identifier of the RNAProduct to obtain
Example : $rnaproduct = $rnaproduct_adaptor->fetch_by_dbID(1234);
Description: This fetches a RNAProduct object via its internal id.
This is only debatably useful since
rnap
roducts do
This is only debatably useful since
RNAP
roducts do
not make much sense outside of the context of their
Transcript. Consider using fetch_by_Transcript instead.
Returntype : Bio::EnsEMBL::RNAProduct, or undef if the
rnap
roduct is not
Returntype : Bio::EnsEMBL::RNAProduct, or undef if the
RNAP
roduct is not
found.
Caller : ?
Status : Stable
...
...
@@ -219,7 +219,7 @@ sub fetch_by_dbID {
The stable identifier of the RNAProduct to obtain
Example : $rnaproduct = $rnaproduct_adaptor->fetch_by_stable_id("ENSM00001");
Description: This fetches a RNAProduct object via its stable id.
Returntype : Bio::EnsEMBL::RNAProduct, or undef if the
rnap
roduct is not
Returntype : Bio::EnsEMBL::RNAProduct, or undef if the
RNAP
roduct is not
found.
Caller : ?
Status : Stable
...
...
@@ -241,7 +241,7 @@ sub fetch_by_stable_id {
Arg [1] : none
Example : @rnaproduct_ids = @{$rnaproduct_adaptor->list_dbIDs()};
Description: Gets an array of internal ids for all
rnap
roducts in the current db
Description: Gets an array of internal ids for all
RNAP
roducts in the current db
Returntype : list of ints
Exceptions : none
Caller : ?
...
...
@@ -259,9 +259,9 @@ sub list_dbIDs {
=head2 remove
Arg [1] : Bio::EnsEMBL::RNAProduct $rnaproduct
The
rnap
roduct to be removed from the database
The
RNAP
roduct to be removed from the database
Example : $rpID = $rp_adaptor->remove($rnaproduct, $transcript->dbID());
Description: Removes a
rnap
roduct, along with all associated information
Description: Removes a
RNAP
roduct, along with all associated information
from the database.
Returntype : none
Exceptions : throw on incorrect arguments
...
...
@@ -311,13 +311,13 @@ sub remove {
=head2 store
Arg [1] : Bio::EnsEMBL::RNAProduct $rnaproduct
The
rnap
roduct to be written to the database
The
RNAP
roduct to be written to the database
Arg [2] : Int $transcript_dbID
The identifier of the transcript that this
rnap
roduct is
The identifier of the transcript that this
RNAP
roduct is
associated with
Example : $rpID = $rp_adaptor->store($rnaproduct, $transcript->dbID());
Description: Stores a
rnap
roduct in the database and returns the new
internal identifier for the stored
rnap
roduct.
Description: Stores a
RNAP
roduct in the database and returns the new
internal identifier for the stored
RNAP
roduct.
Returntype : Int
Exceptions : throw on incorrect arguments
Caller : general
...
...
@@ -418,7 +418,7 @@ sub store {
Arg[1] : String $table
Arg[2] : String $column
Example : $rnaproduct_adaptor->_list_dbIDs('rnaproduct', 'rnaproduct_id');
Description : Local reimplementation to ensure multi-species
rnap
roducts
Description : Local reimplementation to ensure multi-species
RNAP
roducts
are limited to their species alone
Returntype : ArrayRef of specified IDs
Caller : Internal
...
...
@@ -458,7 +458,7 @@ SQL
# to be handed directly to users because in its current form
# it can be trivially exploited to inject arbitrary SQL.
# Returntype : ArrayRef of either Bio::EnsEMBL::RNAProducts or undefs
# Exceptions : throws if
rnap
roduct type is absent or unknown
# Exceptions : throws if
RNAP
roduct type is absent or unknown
# Caller : internal
# Status : At Risk (In Development)
...
...
@@ -494,7 +494,7 @@ sub _fetch_direct_query {
# methods in order to avoid duplication of object-creation
# logic.
# Returntype : ArrayRef of either Bio::EnsEMBL::RNAProducts or undefs
# Exceptions : throws if
rnap
roduct type is absent or unknown
# Exceptions : throws if
RNAP
roduct type is absent or unknown
# Caller : internal
# Status : At Risk (In Development)
sub
_obj_from_sth
{
...
...
modules/Bio/EnsEMBL/DBSQL/TranscriptAdaptor.pm
View file @
443d4117
...
...
@@ -253,11 +253,11 @@ sub fetch_all_versions_by_stable_id {
=head2 fetch_by_rnaproduct_id
Arg [1] : Int $id
The internal identifier of the
rnap
roduct whose transcript
The internal identifier of the
RNAP
roduct whose transcript
is to be retrieved
Example : my $tr = $tr_adaptor->fetch_by_rnaproduct_id($rnap->dbID);
Description: Given the internal identifier of a
rnap
roduct this method
retrieves the transcript associated with that
rnap
roduct.
Description: Given the internal identifier of a
RNAP
roduct this method
retrieves the transcript associated with that
RNAP
roduct.
If the transcript cannot be found undef is returned instead.
Returntype : Bio::EnsEMBL::Transcript or undef
Exceptions : none
...
...
modules/Bio/EnsEMBL/RNAProduct.pm
View file @
443d4117
...
...
@@ -77,17 +77,17 @@ use parent qw(Bio::EnsEMBL::Storable);
position of the product sequence.
Arg [-SEQ_END] : The offset in the Transcript indicating the end
position of the product sequence.
Arg [-START_EXON] : The Exon object in which the
rnap
roduct starts
Arg [-END_EXON] : The Exon object in which the
rnap
roduct ends
Arg [-START_EXON] : The Exon object in which the
RNAP
roduct starts
Arg [-END_EXON] : The Exon object in which the
RNAP
roduct ends
Arg [-STABLE_ID] : The stable identifier for this RNAPRoduct
Arg [-VERSION] : The version of the stable identifier
Arg [-DBID] : The internal identifier of this RNAProduct
Arg [-ADAPTOR] : The RNAProductAdaptor for this RNAProduct
Arg [-SEQ] : Manually sets the nucleotide sequence of this
rnap
roduct. May be useful if this
rnap
roduct is not
RNAP
roduct. May be useful if this
RNAP
roduct is not
stored in a database.
Arg [-CREATED_DATE] : the date the
rnap
roduct was created
Arg [-MODIFIED_DATE]: the date the
rnap
roduct was modified
Arg [-CREATED_DATE] : the date the
RNAP
roduct was created
Arg [-MODIFIED_DATE]: the date the
RNAP
roduct was modified
Example : my $rp = Bio::EnsEMBL::RNAProduct->new(
-SEQ_START => 36,
-SEQ_END => 58
...
...
@@ -181,9 +181,9 @@ sub add_Attributes {
Arg [1] : Bio::EnsEMBL::DBEntry $dbe
The dbEntry to be added
Example : $rnaproduct->add_DBEntry($xref);
Description: Associates a DBEntry with this
rnap
roduct. Note that adding
Description: Associates a DBEntry with this
RNAP
roduct. Note that adding
DBEntries will prevent future lazy-loading of DBEntries for this
rnap
roduct (see get_all_DBEntries).
RNAP
roduct (see get_all_DBEntries).
Returntype : none
Exceptions : thrown on incorrect argument type
Caller : general
...
...
@@ -208,9 +208,9 @@ sub add_DBEntry {
=head2 cdna_end
Example : $rnaproduct_cdna_end = $rnaproduct->cdna_end();
Description : Returns the end position of the
rnap
roduct in cDNA
Description : Returns the end position of the
RNAP
roduct in cDNA
coordinates.
Since
rnap
roducts do not span multiple exons, this is
Since
RNAP
roducts do not span multiple exons, this is
simply an alias for end().
Return type : Integer
Caller : General
...
...
@@ -228,9 +228,9 @@ sub cdna_end {
=head2 cdna_start
Example : $rnaproduct_cdna_start = $rnaproduct->cdna_start();
Description : Returns the start position of the
rnap
roduct in cDNA
Description : Returns the start position of the
RNAP
roduct in cDNA
coordinates.
Since
rnap
roducts do not span multiple exons, this is
Since
RNAP
roducts do not span multiple exons, this is
simply an alias for start().
Return type : Integer
Caller : General
...
...
@@ -270,7 +270,7 @@ sub created_date {
Example : print $rnaproduct->display_id();
Description: This method returns a string that is considered to be
the 'display' identifier. For
rnap
roducts this is (depending on
the 'display' identifier. For
RNAP
roducts this is (depending on
availability and in this order) the stable ID, the dbID or an
empty string.
Returntype : string
...
...
@@ -313,7 +313,7 @@ sub end {
Arg [1] : (optional) Bio::EnsEMBL::Exon || undef - start exon to assign
Example : $rnaproduct->end_Exon($exon1);
Description: Getter/setter for the value of end_Exon, which denotes the
exon at which
rnap
roduct ends.
exon at which
RNAP
roduct ends.
Returntype : Bio::EnsEMBL::Exon
Exceptions : thrown on wrong argument type
Caller : general
...
...
@@ -344,7 +344,7 @@ sub end_Exon {
Args : None
Example : $rnaproduct_genomic_end = $rnaproduct->genomic_end();
Description : Returns the end position of the
rnap
roduct in genomic
Description : Returns the end position of the
RNAP
roduct in genomic
coordinates on the forward strand.
Return type : Integer
Exceptions : None
...
...
@@ -376,7 +376,7 @@ sub genomic_end {
Args : None
Example : $rnaproduct_genomic_start = $rnaproduct->genomic_start();
Description : Returns the start position of the
rnap
roduct in
Description : Returns the start position of the
RNAP
roduct in
genomic coordinates on the forward strand.
Return type : Integer
Exceptions : None
...
...
@@ -410,7 +410,7 @@ sub genomic_start {
The code of the attribute type to retrieve values for.
Example : ($n_attr) = @{$tl->get_all_Attributes('note')};
@rp_attributes = @{$rnaproduct->get_all_Attributes()};
Description: Gets a list of Attributes of this
rnap
roduct.
Description: Gets a list of Attributes of this
RNAP
roduct.
Optionally just get Attributes for given code.
Returntype : listref Bio::EnsEMBL::Attribute
Exceptions : none
...
...
@@ -422,7 +422,7 @@ sub genomic_start {
sub
get_all_Attributes
{
my
(
$self
,
$attrib_code
)
=
@_
;
#
i
f not cached, retrieve all of the attributes for this
rnap
roduct
#
I
f not cached, retrieve all of the attributes for this
RNAP
roduct
if
(
!
defined
(
$self
->
{'
attributes
'})
&&
defined
(
$self
->
adaptor
()))
{
my
$aa
=
$self
->
adaptor
->
db
->
get_AttributeAdaptor
();
$self
->
{'
attributes
'}
=
$aa
->
fetch_all_by_RNAProduct
(
$self
);
...
...
@@ -453,11 +453,11 @@ sub get_all_Attributes {
@dbentries = @{ $rnaproduct->get_all_DBEntries('Uniprot%') };
@dbentries = @{ $rnaproduct->get_all_DBEntries('%', 'ENSEMBL') };
Description: Retrieves DBEntries (xrefs) for this
rnap
roduct.
Description: Retrieves DBEntries (xrefs) for this
RNAP
roduct.
This method will attempt to lazy-load DBEntries
from a database if an adaptor is available and no
DBEntries are present on the
rnap
roduct (i.e. they
DBEntries are present on the
RNAP
roduct (i.e. they
have not already been added or loaded).
Returntype : Listref to Bio::EnsEMBL::DBEntry objects
...
...
@@ -480,7 +480,7 @@ sub get_all_DBEntries {
$cache_name
.=
$ex_db_type
;
}
#
i
f not cached, retrieve all of the xrefs for this
rnap
roduct
#
I
f not cached, retrieve all of the xrefs for this
RNAP
roduct
if
(
!
defined
(
$self
->
{
$cache_name
})
&&
defined
(
$self
->
adaptor
()))
{
$self
->
{
$cache_name
}
=
$self
->
adaptor
()
->
db
()
->
get_DBEntryAdaptor
()
->
fetch_all_by_RNAProduct
(
$self
,
$ex_db_exp
,
$ex_db_type
);
...
...
@@ -535,11 +535,11 @@ sub get_all_DBLinks { ## no critic (Subroutines::RequireArgUnpacking)
Example : @oxrefs = @{ $rnaproduct->get_all_object_xrefs() };
Description: Retrieves xrefs for this
rnap
roduct.
Description: Retrieves xrefs for this
RNAP
roduct.
This method will attempt to lazy-load xrefs from a
database if an adaptor is available and no xrefs
are present on the
rnap
roduct (i.e. they have not
are present on the
RNAP
roduct (i.e. they have not
already been added or loaded).
NB: This method is an alias for the
...
...
@@ -722,7 +722,7 @@ sub stable_id {
Arg [1] : (optional) String - the stable ID with version to set
Example : $rnaproduct->stable_id("ENSM0059890.3");
Description: Getter/setter for stable id with version for this
rnap
roduct.
Description: Getter/setter for stable id with version for this
RNAP
roduct.
If the input string omits the version part, the version gets reset
to undef; use stable_id() if you want to avoid this.
Returntype : String
...
...
@@ -780,7 +780,7 @@ sub start {
Arg [1] : (optional) Bio::EnsEMBL::Exon || undef - start exon to assign
Example : $rnaproduct->start_Exon($exon1);
Description: Getter/setter for the value of start_Exon, which denotes the
exon at which
rnap
roduct starts.
exon at which
RNAP
roduct starts.
Returntype : Bio::EnsEMBL::Exon
Exceptions : thrown on wrong argument type
Caller : general
...
...
@@ -898,9 +898,9 @@ sub synchronise_attributes {
Arg [1] : Transcript object (optional)
Description : Sets or retrieves the transcript object associated
with this
rnap
roduct object.
with this
RNAP
roduct object.
Exceptions : Throws if there is no adaptor or no dbID defined for
the
rnap
roduct object.
the
RNAP
roduct object.
Returntype : Bio::EnsEMBL::Transcript
=cut
...
...
@@ -923,12 +923,12 @@ sub transcript {
}
elsif
(
!
defined
(
$self
->
{'
transcript
'}))
{
my
$adaptor
=
$self
->
{'
adaptor
'};
if
(
!
defined
(
$adaptor
))
{
throw
("
Adaptor not set for
rnap
roduct, cannot fetch its transcript
");
throw
("
Adaptor not set for
RNAP
roduct, cannot fetch its transcript
");
}
my
$dbID
=
$self
->
{'
dbID
'};
if
(
!
defined
(
$dbID
))
{
throw
("
dbID not set for
rnap
roduct, cannot fetch its transcript.
");
throw
("
dbID not set for
RNAP
roduct, cannot fetch its transcript.
");
}
$self
->
{'
transcript
'}
=
...
...
@@ -936,7 +936,7 @@ sub transcript {
->
fetch_by_rnaproduct_id
(
$dbID
);
# Do not weaken the reference if we had to get the transcript from the
# database. The user is probably working on
rna
products directly,
# database. The user is probably working on
RNA
products directly,
# not going through transcripts.
}
...
...
modules/Bio/EnsEMBL/Utils/RNAProductTypeMapper.pm
View file @
443d4117
...
...
@@ -134,7 +134,7 @@ sub new {
=head2 class_attribute_cache_map
Arg [1] : string $class_name - fully qualified
rna
product class name
Arg [1] : string $class_name - fully qualified
RNA-
product class name
Example : my $attr_cache_map
= $mapper->class_attribute_cache_map( 'Bio::EnsEMBL::MicroRNA' );
Description: For the given name of a class representing a mature RNA
...
...
@@ -160,7 +160,7 @@ sub class_attribute_cache_map {
=head2 class_to_type_code
Arg [1] : string $class_name - fully qualified
rna
product class name
Arg [1] : string $class_name - fully qualified
RNA-
product class name
Example : my $type_code
= $mapper->class_to_type_code( 'Bio::EnsEMBL::MicroRNA' );
Description: For the given name of a class representing a mature RNA
...
...
@@ -191,7 +191,7 @@ sub class_to_type_code {
=head2 type_code_to_class
Arg [1] : string $type_code - type code of
rna
product
Arg [1] : string $type_code - type code of
RNA
product
Example : my $class_name = $mapper->class_to_type_code( 1 );
Description: For the type code representing a mature RNA product in the
Ensembl database, return its API class name
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment