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
5fb74911
Commit
5fb74911
authored
9 years ago
by
Magali Ruffier
Browse files
Options
Downloads
Patches
Plain Diff
deprecated broken method
parent
ce0593ce
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
DEPRECATED.md
+1
-0
1 addition, 0 deletions
DEPRECATED.md
modules/Bio/EnsEMBL/DBSQL/SliceAdaptor.pm
+2
-22
2 additions, 22 deletions
modules/Bio/EnsEMBL/DBSQL/SliceAdaptor.pm
with
3 additions
and
22 deletions
DEPRECATED.md
+
1
−
0
View file @
5fb74911
...
...
@@ -145,6 +145,7 @@ A year after deprecation (4 Ensembl releases), the method is removed from the AP
### Removed in Ensembl Release 84 ###
-
Bio::EnsEMBL::DBSQL::
**CoordSystemAdaptor**
::
*_fetch_by_attrib()*
-
Bio::EnsEMBL::DBSQL::
**CoordSystemAdaptor**
::
*_fetch_all_by_attrib()*
-
Bio::EnsEMBL::DBSQL::
**SliceAdaptor**
::
*fetch_by_band()*
-
Bio::EnsEMBL::DBSQL::
**MetaContainer**
::
*get_short_name()*
-
Bio::EnsEMBL::DBSQL::
**MetaContainer**
::
*get_max_assembly_contig()*
-
Bio::EnsEMBL::
**Exon**
::
*_get_stable_entry_info()*
...
...
This diff is collapsed.
Click to expand it.
modules/Bio/EnsEMBL/DBSQL/SliceAdaptor.pm
+
2
−
22
View file @
5fb74911
...
...
@@ -1487,34 +1487,14 @@ sub is_circular {
=head2 fetch_by_band
Title : fetch_by_band
Usage :
Function: Does not work please use fetch_by_chr_band
Example :
Returns : Bio::EnsEMBL::Slice
Args : the band name
Status : AT RISK
Description : DEPRECATED. Use fetch_by_chr_band instead
=cut
sub
fetch_by_band
{
my
(
$self
,
$band
)
=
@_
;
my
$sth
=
$self
->
dbc
->
prepare
("
select s.name,max(k.seq_region_id)-min(k.seq_region_id, min(k.seq_region_start), max(k.seq_region_id)
"
.
"
from karyotype as k
"
.
"
where k.band like ? and k.seq_region_id = s.seq_region_id
");
$sth
->
bind_param
(
1
,"
$band
%
",
SQL_VARCHAR
);
$sth
->
execute
();
my
(
$seq_region_name
,
$discrepancy
,
$seq_region_start
,
$seq_region_end
)
=
$sth
->
fetchrow_array
;
if
(
$seq_region_name
&&
$discrepancy
>
0
)
{
throw
("
Band maps to multiple seq_regions
");
}
else
{
return
$self
->
fetch_by_region
('
toplevel
',
$seq_region_name
,
$seq_region_start
,
$seq_region_end
);
}
throw
("
Band not recognised in database
");
deprecate
("
fetch_by_band is deprecated and will be removed in e84. Please use fetch_by_chr_band instead.
");
}
=head2 fetch_by_chr_band
...
...
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