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
cda4c9c5
Commit
cda4c9c5
authored
12 years ago
by
Anja Thormann
Browse files
Options
Downloads
Patches
Plain Diff
change read_coverage_adaptor method call from sample to individual
parent
ede5cadb
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/StrainSlice.pm
+6
-6
6 additions, 6 deletions
modules/Bio/EnsEMBL/StrainSlice.pm
with
6 additions
and
6 deletions
modules/Bio/EnsEMBL/StrainSlice.pm
+
6
−
6
View file @
cda4c9c5
...
...
@@ -178,11 +178,11 @@ sub _filter_af_by_coverage{
my
$rc_adaptor
=
$variation_db
->
get_ReadCoverageAdaptor
();
#this is ugly, but ReadCoverage is always defined in the positive strand
### EK : - it looks like the arguments to fetch_all_by_Slice_
Sample
_depth have changed
### EK : - it looks like the arguments to fetch_all_by_Slice_
Individual
_depth have changed
### passing 1 will only get you the coverage of level 1
### by omitting the parameter we take into account all coverage regions
# my $rcs = $rc_adaptor->fetch_all_by_Slice_
Sample
_depth($self,$self->{'_strain'},1);
my
$rcs
=
$rc_adaptor
->
fetch_all_by_Slice_
Sample
_depth
(
$self
,
$self
->
{'
_strain
'});
# my $rcs = $rc_adaptor->fetch_all_by_Slice_
Individual
_depth($self,$self->{'_strain'},1);
my
$rcs
=
$rc_adaptor
->
fetch_all_by_Slice_
Individual
_depth
(
$self
,
$self
->
{'
_strain
'});
my
$new_af
;
foreach
my
$af
(
@
{
$allele_features
}){
foreach
my
$rc
(
@
{
$rcs
}){
...
...
@@ -320,11 +320,11 @@ sub _add_coverage_information{
}
my
$rc_adaptor
=
$variation_db
->
get_ReadCoverageAdaptor
();
### EK : - it looks like the arguments to fetch_all_by_Slice_
Sample
_depth have changed
### EK : - it looks like the arguments to fetch_all_by_Slice_
Individual
_depth have changed
### passing 1 will only get you the coverage of level 1
### by omitting the parameter we take into account all coverage regions
# my $rcs = $rc_adaptor->fetch_all_by_Slice_
Sample
_depth($self,$self->{'_strain'},1);
my
$rcs
=
$rc_adaptor
->
fetch_all_by_Slice_
Sample
_depth
(
$self
,
$self
->
{'
_strain
'});
# my $rcs = $rc_adaptor->fetch_all_by_Slice_
Individual
_depth($self,$self->{'_strain'},1);
my
$rcs
=
$rc_adaptor
->
fetch_all_by_Slice_
Individual
_depth
(
$self
,
$self
->
{'
_strain
'});
my
$rcs_sorted
;
@
{
$rcs_sorted
}
=
sort
{
$a
->
start
<=>
$b
->
start
}
@
{
$rcs
}
if
(
$self
->
strand
==
-
1
);
$rcs
=
$rcs_sorted
if
(
$self
->
strand
==
-
1
);
...
...
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