broadinstitute / pilon

Pilon is an automated genome assembly improvement and variant detection tool
GNU General Public License v2.0
340 stars 60 forks source link

BED Co-ordinates Off-by-1 bug #38

Closed nathanhaigh closed 7 years ago

nathanhaigh commented 7 years ago

I noticed while looking at the BED file, in IGV, generated by Pilon that the left co-ordinate is off-by-1, at least for SNPs/indel features. Here are a few examples:

Deletion: image

Insertion: image

SNP: image

nathanhaigh commented 7 years ago

BED co-ordinates are 0-based, half-open.

This blog post may help: http://genome.ucsc.edu/blog/the-ucsc-genome-browser-coordinate-counting-systems/