Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
mrvollger committed Jul 29, 2024

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature.
1 parent 57dca16 commit a91387f
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion SafFire.js
Original file line number Diff line number Diff line change
@@ -438,6 +438,7 @@ function miropeats_d3(data) {
// draw bed9
for (var key in cur_bed9_data) {
var tmp_bed9_data = cur_bed9_data[key];
var few_enough = tmp_bed9_data.length < 100;
zoom_bed_9 = tmp_bed9_data.filter(function (d) {
in_target = (d.ct == t_name) && (d.en >= st) && (d.st <= en);
in_query = (
@@ -446,7 +447,7 @@ function miropeats_d3(data) {
d.st - Math.abs(c2_offset[d.ct]) - 2e6 <= en
);
large_enough = (d.en - d.st) > ((en - st) / 3000);
return (in_target || in_query) && large_enough;
return (in_target || in_query) && (large_enough || few_enough);
});
if (zoom_bed_9.length < MAX_BED_ITEMS) {
zoom_bed_9 = zoom_bed_9.slice(0, MAX_BED_ITEMS);

0 comments on commit a91387f

Please sign in to comment.