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
ecd4e76f
Commit
ecd4e76f
authored
4 years ago
by
Gervaise Henry
Browse files
Options
Downloads
Patches
Plain Diff
Add new py tests for integration and override
parent
57529bc9
Branches
Branches containing commit
Tags
Tags containing commit
2 merge requests
!68
Develop
,
!67
Resolve "Change Single Read to Single End for submitted endness"
Pipeline
#9134
canceled with stages
in 22 minutes and 26 seconds
Changes
3
Pipelines
2
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
.gitlab-ci.yml
+8
-1
8 additions, 1 deletion
.gitlab-ci.yml
CHANGELOG.md
+1
-0
1 addition, 0 deletions
CHANGELOG.md
workflow/tests/test_completion.py
+42
-0
42 additions, 0 deletions
workflow/tests/test_completion.py
with
51 additions
and
1 deletion
.gitlab-ci.yml
+
8
−
1
View file @
ecd4e76f
...
...
@@ -666,6 +666,7 @@ integration_se:
-
ulimit -a
-
nextflow -q run ./workflow/rna-seq.nf --deriva ./test_data/auth/credential.json --bdbag ./test_data/auth/cookies.txt --repRID 16-1ZX4 --source dev --upload
true
-with-dag dag.png --dev
false
--ci
true
-with-report ./SE_report.html
-
find . -type f -name "multiqc_data.json" -exec cp {} ./SE_multiqc_data.json \;
-
pytest -m completionIntegration_se
artifacts
:
name
:
"
$CI_JOB_NAME"
when
:
always
...
...
@@ -690,6 +691,7 @@ integration_pe:
-
ulimit -a
-
nextflow -q run ./workflow/rna-seq.nf --deriva ./test_data/auth/credential.json --bdbag ./test_data/auth/cookies.txt --repRID Q-Y5JA --source dev --upload
true
-with-dag dag.png --dev
false
--ci
true
-with-report ./PE_report.html
-
find . -type f -name "multiqc_data.json" -exec cp {} ./PE_multiqc_data.json \;
-
pytest -m completionIntegration_pe
artifacts
:
name
:
"
$CI_JOB_NAME"
when
:
always
...
...
@@ -791,6 +793,7 @@ override_inputBag:
-
ulimit -a
-
nextflow -q run ./workflow/rna-seq.nf --deriva ./test_data/auth/credential.json --bdbag ./test_data/auth/cookies.txt --repRID Q-Y5F6 --source dev --inputBagForce ./test_data/bag/Q-Y5F6_inputBag_xxxxxxxx.zip --upload
false
--dev
false
--ci
true
-with-report ./inputBagOverride_report.html
-
find . -type f -name "multiqc_data.json" -exec cp {} ./inputBagOverride_PE_multiqc_data.json \;
-
pytest -m completionOverride_inputBag
artifacts
:
name
:
"
$CI_JOB_NAME"
when
:
always
...
...
@@ -813,6 +816,7 @@ override_fastq:
-
ulimit -a
-
nextflow -q run ./workflow/rna-seq.nf --deriva ./test_data/auth/credential.json --bdbag ./test_data/auth/cookies.txt --repRID Q-Y5F6 --source dev --fastqsForce './test_data/fastq/small/Q-Y5F6_1M.R{1,2}.fastq.gz' --upload
false
--dev
false
--ci
true
-with-report ./fastqOverride_report.html
-
find . -type f -name "multiqc_data.json" -exec cp {} ./fastqOverride_PE_multiqc_data.json \;
-
pytest -m completionOverride_fastq
artifacts
:
name
:
"
$CI_JOB_NAME"
when
:
always
...
...
@@ -835,6 +839,7 @@ override_species:
-
ulimit -a
-
nextflow -q run ./workflow/rna-seq.nf --deriva ./test_data/auth/credential.json --bdbag ./test_data/auth/cookies.txt --repRID Q-Y5ER --source dev --speciesForce 'Homo sapiens' --upload
false
--dev
false
--ci
true
-with-report ./speciesOverride_report.html
-
find . -type f -name "multiqc_data.json" -exec cp {} ./speciesOverride_PE_multiqc_data.json \;
-
pytest -m completionOverride_spike
artifacts
:
name
:
"
$CI_JOB_NAME"
when
:
always
...
...
@@ -857,6 +862,7 @@ override_stranded:
-
ulimit -a
-
nextflow -q run ./workflow/rna-seq.nf --deriva ./test_data/auth/credential.json --bdbag ./test_data/auth/cookies.txt --repRID Q-Y5ER --source dev --strandedForce unstranded --upload
false
--dev
false
--ci
true
-with-report ./strandedOverride_report.html
-
find . -type f -name "multiqc_data.json" -exec cp {} ./strandedOverride_PE_multiqc_data.json \;
-
pytest -m completionOverride_stranded
artifacts
:
name
:
"
$CI_JOB_NAME"
when
:
always
...
...
@@ -868,7 +874,7 @@ override_stranded:
when
:
-
always
override_s
t
pike
:
override_spike
:
stage
:
integration
only
:
[
merge_requests
]
except
:
...
...
@@ -879,6 +885,7 @@ override_stpike:
-
ulimit -a
-
nextflow -q run ./workflow/rna-seq.nf --deriva ./test_data/auth/credential.json --bdbag ./test_data/auth/cookies.txt --repRID Q-Y5ER --source dev --spikeForce t --upload
false
--dev
false
--ci
true
-with-report ./spikeOverride_report.html
-
find . -type f -name "multiqc_data.json" -exec cp {} ./spikeOverride_PE_multiqc_data.json \;
-
pytest -m completionOverride_spike
artifacts
:
name
:
"
$CI_JOB_NAME"
when
:
always
...
...
This diff is collapsed.
Click to expand it.
CHANGELOG.md
+
1
−
0
View file @
ecd4e76f
...
...
@@ -23,6 +23,7 @@
*
Data-hub column title change from "Has_Strand_Specific_Information" to "Strandedness" (#115)
*
Merge data error pre-inference execution run upload/finalize to 1 process
*
Change uploadOutputBag logic to change reuse hatrac file if alread exists (re-uses Output_Bag entry by reassigning Execution_Run RID) (#112)
*
Add new CI py tests for override and integration
*Known Bugs*
*
Override params (inputBag, fastq, species) aren't checked for integrity
...
...
This diff is collapsed.
Click to expand it.
workflow/tests/test_completion.py
0 → 100644
+
42
−
0
View file @
ecd4e76f
#!/usr/bin/env python3
import
pytest
import
pandas
as
pd
from
io
import
StringIO
import
os
import
json
test_output_path
=
os
.
path
.
dirname
(
os
.
path
.
abspath
(
__file__
))
+
\
'
/../../
'
@pytest.mark.consistencySE
def
test_consistencySE
():
assert
os
.
path
.
exists
(
os
.
path
.
join
(
test_output_path
,
'
SE_multiqc_data.json
'
))
with
open
(
os
.
path
.
join
(
test_output_path
,
'
SE_multiqc_data.json
'
))
as
f
:
assigned_reads_json
=
json
.
load
(
f
)
assigned_reads
=
assigned_reads_json
[
'
report_general_stats_data
'
][
4
][
'
16-1ZX4_sorted
'
][
'
Assigned
'
]
baseline
=
7746121
baseline_hi
=
baseline
+
(
baseline
*
0.05
)
baseline_lo
=
baseline
-
(
baseline
*
0.05
)
assert
(
assigned_reads
>=
baseline_lo
)
assert
(
assigned_reads
<=
baseline_hi
)
@pytest.mark.consistencyPE
def
test_consistencyPE
():
assert
os
.
path
.
exists
(
os
.
path
.
join
(
test_output_path
,
'
PE_multiqc_data.json
'
))
with
open
(
os
.
path
.
join
(
test_output_path
,
'
PE_multiqc_data.json
'
))
as
f
:
assigned_reads_json
=
json
.
load
(
f
)
assigned_reads
=
assigned_reads_json
[
'
report_general_stats_data
'
][
4
][
'
Q-Y5JA_sorted
'
][
'
Assigned
'
]
baseline
=
2596053
baseline_hi
=
baseline
+
(
baseline
*
0.05
)
baseline_lo
=
baseline
-
(
baseline
*
0.05
)
assert
(
assigned_reads
>=
baseline_lo
)
assert
(
assigned_reads
<=
baseline_hi
)
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