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
485046e6
Commit
485046e6
authored
18 years ago
by
Felix Kokocinski
Browse files
Options
Downloads
Patches
Plain Diff
added method to fetch total extend of mapped ditag
parent
e9a4e550
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/Map/DBSQL/DitagFeatureAdaptor.pm
+21
-12
21 additions, 12 deletions
modules/Bio/EnsEMBL/Map/DBSQL/DitagFeatureAdaptor.pm
with
21 additions
and
12 deletions
modules/Bio/EnsEMBL/Map/DBSQL/DitagFeatureAdaptor.pm
+
21
−
12
View file @
485046e6
...
...
@@ -92,10 +92,12 @@ sub fetch_by_dbID {
}
=head2 fetch_all_by_ditagID
Arg [1] : ditag dbID
Example : @my_tags = @{$ditagfeature_adaptor->fetch_by_ditag_id($my_id)};
Arg [2] : (optional) ditag-pair dbID
Example : @my_tags = @{$ditagfeature_adaptor->fetch_all_by_ditag_id($my_id)};
Description: Retrieves all ditagFeatures from the database linking to a specific ditag-id
Returntype : listref of Bio::EnsEMBL::Map::DitagFeature
Caller : general
...
...
@@ -103,17 +105,24 @@ sub fetch_by_dbID {
=cut
sub
fetch_all_by_ditagID
{
my
(
$self
,
$ditag_id
)
=
@_
;
print
"
\n
ID=
$ditag_id
\n
";
my
$sth
=
$self
->
prepare
("
SELECT ditag_feature_id, ditag_id, seq_region_id, seq_region_start,
seq_region_end, seq_region_strand, analysis_id, hit_start, hit_end,
hit_strand, cigar_line, ditag_side, ditag_pair_id
FROM ditag_feature
WHERE ditag_id = ?
ORDER BY ditag_pair_id
"
);
$sth
->
execute
(
$ditag_id
);
my
(
$self
,
$ditag_id
,
$ditag_pair_id
)
=
@_
;
my
$sql
=
"
SELECT ditag_feature_id, ditag_id, seq_region_id, seq_region_start,
seq_region_end, seq_region_strand, analysis_id, hit_start, hit_end,
hit_strand, cigar_line, ditag_side, ditag_pair_id
FROM ditag_feature
WHERE ditag_id = ?
";
if
(
$ditag_pair_id
){
$sql
.=
"
AND ditag_pair_id = ?
";
}
$sql
.=
"
ORDER BY ditag_pair_id
";
my
$sth
=
$self
->
prepare
(
$sql
);
if
(
$ditag_pair_id
){
$sth
->
execute
(
$ditag_id
,
$ditag_pair_id
);
}
else
{
$sth
->
execute
(
$ditag_id
);
}
my
$result
=
$self
->
_fetch
(
$sth
);
...
...
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