diff --git a/bento_beacon/utils/gohan_utils.py b/bento_beacon/utils/gohan_utils.py index c0980b5..3c0dcf6 100644 --- a/bento_beacon/utils/gohan_utils.py +++ b/bento_beacon/utils/gohan_utils.py @@ -53,10 +53,6 @@ def zero_to_one(start, end=None): return int(start) + 1 if end is None else (int(start) + 1, end) -def one_to_zero(start, end): - return (int(start) - 1, end) - - # ------------------------------------------------------- # gohan calls # ------------------------------------------------------- @@ -125,8 +121,7 @@ async def sequence_query_to_gohan(beacon_args, granularity, ids_only): async def range_query_to_gohan(beacon_args, granularity, ids_only): current_app.logger.debug("RANGE QUERY") gohan_args = beacon_to_gohan_generic_mapping(beacon_args) - gohan_args["lowerBound"] = zero_to_one(beacon_args["start"][0]) - gohan_args["upperBound"] = zero_to_one(beacon_args["end"][0]) + gohan_args["lowerBound"], gohan_args["upperBound"] = zero_to_one(beacon_args["start"][0], beacon_args["end"][0]) gohan_args["getSampleIdsOnly"] = ids_only return await generic_gohan_query(gohan_args, granularity, ids_only) diff --git a/pyproject.toml b/pyproject.toml index 8c62dea..19f0937 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,6 +1,6 @@ [tool.poetry] name = "bento_beacon" -version = "0.17.0" +version = "0.0.0" # version is managed outside of Poetry for Beacon description = "GA4GH Beacon v2 microservice for the Bento platform" authors = ["Gordon Krieger "] license = "LGPL-3.0-only"