From c6b68e264e64db3be80c16e9978ac1408f082ee2 Mon Sep 17 00:00:00 2001 From: js2264 Date: Thu, 24 Oct 2024 09:01:33 +0200 Subject: [PATCH] fix: renamed momicsquery to query --- src/momics/__init__.py | 4 ++-- src/momics/cli/query.py | 2 +- src/momics/{momicsquery.py => query.py} | 0 src/momics/streamer.py | 2 +- tests/test_cli.py | 4 ++-- tests/test_cloud.py | 2 +- tests/test_momics.py | 2 +- tests/test_momics_vs_pybigwig.py | 2 +- tests/test_momicsquery.py | 2 +- 9 files changed, 10 insertions(+), 10 deletions(-) rename src/momics/{momicsquery.py => query.py} (100%) diff --git a/src/momics/__init__.py b/src/momics/__init__.py index 2099262..d5dd118 100644 --- a/src/momics/__init__.py +++ b/src/momics/__init__.py @@ -10,7 +10,7 @@ """ from . import momics -from . import momicsquery +from . import query from . import streamer from . import config from . import utils @@ -18,7 +18,7 @@ __all__ = [ "momics", - "momicsquery", + "query", "streamer", "config", "utils", diff --git a/src/momics/cli/query.py b/src/momics/cli/query.py index 34d9a71..a6f5a72 100644 --- a/src/momics/cli/query.py +++ b/src/momics/cli/query.py @@ -3,7 +3,7 @@ from Bio import SeqIO import pyranges as pr -from momics.momicsquery import MomicsQuery +from momics.query import MomicsQuery from .. import momics from .. import utils diff --git a/src/momics/momicsquery.py b/src/momics/query.py similarity index 100% rename from src/momics/momicsquery.py rename to src/momics/query.py diff --git a/src/momics/streamer.py b/src/momics/streamer.py index caf4c0b..e4b1305 100644 --- a/src/momics/streamer.py +++ b/src/momics/streamer.py @@ -6,7 +6,7 @@ from .momics import Momics from .logging import logger -from .momicsquery import MomicsQuery +from .query import MomicsQuery class MomicsStreamer: diff --git a/tests/test_cli.py b/tests/test_cli.py index 7a42906..57db602 100644 --- a/tests/test_cli.py +++ b/tests/test_cli.py @@ -9,7 +9,7 @@ from momics.cli import cli from momics import utils from momics.momics import Momics -from momics import momicsquery +from momics import query @pytest.fixture @@ -138,7 +138,7 @@ def test_cp_track(runner, path, bw3): assert os.path.exists("out.bw") mom = Momics(path) bed = pr.from_dict({"Chromosome": ["I", "I"], "Start": [990, 1990], "End": [1010, 2010]}) - q = momicsquery.MomicsQuery(mom, bed).query_tracks() + q = query.MomicsQuery(mom, bed).query_tracks() # pybigwig version res = {"bw2": collections.defaultdict(list)} diff --git a/tests/test_cloud.py b/tests/test_cloud.py index 841a34d..7fa2296 100644 --- a/tests/test_cloud.py +++ b/tests/test_cloud.py @@ -9,7 +9,7 @@ from momics import momics from momics import config, logging, utils -from momics.momicsquery import MomicsQuery +from momics.query import MomicsQuery dotenv.load_dotenv() diff --git a/tests/test_momics.py b/tests/test_momics.py index a8970cb..0efc449 100644 --- a/tests/test_momics.py +++ b/tests/test_momics.py @@ -8,7 +8,7 @@ from momics import momics from momics import utils -from momics.momicsquery import MomicsQuery +from momics.query import MomicsQuery @pytest.mark.order(1) diff --git a/tests/test_momics_vs_pybigwig.py b/tests/test_momics_vs_pybigwig.py index 3032dcc..3a4afa5 100644 --- a/tests/test_momics_vs_pybigwig.py +++ b/tests/test_momics_vs_pybigwig.py @@ -4,7 +4,7 @@ import pyBigWig from momics import momics -from momics.momicsquery import MomicsQuery +from momics.query import MomicsQuery @pytest.mark.order(1) diff --git a/tests/test_momicsquery.py b/tests/test_momicsquery.py index 3c4a83e..2bae879 100644 --- a/tests/test_momicsquery.py +++ b/tests/test_momicsquery.py @@ -11,7 +11,7 @@ import pytest from momics.momics import Momics -from momics.momicsquery import MomicsQuery +from momics.query import MomicsQuery multiprocessing.set_start_method("spawn", force=True)