Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
A
atacseq_analysis
Manage
Activity
Members
Labels
Plan
Issues
7
Issue boards
Milestones
Iterations
Wiki
Requirements
Code
Merge requests
0
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
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
atacseq_analysis
Commits
7568e408
Commit
7568e408
authored
5 years ago
by
Holly Ruess
Browse files
Options
Downloads
Patches
Plain Diff
fix align reads
parent
8ccd6c9e
Branches
Branches containing commit
Tags
Tags containing commit
1 merge request
!8
Resolve "Fix Align Reads"
Pipeline
#5282
failed with stages
in 3 hours, 47 minutes, and 7 seconds
Changes
2
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
workflow/main.nf
+1
-1
1 addition, 1 deletion
workflow/main.nf
workflow/tests/test_map_reads.py
+9
-9
9 additions, 9 deletions
workflow/tests/test_map_reads.py
with
10 additions
and
10 deletions
workflow/main.nf
+
1
−
1
View file @
7568e408
...
...
@@ -155,7 +155,7 @@ process alignReads {
output:
set sampleId, file('*.bam'), experimentId, replicate into mappedReads
file '*.
srt.
bam.flagstat.qc' into mappedReadsStats
file '*.bam.flagstat.qc' into mappedReadsStats
script:
...
...
This diff is collapsed.
Click to expand it.
workflow/tests/test_map_reads.py
+
9
−
9
View file @
7568e408
...
...
@@ -9,18 +9,18 @@ test_output_path = os.path.dirname(os.path.abspath(__file__)) + \
@pytest.mark.pairedend_mouse
def
test_align_reads_pairedend_mouse
():
assert
os
.
path
.
exists
(
os
.
path
.
join
(
test_output_path
,
'
ENCLB
678IDC/ENCLB678IDC
.bam
'
))
aligned_reads_report
=
test_output_path
+
'
ENCLB
678IDC/ENCLB678IDC
.flagstat.qc
'
assert
os
.
path
.
exists
(
os
.
path
.
join
(
test_output_path
,
'
ENCLB
122XDP/ENCLB122XDP
.bam
'
))
aligned_reads_report
=
test_output_path
+
'
ENCLB
122XDP/ENCLB122XDP
.flagstat.qc
'
samtools_report
=
open
(
aligned_reads_report
).
readlines
()
assert
'
7
26
60890
+ 0 in total
'
in
samtools_report
[
0
]
assert
'
7205392
5 + 0 mapped (9
9.16
% : N/A)
'
in
samtools_report
[
4
]
assert
'
71501126 + 0 properly paired (98.40
% : N/A)
'
in
samtools_report
[
8
]
assert
'
6
26
18664
+ 0 in total
'
in
samtools_report
[
0
]
assert
'
5985841
5 + 0 mapped (9
5.59
% : N/A)
'
in
samtools_report
[
4
]
assert
'
59858415 + 0 mapped (95.59
% : N/A)
'
in
samtools_report
[
8
]
@pytest.mark.singleend_human
def
test_align_reads_singleend_human
():
assert
os
.
path
.
exists
(
os
.
path
.
join
(
test_output_path
,
'
ENCLB
831RUI/ENCLB831RUI
.bam
'
))
aligned_reads_report
=
test_output_path
+
'
ENCLB
831RUI/ENCLB831RUI
.flagstat.qc
'
assert
os
.
path
.
exists
(
os
.
path
.
join
(
test_output_path
,
'
ENCLB
969KTX/ENCLB969KTX
.bam
'
))
aligned_reads_report
=
test_output_path
+
'
ENCLB
969KTX/ENCLB969KTX
.flagstat.qc
'
samtools_report
=
open
(
aligned_reads_report
).
readlines
()
assert
'
807950
25 + 0 in total
'
in
samtools_report
[
0
]
assert
'
80050072
+ 0 mapped (9
9.08
% : N/A)
'
in
samtools_report
[
4
]
assert
'
610462
25 + 0 in total
'
in
samtools_report
[
0
]
assert
'
59599010
+ 0 mapped (9
7.63
% : N/A)
'
in
samtools_report
[
4
]
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