Internal helper function to calculate distance between neighboring regions.

neighbordt(querydt)

Arguments

querydt

A data table with regions grouped according to chromosome.

Value

A numeric vector with the distances in bp