Skip to content
Snippets Groups Projects
Commit b8434976 authored by Gervaise Henry's avatar Gervaise Henry :cowboy:
Browse files

Change consistency test to be +/- 1%

parent bef168da
Branches
Tags 0.1.0
2 merge requests!58Develop,!57Prep of 1.0.0 release
Pipeline #8924 canceled with stages
in 36 seconds
......@@ -3,6 +3,7 @@
* Add link to reference builder script
**Background**
* Change consistency test to check if +/- 1% of standard
*Known Bugs*
* Override params (inputBag, fastq, species) aren't checked for integrity
......
......@@ -19,7 +19,12 @@ def test_consistencySE():
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']
assert assigned_reads == 7746121
baseline = 7746121
baseline_hi = baseline+(baseline*0.01)
baseline_lo = baseline-(baseline*0.01)
assert assigned_reads <= baseline_hi
assert assigned_reads >= baseline_lo
@pytest.mark.consistencyPE
......@@ -31,4 +36,8 @@ def test_consistencyPE():
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']
assert assigned_reads == 2596053
baseline = 2596053
baseline_hi = baseline+(baseline*0.01)
baseline_lo = baseline-(baseline*0.01)
assert assigned_reads <= baseline_hi
assert assigned_reads >= baseline_lo
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment