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
c278f330
Commit
c278f330
authored
21 years ago
by
Graham McVicker
Browse files
Options
Downloads
Patches
Plain Diff
corrected store method
parent
8df7b8dc
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/MiscFeatureAdaptor.pm
+20
-13
20 additions, 13 deletions
modules/Bio/EnsEMBL/DBSQL/MiscFeatureAdaptor.pm
with
20 additions
and
13 deletions
modules/Bio/EnsEMBL/DBSQL/MiscFeatureAdaptor.pm
+
20
−
13
View file @
c278f330
...
...
@@ -15,11 +15,17 @@ Bio::EnsEMBL::DBSQL::MiscFeatureAdaptor
$mfa = $database_adaptor->get_MiscFeatureAdaptor();
# retrieve a misc feature by its dbID
my $misc_feat = $mfa->fetch_by_dbID(1234);
# retrieve all misc features in a given region
my @misc_feats = @{$mfa->fetch_all_by_Slice($slice)};
# retrieve all misc features in a given region with a given set code
my @misc_clones = @{$mfa->fetch_all_by_Slice_and_set_code('cloneset')};
# store some misc features in the database
$mfa->store(@misc_features);
=head1 DESCRIPTION
...
...
@@ -37,10 +43,7 @@ than one set.
Post questions to the EnsEMBL developer list: ensembl-dev@ebi.ac.uk
=head1 APPENDIX
The rest of the documentation details each of the object methods.
Internal methods are usually preceded with a _
=head1 METHODS
=cut
...
...
@@ -477,7 +480,8 @@ sub _objs_from_sth {
Arg [1] : none
Example : @feature_ids = @{$misc_feature_adaptor->list_dbIDs()};
Description: Gets an array of internal ids for all misc_features in the current db
Description: Gets an array of internal ids for all misc_features in the
current db
Returntype : list of ints
Exceptions : none
Caller : ?
...
...
@@ -493,12 +497,15 @@ sub list_dbIDs {
=head2 store
Arg [1] :
Example :
Description:
Returntype :
Exceptions :
Caller :
Arg [1] : list of Bio::EnsEMBL::MiscFeatures @misc_features
Example : $misc_feature_adaptor->store(@misc_features);
Description: Stores a list of MiscFeatures in this database. The stored
features will have their
Returntype : none
Exceptions : throw on invalid arguments
warning if misc feature is already stored in this database
throw if start/end/strand attribs are not valid
Caller : general
=cut
...
...
@@ -517,7 +524,7 @@ sub store {
my
$feature_set_sth
=
$self
->
prepare
("
INSERT IGNORE misc_feature_misc_set SET
"
.
"
misc_feature_id = ?
"
.
"
misc_feature_id = ?
,
"
.
"
misc_set_id = ?
");
my
$msa
=
$db
->
get_MiscSetAdaptor
();
...
...
@@ -537,7 +544,7 @@ sub store {
# do some checking of the start/end and convert to seq_region coords
my
$original
=
$mf
;
my
$seq_region_id
;
(
$mf
,
$seq_region_id
)
=
$self
->
pre_store
(
$mf
);
(
$mf
,
$seq_region_id
)
=
$self
->
_
pre_store
(
$mf
);
# store the actual MiscFeature
$feature_sth
->
execute
(
$seq_region_id
,
$mf
->
start
(),
...
...
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