Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
C
chipseq_analysis
Manage
Activity
Members
Labels
Plan
Issues
19
Issue boards
Milestones
Iterations
Requirements
Code
Merge requests
3
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Container Registry
Operate
Environments
Monitor
Incidents
Service Desk
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
BICF
Astrocyte
chipseq_analysis
Commits
eeb76613
There was a problem fetching the pipeline stages.
Commit
eeb76613
authored
7 years ago
by
Venkat Malladi
Browse files
Options
Downloads
Patches
Plain Diff
Add in tests for single end sequencing.
parent
b8588c1a
Branches
Branches containing commit
Tags
Tags containing commit
1 merge request
!6
Resolve "Bam Stats and Filter"
Pipeline
#1059
failed with stage
in 1 hour, 33 minutes, and 49 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
workflow/tests/test_map_qc.py
+27
-0
27 additions, 0 deletions
workflow/tests/test_map_qc.py
with
27 additions
and
0 deletions
workflow/tests/test_map_qc.py
0 → 100644
+
27
−
0
View file @
eeb76613
#!/usr/bin/env python3
import
pytest
import
os
import
pandas
as
pd
test_output_path
=
os
.
path
.
dirname
(
os
.
path
.
abspath
(
__file__
))
+
\
'
/../output/filterReads/
'
def
test_map_qc_singleend
():
assert
os
.
path
.
exists
(
os
.
path
.
join
(
test_output_path
,
'
ENCFF646LXU.filt.nodup.bam
'
))
assert
os
.
path
.
exists
(
os
.
path
.
join
(
test_output_path
,
'
ENCFF646LXU.filt.nodup.bam.bai
'
))
filtered_reads_report
=
test_output_path
+
'
ENCFF646LXU.filt.nodup.flagstat.qc
'
samtools_report
=
open
(
filtered_reads_report
).
readlines
()
assert
'
64962570 + 0 in total
'
in
samtools_report
[
0
]
assert
'
64962570 + 0 mapped (100% : N/A)
'
in
samtools_report
[
4
]
library_complexity
=
test_output_path
+
'
ENCFF646LXU.filt.nodup.pbc.qc
'
df_library_complexity
=
pd
.
read_csv
(
library_complexity
,
sep
=
'
\t
'
)
assert
df_library_complexity
[
"
NRF
"
].
iloc
[
0
]
==
0.926192
assert
df_library_complexity
[
"
PBC1
"
].
iloc
[
0
]
==
0.926775
assert
df_library_complexity
[
"
PBC2
"
].
iloc
[
0
]
==
13.706885
def
test_map_qc_pairedend
():
# Do the same thing for paired end data
pass
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