Commit 657ac608 authored by Mathieu Giraud's avatar Mathieu Giraud

Merge branch 'feature-ts/4213-le-top-de-fuse-n-est-pas-bon' into 'dev'

Resolve "Le top de fuse n'est pas bon"

Closes #4213

See merge request !623
parents 10e44733 234e2520
Pipeline #128492 passed with stages
in 8 minutes and 53 seconds
......@@ -724,7 +724,7 @@ class ListWindows(VidjilJson):
others = OtherWindows(nb_points)
for clone in self:
if (int(clone.d["top"]) < limit or limit == 0) :
if (int(clone.d["top"]) <= limit or limit == 0) :
w.append(clone)
#else:
#others += clone
......
......@@ -5,3 +5,15 @@ $ Fuse the two examples (three samples, two identical)
$ IGH and TRG germlines
:"germline": {"TRG": \[250000, 250000, 300000\], "IGH": \[85662, 85662, 10124\]}
### Test the number of clones getted
!LAUNCH: python ../../fuse.py ../../../doc/analysis-example2.vidjil ; cat fused.vidjil
$ Default top threshold is set to 50, so each clone should be present
4:"sequence"
!LAUNCH: python ../../fuse.py --top 3 ../../../doc/analysis-example2.vidjil ; cat fused.vidjil
$ Change top to 3 (for 4 clones present)
3:"sequence"
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