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
c4516e7d
Commit
c4516e7d
authored
Jul 02, 2009
by
Andreas Kusalananda Kähäri
Browse files
Make fetch_all_by_logic_name() more readable.
parent
aae5aafa
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
4 deletions
+10
-4
modules/Bio/EnsEMBL/DBSQL/BaseFeatureAdaptor.pm
modules/Bio/EnsEMBL/DBSQL/BaseFeatureAdaptor.pm
+10
-4
No files found.
modules/Bio/EnsEMBL/DBSQL/BaseFeatureAdaptor.pm
View file @
c4516e7d
...
...
@@ -237,6 +237,7 @@ sub fetch_all_by_Slice_constraint {
return
$self
->
{'
_slice_feature_cache
'}
->
{
$key
};
}
}
my
$sa
=
$slice
->
adaptor
();
# Hap/PAR support: retrieve normalized 'non-symlinked' slices
...
...
@@ -324,16 +325,21 @@ sub fetch_all_by_Slice_constraint {
only features with an analysis of type $logic_name will be
returned.
Returntype : listref of Bio::EnsEMBL::SeqFeatures
Exceptions : thrown if $logic_name
Exceptions : thrown if
no
$logic_name
Caller : General
Status : Stable
=cut
sub
fetch_all_by_logic_name
{
my
$self
=
shift
;
my
$logic_name
=
shift
||
throw
(
"
Need a logic_name
"
);
my
$constraint
=
$self
->
_logic_name_to_constraint
(
'',
$logic_name
);
my
(
$self
,
$logic_name
)
=
@_
;
if
(
!
defined
(
$logic_name
)
)
{
throw
("
Need a logic_name
");
}
my
$constraint
=
$self
->
_logic_name_to_constraint
(
'',
$logic_name
);
return
$self
->
generic_fetch
(
$constraint
);
}
...
...
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