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
5cab112a
Commit
5cab112a
authored
8 years ago
by
elpaule
Browse files
Options
Downloads
Patches
Plain Diff
change protein feature uniqueness to be pe analysis
parent
544e8654
No related branches found
Branches containing commit
No related tags found
Tags containing commit
2 merge requests
!181
Protein Feature patch
,
!181
Protein Feature patch
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
modules/Bio/EnsEMBL/DBSQL/ProteinFeatureAdaptor.pm
+11
-0
11 additions, 0 deletions
modules/Bio/EnsEMBL/DBSQL/ProteinFeatureAdaptor.pm
sql/table.sql
+1
-1
1 addition, 1 deletion
sql/table.sql
with
12 additions
and
1 deletion
modules/Bio/EnsEMBL/DBSQL/ProteinFeatureAdaptor.pm
+
11
−
0
View file @
5cab112a
...
...
@@ -259,6 +259,17 @@ sub store {
$sth
->
execute
();
if
(
defined
(
$sth
->
err
)){
# is defined if server sends a message
if
(
$sth
->
err
eq
0
){
warning
('
SQL warning :
'
.
$sth
->
errstr
.
"
\n
");
}
elsif
(
$sth
->
err
){
# not an empty string or zero
warning
('
SQL error :
'
.
$sth
->
errstr
.
"
\n
");
}
elsif
(
$sth
->
err
eq
''){
# SQL info messages
}
}
my
$dbID
=
$self
->
last_insert_id
('
protein_feature_id
',
undef
,
'
protein_feature
');
$feature
->
adaptor
(
$self
);
...
...
This diff is collapsed.
Click to expand it.
sql/table.sql
+
1
−
1
View file @
5cab112a
...
...
@@ -935,7 +935,7 @@ CREATE TABLE protein_feature (
external_data
TEXT
,
hit_description
TEXT
,
UNIQUE
KEY
aln_idx
(
translation_id
,
hit_name
,
seq_start
,
seq_end
,
hit_start
,
hit_end
),
UNIQUE
KEY
aln_idx
(
translation_id
,
hit_name
,
seq_start
,
seq_end
,
hit_start
,
hit_end
,
analysis_id
),
PRIMARY
KEY
(
protein_feature_id
),
KEY
translation_idx
(
translation_id
),
KEY
hitname_idx
(
hit_name
),
...
...
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