I want to calculate the distance between the genes. I got the gene details from Ensemble Biomart. So, I have
Gene_Name Start(bp) End(bp)
I calculated the length of the gene just by subtracting start-end (bp). But I tried getting distance between the genes as following for
Gene1 S1 E1
Gene2 S2 E2
Gene3 S2 E2
Distance between Gene1 and Gene2 = S2-E1 and
Distance between Gene2 and Gene3 = S3-E2 and so on ....
Is it a incorrect way of finding the distance because the distance values I get are quite large to what has been reported.