INNER CODE UNIT · JavaScript

center

lh3/miniasm · tex/order_eval.js:67

	var center = Math.floor(parseInt(t[5]) + (parseInt(t[2]) - parseInt(t[1])) / 2);
	bed.push([t[3], t[4], r, center]);
	last_r = r; last_u = t[3];
}
end[last_r] = 1;
for (var j = bed.length - 1; j >= 0 && j >= bed.length - ws; --j)
	end[bed[j][2]] = 1;
f.close();

var paf = [];
f = new File(arguments[getopt.ind+1]);
while (f.readline(b) >= 0) {
	var t = b.toString().split("\t");
	if (parseInt(t[3]) - parseInt(t[2]) < min_span) continue; // a tiny hit
	if (paf.length && t[0] == paf[paf.length - 1][0]) continue; // dup
	var center;
	t[1] = parseInt(t[1]);
	t[2] = parseInt(t[2]); t[3] = parseInt(t[3]);

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…