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
e8cb5843
Commit
e8cb5843
authored
22 years ago
by
Alistair Rust
Browse files
Options
Downloads
Patches
Plain Diff
- Removed delete_by_RawContig_id method.
- Replaced with remove_RawContig.
parent
4ed92b29
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/DBSQL/BaseFeatureAdaptor.pm
+15
-15
15 additions, 15 deletions
modules/Bio/EnsEMBL/DBSQL/BaseFeatureAdaptor.pm
with
15 additions
and
15 deletions
modules/Bio/EnsEMBL/DBSQL/BaseFeatureAdaptor.pm
+
15
−
15
View file @
e8cb5843
...
...
@@ -499,26 +499,26 @@ sub remove {
=head2
delete_by
_RawContig
_id
Arg [1] :
strin
g $contig
_id
Example : $feature_adaptor->
delete_by
_RawContig
_id
($contig
_id
);
Description: This removes
a
feature from the database
. The table the
feature
is
removed from is defined by
the abstract method
_tablename, and the primary key of the table
is assumed
to be contig_id.
=head2
remove
_RawContig
Arg [1] :
Bio::Ensembl::RawConti
g $contig
Example : $feature_adaptor->
remove
_RawContig($contig);
Description: This removes feature
s
from the database
which lie on a removed
contig. The table the
feature
s are
removed from is defined by
the abstract method
_tablename, and the primary key of the table
is assumed
to be contig_id.
Returntype : none
Exceptions : thrown if no contig
_id
is supplied
Exceptions : thrown if no contig is supplied
Caller : general
=cut
sub
delete_by
_RawContig
_id
{
my
(
$self
,
$contig
_id
)
=
@_
;
sub
remove
_RawContig
{
my
(
$self
,
$contig
)
=
@_
;
unless
(
$contig
_id
)
{
$self
->
throw
("
BaseFeatureAdaptor::
delete_by_RawContig_id
- no contig
_id defin
ed:
"
.
"
Deletion of feature failed.
");
unless
(
$contig
)
{
$self
->
throw
("
BaseFeatureAdaptor::
remove
- no contig
suppli
ed:
"
.
"
Deletion of feature
s
failed.
");
}
my
$table
=
$self
->
_tablename
();
...
...
@@ -537,7 +537,7 @@ sub delete_by_RawContig_id {
my
(
$actual_table
)
=
$table_name
=~
/(^\w+)/
;
# lose the table alias, if there is one
my
$sth
=
$self
->
prepare
("
DELETE FROM
$actual_table
WHERE contig_id = ?
");
$sth
->
execute
(
$contig
_id
);
$sth
->
execute
(
$contig
->
dbID
);
}
return
;
...
...
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