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
54fb4aea
Commit
54fb4aea
authored
19 years ago
by
Glenn Proctor
Browse files
Options
Downloads
Patches
Plain Diff
*** empty log message ***
parent
d970667d
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
modules/Bio/EnsEMBL/DBSQL/RegulatorySearchRegionAdaptor.pm
+28
-4
28 additions, 4 deletions
modules/Bio/EnsEMBL/DBSQL/RegulatorySearchRegionAdaptor.pm
modules/t/regulatorySearchRegion.t
+2
-2
2 additions, 2 deletions
modules/t/regulatorySearchRegion.t
with
30 additions
and
6 deletions
modules/Bio/EnsEMBL/DBSQL/RegulatorySearchRegionAdaptor.pm
+
28
−
4
View file @
54fb4aea
...
...
@@ -15,7 +15,7 @@ Bio::EnsEMBL::DBSQL::RegulatorySearchRegionAdaptor
$rfa = $database_adaptor->get_RegulatorySearchRegionAdaptor();
my $r
egulatory_feature
= $rfa->fetch_by_dbID(1234);
my $r
s
= $rfa->fetch_by_dbID(1234);
=head1 DESCRIPTION
...
...
@@ -108,7 +108,7 @@ sub _tables {
sub
_columns
{
my
$self
=
shift
;
return
qw (rs.regulatory_
f
ea
ture
_id
return
qw (rs.regulatory_
s
ea
rch_region
_id
rs
.
name
rs
.
seq_region_id
rs
.
seq_region_start
...
...
@@ -310,7 +310,7 @@ sub store {
seq_region_strand
,
analysis_id
,
ensembl_object_type
,
ensem
n
l_object_id
)
ensem
b
l_object_id
)
VALUES
(?,?,?,?,?,?,?,?)});
if
(
!
ref
(
$feature
)
||
!
$feature
->
isa
('
Bio::EnsEMBL::RegulatorySearchRegion
'))
{
...
...
@@ -334,7 +334,7 @@ sub store {
$feature
->
end
(),
$feature
->
strand
(),
$analysis
->
dbID
(),
$feature
->
ensembl_objct_type
(),
$feature
->
ensembl_obj
e
ct_type
(),
$feature
->
ensembl_object_id
());
my
$db_id
=
$rs_sth
->
{'
mysql_insertid
'}
...
...
@@ -365,6 +365,30 @@ sub list_dbIDs {
return
$self
->
_list_dbIDs
("
regulatory_search_region
");
}
=head2 fetch_by_name
Arg [1] : string $name
the name of the regulatory search_region to obtain
Example : $rs = $rsa->fetch_by_name('CisRed_Search_11');
Description: Obtains a regulatory factor from the database via its name
Returntype : Bio::EnsEMBL::RegulatorySearchRegion
Exceptions : none
Caller : general
Status : At Risk
: under development
=cut
sub
fetch_by_name
{
my
(
$self
,
$name
)
=
@_
;
my
(
$rc
)
=
@
{
$self
->
generic_fetch
("
name = '
$name
'
")};
return
$rc
;
}
1
;
This diff is collapsed.
Click to expand it.
modules/t/regulatorySearchRegion.t
+
2
−
2
View file @
54fb4aea
...
...
@@ -30,7 +30,7 @@ my $rsa = $dba->get_RegulatorySearchRegionAdaptor();
my
$coord_system
=
Bio::EnsEMBL::
CoordSystem
->
new
(
-
NAME
=>
'
chromosome
',
-
VERSION
=>
'
NCBI34
',
-
DBID
=>
1
23
,
-
DBID
=>
1
,
-
RANK
=>
1
);
my
$analysis
=
Bio::EnsEMBL::
Analysis
->
new
(
-
LOGIC_NAME
=>
'
test
');
...
...
@@ -38,7 +38,7 @@ my $analysis = Bio::EnsEMBL::Analysis->new(-LOGIC_NAME => 'test');
my
$slice
=
Bio::EnsEMBL::
Slice
->
new
(
-
COORD_SYSTEM
=>
$coord_system
,
-
SEQ_REGION_NAME
=>
'
X
',
-
SEQ_REGION_LENGTH
=>
15e6
,
-
START
=>
1_000_00
0
,
-
START
=>
0
,
-
END
=>
2_000_000
);
my
$rs
=
new
Bio::EnsEMBL::
RegulatorySearchRegion
(
-
start
=>
100
,
...
...
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