Commit 163f7b53 authored by flothoni's avatar flothoni Committed by Mathieu Giraud

cluster; cluster loaded from analysis in disorder don't create error

Link to #4034
parent 9952f1c2
Pipeline #150301 failed with stages
in 8 seconds
......@@ -103,6 +103,33 @@ class TestCluster < BrowserTest
end
def test_06_cluster_not_ordered
# cluster of clone in an inverted order (considering size)
# clone 1 (biggest) should be before the second; even if clone 2 is before in cluster from analysis file
assert ($b.div(:id => 'cluster5').exists? ), '>> cluster5 exist'
assert (not $b.clone_cluster('5').present?), '>> cluster5 is not display'
assert ( $b.clone_in_list('5').present? ), ">> clone 5 is present"
assert ( not $b.clone_in_list('6').present? ), ">> clone 6 is not present as it is clutered into clone 5"
$b.clone_in_list('5').click
assert ( not $b.clone_in_segmenter('6').present? ), ">> The second clone of the cluster is NOT present in segmenter"
$b.a(:id => 'list_split_all').click
$b.update_icon.wait_while(&:present?)
assert ( $b.clone_in_segmenter('5').present? ), ">> The first clone of the cluster is present in segmenter"
assert ( $b.clone_in_segmenter('6').present? ), ">> The second clone of the cluster is present in segmenter"
# Add test on order of clones in list
cluster = $b.clone_cluster('5')
assert ( cluster.div(index: 0).id == "_6" ), ">> first clone in cluster is the 6th"
assert ( cluster.div(index: 1).id == "_5" ), ">> second clone in cluster is the 5th"
end
# Not really a test
def test_zz_close
......
......@@ -168,6 +168,26 @@ do a correct gathering.
"reads": [ 1021, 0 ],
"germline": "TRG",
"top": 5
},
{
"id": "clone_cluster1",
"name": "clone_cluster1",
"sequence": "GATACAaaaaaccccc",
"reads": [ 1021, 0 ],
"germline": "TRG",
"top": 6
},
{
"id": "clone_cluster2",
"name": "clone_cluster2",
"sequence": "AAAAATTTTTAAAAATTTTTAAAAATTTTT",
"reads": [ 521, 42 ],
"germline": "TRG",
"top": 7,
"seg":
{
"cdr3": {"start": 10, "stop": 20}
}
}
]
}
......@@ -233,7 +253,8 @@ some clones, and added external data (`data`).
],
"clusters": [
[ "clone2", "clone3"],
[ "clone3", "clone2"],
[ "clone_cluster2", "clone_cluster1"],
[ "clone-5", "clone-10", "clone-179" ]
],
......
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