Commit ec6d38c4 authored by Mathieu Giraud's avatar Mathieu Giraud

tests: fuse should keep clone metadata from non-topmost clones

See #3585.
parent dac04142
......@@ -21,11 +21,13 @@
"clones" : [
{
"id" : "id-1",
"valA" : "12",
"valC" : "12",
"name": "name-1",
"sequence" : "seq-1",
"reads" : [ 800 ] ,
"top" : 1,
"reads" : [ 100 ] ,
"top" : 2,
"germline" : "IGH"
},
{
......@@ -33,8 +35,8 @@
"name" : "name-2",
"sequence": "seq-2",
"reads" : [ 100 ] ,
"top" : 2,
"reads" : [ 800 ] ,
"top" : 1,
"germline" : "IGH"
}
] ,
......
......@@ -21,6 +21,8 @@
"clones" : [
{
"id" : "id-1",
"valB" : "13",
"valC" : "13",
"name": "name-1",
"sequence" : "seq-1",
......
!LAUNCH: python ../../fuse.py $FUSE_OPTIONS ../../../algo/tests/data/results-two-clones-1-2.vidjil ../../../algo/tests/data/results-two-clones-1-2.vidjil ../../../algo/tests/data/results-two-clones-1-2.vidjil ; cat fused.vidjil
!LAUNCH: python ../../fuse.py $FUSE_OPTIONS ../../../algo/tests/data/no_clones.vidjil ../../../algo/tests/data/results-two-clones-1-2.vidjil ../../../algo/tests/data/results-two-clones-1-3.vidjil ; cat fused.vidjil
$ Fuse the three files
2: ListWindows: .1000, 1000, 1000.
2: ListWindows: .0, 1000, 500.
$ Check the producer string in output file
1: "producer": "vidjil fuse"
$ Clone 'id-1' metadata is copied from both files
1: "valA": "12"
1: "valB": "13"
$ A common metadata is copied from where the clone is the most abundant
1: "valC": "13"
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