|
@@ -83,7 +83,7 @@ const clusterSam = (input_sam, threshold, minReads) => {
|
|
|
});
|
|
});
|
|
|
let byClusters = {};
|
|
let byClusters = {};
|
|
|
Object.keys(byReads).map(rname => {
|
|
Object.keys(byReads).map(rname => {
|
|
|
- const tmpClusterName = byReads[rname].sort().join('+++');
|
|
|
|
|
|
|
+ const tmpClusterName = byReads[rname].sort().join('<--->');
|
|
|
byClusters[tmpClusterName] = Array.isArray(byClusters[tmpClusterName]) ? [...new Set([...byClusters[tmpClusterName], rname])] : [rname];
|
|
byClusters[tmpClusterName] = Array.isArray(byClusters[tmpClusterName]) ? [...new Set([...byClusters[tmpClusterName], rname])] : [rname];
|
|
|
});
|
|
});
|
|
|
Object.keys(byClusters).map(e => byClusters[e].length < minReads ? delete byClusters[e] : null);
|
|
Object.keys(byClusters).map(e => byClusters[e].length < minReads ? delete byClusters[e] : null);
|