Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
H
halfpipe
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Requirements
Code
Merge requests
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
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Till Wesselmann
halfpipe
Commits
d83935ad
Commit
d83935ad
authored
3 years ago
by
Till Wesselmann
Browse files
Options
Downloads
Patches
Plain Diff
Use coverage for assessing data quality
parent
055157fc
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
halfpipe/models.py
+9
-8
9 additions, 8 deletions
halfpipe/models.py
with
9 additions
and
8 deletions
halfpipe/models.py
+
9
−
8
View file @
d83935ad
...
...
@@ -277,13 +277,14 @@ class PreAlignmentQC(Step):
def
get_score
(
self
):
"""
Returns score consisting of read count and filtering percentage.
"""
#
We consider more that 200 mio reads to be perfect
#
Effective coverage
READ_COUNT_SCORING
=
(
(
200
,
1
),
(
100
,
0.9
),
(
50
,
0.8
),
(
10
,
0.6
),
(
0
,
0.5
),
(
5
,
1
),
(
4
,
0.9
),
(
3
,
0.8
),
(
2
,
0.7
),
(
0.5
,
0.5
),
(
0
,
0
),
)
if
self
.
fastp_report
:
...
...
@@ -293,9 +294,9 @@ class PreAlignmentQC(Step):
filter_rate
=
after
/
before
# Readcount scoring
bases
=
self
.
fastp_report
[
"
summary
"
][
"
after
_filtering
"
][
"
total_bases
"
]
bases
=
self
.
fastp_report
[
"
summary
"
][
"
before
_filtering
"
][
"
total_bases
"
]
estimated_coverage
=
(
bases
/
/
self
.
pipeline
.
get
().
assembly
.
organism
.
genome_size
bases
/
self
.
pipeline
.
get
().
assembly
.
organism
.
genome_size
)
for
v
,
r
in
READ_COUNT_SCORING
:
if
estimated_coverage
>=
v
:
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
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