Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
RNA-seq
Manage
Activity
Members
Labels
Plan
Issues
12
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
GUDMAP_RBK
RNA-seq
Commits
a28ab789
Commit
a28ab789
authored
5 years ago
by
Jonathan Gesell
Browse files
Options
Downloads
Patches
Plain Diff
Added unit testing
parent
75c31810
Branches
Branches containing commit
Tags
Tags containing commit
2 merge requests
!37
v0.0.1
,
!17
Resolve "process_dedup"
Pipeline
#5844
failed with stages
in 38 minutes and 45 seconds
Changes
2
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
.gitlab-ci.yml
+6
-0
6 additions, 0 deletions
.gitlab-ci.yml
workflow/tests/test_dedupReads.py
+33
-0
33 additions, 0 deletions
workflow/tests/test_dedupReads.py
with
39 additions
and
0 deletions
.gitlab-ci.yml
+
6
−
0
View file @
a28ab789
...
...
@@ -55,6 +55,12 @@ alignReads:
-
singularity run 'docker://bicf/gudmaprbkaligner:2.0.0' samtools index -@ `nproc` -b 16-1ZX4.sorted.bam 16-1ZX4.sorted.bai
-
pytest -m alignData
dedupReads
:
stage
:
unit
script
:
-
singularity run 'docker://bicf/picard2.21.7:2.0.0' java -jar /picard/build/libs/picard.jar MarkDuplicates I=${sortedBam} O=${repRID}.deduped.bam M=${repRID}.deduped.Metrics.txt REMOVE_DUPLICATES=true
-
pytest -m dedupData
integration_se
:
stage
:
integration
script
:
...
...
This diff is collapsed.
Click to expand it.
workflow/tests/test_dedupReads.py
0 → 100644
+
33
−
0
View file @
a28ab789
#!/usr/bin/env python3
import
pytest
import
pandas
as
pd
import
os
import
utils
data_output_path
=
os
.
path
.
dirname
(
os
.
path
.
abspath
(
__file__
))
+
\
'
/../../
'
logs_output_path
=
os
.
path
.
dirname
(
os
.
path
.
abspath
(
__file__
))
+
\
'
/../../
'
@pytest.mark.dedupData
def
test_dedupData_se
():
assert
os
.
path
.
exists
(
os
.
path
.
join
(
data_output_path
,
'
16-1ZX4.deduped.bm
'
))
assert
os
.
path
.
exists
(
os
.
path
.
join
(
data_output_path
,
'
16-1ZX4.deduped.Metrics.txt
'
))
@pytest.mark.dedupData
def
test_dedupData_pe
():
assert
os
.
path
.
exists
(
os
.
path
.
join
(
data_output_path
,
'
Q-Y5JA.deduped.bm
'
))
assert
os
.
path
.
exists
(
os
.
path
.
join
(
data_output_path
,
'
Q-Y5JA.deduped.Metrics.txt
'
))
@pytest.mark.dedupLogs
def
test_dedupLogs_se
():
assert
os
.
path
.
exists
(
os
.
path
.
join
(
logs_output_path
,
'
16-1ZX4.dedup.err
'
))
assert
os
.
path
.
exists
(
os
.
path
.
join
(
logs_output_path
,
'
16-1ZX4.dedup.out
'
))
@pytest.mark.dedupLogs
def
test_dedupLogs_pe
():
assert
os
.
path
.
exists
(
os
.
path
.
join
(
logs_output_path
,
'
Q-Y5JA.dedup.err
'
))
assert
os
.
path
.
exists
(
os
.
path
.
join
(
logs_output_path
,
'
Q-Y5JA.dedup.out
'
))
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