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
79e729d3
Commit
79e729d3
authored
11 years ago
by
nick-james
Browse files
Options
Downloads
Patches
Plain Diff
added extra_data/external_data column to insert for storing DnaAlignFeatures
parent
f51b0393
No related branches found
No related tags found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
modules/Bio/EnsEMBL/DBSQL/DnaAlignFeatureAdaptor.pm
+12
-9
12 additions, 9 deletions
modules/Bio/EnsEMBL/DBSQL/DnaAlignFeatureAdaptor.pm
with
12 additions
and
9 deletions
modules/Bio/EnsEMBL/DBSQL/DnaAlignFeatureAdaptor.pm
+
12
−
9
View file @
79e729d3
=head1 LICENSE
Copyright [1999-201
4
] Wellcome Trust Sanger Institute and the EMBL-European Bioinformatics Institute
Copyright [1999-201
3
] Wellcome Trust Sanger Institute and the EMBL-European Bioinformatics Institute
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
...
...
@@ -20,10 +20,10 @@ limitations under the License.
=head1 CONTACT
Please email comments or questions to the public Ensembl
developers list at <
http://lists.ensembl.org/mailman/listinfo/dev
>.
developers list at <
dev@ensembl.org
>.
Questions may also be sent to the Ensembl help desk at
<h
ttp://www.
ensembl.org
/Help/Contact
>.
<h
elpdesk@
ensembl.org>.
=cut
...
...
@@ -160,8 +160,8 @@ sub store {
seq_region_end, seq_region_strand,
hit_start, hit_end, hit_strand, hit_name,
cigar_line, analysis_id, score, evalue,
perc_ident, external_db_id, hcoverage)
VALUES (?,?,?,?,?,?,?,?,?,?,?,?,?,?,?)
"
# 1
5
arguments
perc_ident, external_db_id, hcoverage
, external_data
)
VALUES (?,?,?,?,?,?,?,?,?,?,?,?,?,?,?
,?
)
"
# 1
6
arguments
);
FEATURE:
...
...
@@ -211,7 +211,7 @@ FEATURE:
my
$original
=
$feat
;
my
$seq_region_id
;
(
$feat
,
$seq_region_id
)
=
$self
->
_pre_store
(
$feat
);
$sth
->
bind_param
(
1
,
$seq_region_id
,
SQL_INTEGER
);
$sth
->
bind_param
(
2
,
$feat
->
start
,
SQL_INTEGER
);
$sth
->
bind_param
(
3
,
$feat
->
end
,
SQL_INTEGER
);
...
...
@@ -227,11 +227,14 @@ FEATURE:
$sth
->
bind_param
(
13
,
$feat
->
percent_id
,
SQL_FLOAT
);
$sth
->
bind_param
(
14
,
$feat
->
external_db_id
,
SQL_INTEGER
);
$sth
->
bind_param
(
15
,
$feat
->
hcoverage
,
SQL_DOUBLE
);
# Eagle change: also store the extra data, if available
my
$extra_data
;
$extra_data
=
$self
->
dump_data
(
$feat
->
extra_data
())
if
(
$feat
->
extra_data
());
$sth
->
bind_param
(
16
,
$extra_data
,
SQL_LONGVARCHAR
);
$sth
->
execute
();
my
$dbId
=
$self
->
last_insert_id
("
${tablename}
_id
",
undef
,
$tablename
);
$original
->
dbID
(
$dbId
);
$original
->
dbID
(
$sth
->
{'
mysql_insertid
'}
);
$original
->
adaptor
(
$self
);
}
## end foreach my $feat (@feats)
...
...
@@ -326,7 +329,7 @@ sub save {
$sth
->
execute
();
$original
->
dbID
(
$s
elf
->
last
_insert
_
id
("
${tablename}
_id
",
undef
,
$tablename
)
);
$original
->
dbID
(
$s
th
->
{'
mysql
_insertid
'}
);
$original
->
adaptor
(
$self
);
}
...
...
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