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
ae60c4b7
Commit
ae60c4b7
authored
22 years ago
by
Graham McVicker
Browse files
Options
Downloads
Patches
Plain Diff
renamed Protein::all_SeqFeature to get_all_ProteinFeatures
parent
84458e7d
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/Protein.pm
+50
-44
50 additions, 44 deletions
modules/Bio/EnsEMBL/Protein.pm
with
50 additions
and
44 deletions
modules/Bio/EnsEMBL/Protein.pm
+
50
−
44
View file @
ae60c4b7
...
...
@@ -279,44 +279,31 @@ sub moltype{
sub
top_SeqFeatures
{
my
(
$self
,
@args
)
=
@_
;
my
(
@f
);
push
(
@f
,
$self
->
get_all_DomainFeatures
());
#push(@f,$self->get_all_IntronFeatures());
push
(
@f
,
$self
->
get_all_blastpFeatures
());
#push(@f,$self->get_all_SnpsFeatures());
push
(
@f
,
$self
->
get_all_SigpFeatures
());
push
(
@f
,
$self
->
get_all_TransmembraneFeatures
());
push
(
@f
,
$self
->
get_all_CoilsFeatures
());
push
(
@f
,
$self
->
get_all_LowcomplFeatures
());
return
@f
;
return
@
{
$self
->
get_all_ProteinFeatures
};
}
=head2 all_SeqFeature
Title : all_SeqFeature
Usage :
Function:This method returns the same things than top_SeqFeature, sub SeqFeatures are not currently implemented in the protein object
Example :
Returns :
Args :
sub
get_all_ProteinFeatures
{
my
$self
=
shift
;
=cut
my
@f
=
();
sub
all_SeqFeature
{
my
(
$self
)
=
@_
;
push
(
@f
,
@
{
$self
->
get_all_DomainFeatures
()});
push
(
@f
,
@
{
$self
->
get_all_blastpFeatures
()});
push
(
@f
,
@
{
$self
->
get_all_SigpFeatures
()});
push
(
@f
,
@
{
$self
->
get_all_TransmembraneFeatures
()});
push
(
@f
,
@
{
$self
->
get_all_CoilsFeatures
()});
push
(
@f
,
@
{
$self
->
get_all_LowcomplFeatures
()});
return
$self
->
top_SeqFeatures
;
return
\
@f
;
}
...
...
@@ -1033,27 +1020,26 @@ sub add_Superfamily{
#}
=head2 add_ProteinFeature
Title : add_ProteinFeature (formerly add_Protein_feature)
Usage :
Function:
Example :
Returns :
Args :
#
Title : add_ProteinFeature (formerly add_Protein_feature)
#
Usage :
#
Function:
#
Example :
#
Returns :
#
Args :
=cut
#
=cut
sub
add_ProteinFeature
{
my
(
$self
,
$value
)
=
@_
;
#
sub add_ProteinFeature{
#
my ($self,$value) = @_;
if
((
!
defined
$value
)
||
(
!
$value
->
isa
('
Bio::EnsEMBL::ProteinFeature
')))
{
$self
->
throw
("
[
$value
] is not a protein feature object
");
}
#
if ((!defined $value) || (!$value->isa('Bio::EnsEMBL::ProteinFeature'))) {
#
$self->throw("[$value] is not a protein feature object");
#
}
push
(
@
{
$self
->
{'
_prot_feat
'}},
$value
);
}
#
push(@{$self->{'_prot_feat'}},$value);
#
}
=head2 length
...
...
@@ -1184,6 +1170,26 @@ sub get_all_DBLinks{
=head2 all_SeqFeature
Arg [1] : none
Example : none
Description: DEPRECATED use Bio::EnsEMBL::get_all_ProteinFeatures instead
Returntype : none
Exceptions : none
Caller : none
=cut
sub
all_SeqFeature
{
my
(
$self
)
=
@_
;
$self
->
warn
("
all_SeqFeature has been renamed get_all_ProteinFeatures
\n
");
return
@
{
$self
->
get_all_ProteinFeautres
};
}
1
;
...
...
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