Commit cee6249a authored by Mathieu Giraud's avatar Mathieu Giraud

Merge branch 'hotfix-c/3291-invisible-clones' into 'dev'

Don't show invisible clones

Closes #3291

See merge request !211
parents 1a9b4017 4d40413d
Pipeline #28925 passed with stage
in 5 seconds
......@@ -1240,7 +1240,8 @@ ScatterPlot.prototype = {
if (otherSize > size) size = otherSize
}
if ((size == Clone.prototype.NOT_QUANTIFIABLE_SIZE) || (size < this.CLONE_MIN_SIZE))
if ((size == Clone.prototype.NOT_QUANTIFIABLE_SIZE) ||
(size > 0 && size < this.CLONE_MIN_SIZE))
size = this.CLONE_MIN_SIZE
this.nodes[cloneID].s = size
......
......@@ -302,7 +302,11 @@ class TestMultilocus < BrowserTest
assert ($b.clone_in_scatterplot('90').exists?)
end
def test_18_empty_clone_invisible
assert ( $b.execute_script("return m.clones[66].reads[0]") == 0), "Clone should have no read"
assert (not $b.clone_in_scatterplot('66').visible?), "Clone should not be visible"
end
def TODO_test_14_edit_tag
begin
......
......@@ -1183,7 +1183,7 @@
}
],
"reads": [
362
0
],
"id": "CTGTGCYGYGTTYYYYGGCYTYAYGYCTY"
},
......
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