Commit 40bb88cc authored by Mikaël Salson's avatar Mikaël Salson Committed by Mathieu Giraud

germline/ncbi.py: 0-based coordinates

In the XML output the coordinates are 0-based: “returns the chromosomal
position of that gene in 0-based coordinates”
https://www.ncbi.nlm.nih.gov/books/NBK179288/

Are you serious guys?
parent 9f5fbc10
......@@ -105,6 +105,6 @@ def get_gene_positions(gene):
loc = get_last_LocationHistType(gene)
chr = loc['ChrAccVer']
start, stop = int(loc['ChrStart']), int(loc['ChrStop'])
start, stop = int(loc['ChrStart'])+1, int(loc['ChrStop'])+1
return chr, start, stop
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment