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
cbf8ba44
Commit
cbf8ba44
authored
17 years ago
by
Daniel Rios
Browse files
Options
Downloads
Patches
Plain Diff
added filtering by coverage
parent
b1cfdce9
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
modules/Bio/EnsEMBL/StrainSlice.pm
+9
-2
9 additions, 2 deletions
modules/Bio/EnsEMBL/StrainSlice.pm
with
9 additions
and
2 deletions
modules/Bio/EnsEMBL/StrainSlice.pm
+
9
−
2
View file @
cbf8ba44
...
...
@@ -294,9 +294,10 @@ sub _add_coverage_information{
=head2 get_all_AlleleFeatures_Slice
Arg
s
: none
Arg
[1]
: int $with_coverage (optional)
Example : my $af = $strainSlice->get_all_AlleleFeatures_Slice()
Description : Gets all AlleleFeatures between the StrainSlice object and the Slice is defined
Description : Gets all AlleleFeatures between the StrainSlice object and the Slice is defined.
If argument $with_coverage set to 1, returns only AF if they have coverage information
ReturnType : listref of Bio::EnsEMBL::Variation::AlleleFeature
Exceptions : none
Caller : general
...
...
@@ -305,6 +306,12 @@ sub _add_coverage_information{
sub
get_all_AlleleFeatures_Slice
{
my
$self
=
shift
;
my
$with_coverage
=
shift
;
if
(
$with_coverage
==
1
){
my
$new_allele_features
=
$self
->
_filter_af_by_coverage
(
$self
->
{'
alleleFeatures
'});
return
$new_allele_features
;
}
return
$self
->
{'
alleleFeatures
'};
}
...
...
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