INNER CODE UNIT · JavaScript

rx

hms-dbmi/scde · web/pathcl_canvas.js:245

		    var rx=Math.floor((mx-hc.hmleft())/hc.hmwidth(s.width)*data.matrix.dim[1]);

		    // update the line in the cluster panel
		    clusterPanel.evctx.beginPath();
		    clusterPanel.evctx.moveTo(mx,hc.cctop(clusterPanel.pathcldata))
		    clusterPanel.evctx.lineTo(mx,v.height-hc.margins.bottom)
		    clusterPanel.evctx.stroke();

		    if(mx>s.width/2) { 
			evctx.textAlign="end"; mx-=5; 
		    } else {
			evctx.textAlign="start"; mx+=5;
		    }
		    evctx.textBaseline="bottom";
		    evctx.fillText("cell: "+data.matrix.cols[rx],mx,my-3); 
		    evctx.textBaseline="top";
		    evctx.fillText("gene: "+data.matrix.rows[ry],mx,my+3); 
		    evctx.stroke();

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…