Skip to content

Commit

Permalink
code review
Browse files Browse the repository at this point in the history
  • Loading branch information
danvk committed Nov 12, 2015
1 parent d8562f7 commit 830f401
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 2 deletions.
3 changes: 1 addition & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,7 @@
"genomics",
"sequencing",
"reads",
"interactive",
"biojs"
"interactive"
],
"main": "dist/main/pileup.js",
"browser": "dist/main/pileup.js",
Expand Down
2 changes: 2 additions & 0 deletions src/main/PileupTrack.js
Original file line number Diff line number Diff line change
Expand Up @@ -89,6 +89,8 @@ function renderPileup(ctx: DataCanvasRenderingContext2D,
var left = scale(pos + 1),
right = scale(pos + refLength + 1),
bottom = top + READ_HEIGHT,
// Arrowheads become a distraction as you zoom out and the reads get
// shorter. They should never be more than 1/6 the read length.
arrowSize = Math.min(READ_STRAND_ARROW_WIDTH, (right - left) / 6);

ctx.beginPath();
Expand Down
1 change: 1 addition & 0 deletions src/test/PileupCache-test.js
Original file line number Diff line number Diff line change
Expand Up @@ -288,6 +288,7 @@ describe('PileupCache', function() {
});

it('should compute statistics on a BAM file', function() {
this.timeout(5000);
var bam = new Bam(
new RemoteFile('/test-data/synth4.tumor.1.4930000-4950000.bam'),
new RemoteFile('/test-data/synth4.tumor.1.4930000-4950000.bam.bai'));
Expand Down

0 comments on commit 830f401

Please sign in to comment.