Commit 300c92ce authored by Thonier Florian's avatar Thonier Florian Committed by Mikaël Salson

test clone & model; add some test on null value for normalized_reads field

Link to #3943
parent 9debc3fb
Pipeline #87067 failed with stages
in 6 seconds
...@@ -119,7 +119,7 @@ var json_clone6 = { ...@@ -119,7 +119,7 @@ var json_clone6 = {
"id" : "id6", "id" : "id6",
"germline" : "TRG", "germline" : "TRG",
"reads" : [10,10,0,30], "reads" : [10,10,0,30],
"normalized_reads" : [20,20,0,30], "normalized_reads" : [20,20,0,null],
} }
QUnit.test("name, informations, getHtmlInfo", function(assert) { QUnit.test("name, informations, getHtmlInfo", function(assert) {
......
...@@ -423,6 +423,12 @@ QUnit.test("normalization", function(assert) { ...@@ -423,6 +423,12 @@ QUnit.test("normalization", function(assert) {
m.initClones() m.initClones()
assert.equal(m.have_external_normalization, false, "Model have_external_normalization is correctly resetted") assert.equal(m.have_external_normalization, false, "Model have_external_normalization is correctly resetted")
m.set_normalization(m.NORM_EXTERNAL)
assert.equal(m.normalize_reads(c6, 0, undefined), 20, "normalize_reads; get normalized value if present")
assert.equal(m.normalize_reads(c6, 0, false), 10, "normalize_reads; get raw value if specified" )
assert.equal(m.normalize_reads(c6, 2, undefined), 0, "normalize_reads; get value at 0 as computed by external normalization" )
assert.equal(m.normalize_reads(c6, 3, undefined), 30, "normalize_reads; get raw value if normalization equal null")
}) })
QUnit.test("findGermlineFromGene", function(assert) { QUnit.test("findGermlineFromGene", function(assert) {
......
Markdown is supported
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