Skip to content

Commit

Permalink
rename strains.py to strain.py
Browse files Browse the repository at this point in the history
Change filename `strains.py` to `strain.py` to make file names consistent.
  • Loading branch information
CunliangGeng authored Dec 14, 2023
1 parent e6b758a commit 4a8755e
Show file tree
Hide file tree
Showing 23 changed files with 22 additions and 22 deletions.
2 changes: 1 addition & 1 deletion src/nplinker/genomics/antismash/antismash_loader.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
from Bio import SeqRecord
from nplinker.genomics import BGC
from nplinker.logconfig import LogConfig
from nplinker.strains import Strain
from nplinker.strain import Strain
from nplinker.utils import list_dirs
from nplinker.utils import list_files
from ..abc import BGCLoaderBase
Expand Down
2 changes: 1 addition & 1 deletion src/nplinker/genomics/bgc.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@


if TYPE_CHECKING:
from ..strains import Strain
from ..strain import Strain
from .gcf import GCF

logger = LogConfig.getLogger(__name__)
Expand Down
2 changes: 1 addition & 1 deletion src/nplinker/genomics/gcf.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@


if TYPE_CHECKING:
from nplinker.strains import Strain
from nplinker.strain import Strain
from .bgc import BGC

logger = LogConfig.getLogger(__name__)
Expand Down
2 changes: 1 addition & 1 deletion src/nplinker/genomics/mibig/mibig_loader.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import os.path
from nplinker.logconfig import LogConfig
from nplinker.strains import Strain
from nplinker.strain import Strain
from nplinker.utils import list_files
from ..abc import BGCLoaderBase
from ..bgc import BGC
Expand Down
2 changes: 1 addition & 1 deletion src/nplinker/loader.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,9 +24,9 @@
from nplinker.pairedomics.downloader import PODPDownloader
from nplinker.pairedomics.runbigscape import run_bigscape
from nplinker.pairedomics.strain_mappings_generator import podp_generate_strain_mappings
from nplinker.strain import Strain
from nplinker.strain_collection import StrainCollection
from nplinker.strain_loader import load_user_strains
from nplinker.strains import Strain


try:
Expand Down
2 changes: 1 addition & 1 deletion src/nplinker/metabolomics/load_gnps.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@
from nplinker.metabolomics import Spectrum
from nplinker.metabolomics.gnps import GNPSFormat
from nplinker.metabolomics.gnps import gnps_format_from_file_mapping
from nplinker.strain import Strain
from nplinker.strain_collection import StrainCollection
from nplinker.strains import Strain


logger = LogConfig.getLogger(__name__)
Expand Down
2 changes: 1 addition & 1 deletion src/nplinker/metabolomics/molecular_family.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
from __future__ import annotations
from typing import TYPE_CHECKING
from nplinker.strain import Strain
from nplinker.strain_collection import StrainCollection
from nplinker.strains import Strain


if TYPE_CHECKING:
Expand Down
2 changes: 1 addition & 1 deletion src/nplinker/metabolomics/spectrum.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
from nplinker.strain import Strain
from nplinker.strain_collection import StrainCollection
from nplinker.strains import Strain
from nplinker.utils import sqrt_normalise


Expand Down
2 changes: 1 addition & 1 deletion src/nplinker/nplinker.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@

if TYPE_CHECKING:
from collections.abc import Sequence
from .strains import Strain
from .strain import Strain

logger = LogConfig.getLogger(__name__)

Expand Down
2 changes: 1 addition & 1 deletion src/nplinker/pairedomics/strain_mappings_generator.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@
from nplinker.metabolomics.gnps import GNPSFileMappingLoader
from nplinker.schemas import GENOME_BGC_MAPPINGS_SCHEMA
from nplinker.schemas import validate_podp_json
from nplinker.strain import Strain
from nplinker.strain_collection import StrainCollection
from nplinker.strains import Strain
from .podp_antismash_downloader import GenomeStatus
from .podp_antismash_downloader import get_best_available_genome_id

Expand Down
2 changes: 1 addition & 1 deletion src/nplinker/scoring/linking/data_links.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,8 @@


if TYPE_CHECKING:
from nplinker.strain import Strain
from nplinker.strain_collection import StrainCollection
from nplinker.strains import Strain

logger = LogConfig.getLogger(__name__)

Expand Down
File renamed without changes.
2 changes: 1 addition & 1 deletion src/nplinker/strain_collection.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
from jsonschema import validate
from nplinker.schemas import STRAIN_MAPPINGS_SCHEMA
from .logconfig import LogConfig
from .strains import Strain
from .strain import Strain


logger = LogConfig.getLogger(__name__)
Expand Down
2 changes: 1 addition & 1 deletion src/nplinker/strain_loader.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
from jsonschema import validate
from nplinker.logconfig import LogConfig
from nplinker.schemas import USER_STRAINS_SCHEMA
from .strains import Strain
from .strain import Strain


logger = LogConfig.getLogger(__name__)
Expand Down
2 changes: 1 addition & 1 deletion tests/conftest.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@
from nplinker.globals import STRAIN_MAPPINGS_FILENAME
from nplinker.metabolomics import Spectrum
from nplinker.metabolomics.metabolomics import load_spectra
from nplinker.strain import Strain
from nplinker.strain_collection import StrainCollection
from nplinker.strains import Strain
from . import DATA_DIR
from . import GNPS_DATA_DIR

Expand Down
2 changes: 1 addition & 1 deletion tests/genomics/test_bgc.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
from nplinker.genomics import BGC
from nplinker.genomics import GCF
from nplinker.strains import Strain
from nplinker.strain import Strain


def test_default():
Expand Down
2 changes: 1 addition & 1 deletion tests/genomics/test_gcf.py
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
import pytest
from nplinker.genomics import BGC
from nplinker.genomics import GCF
from nplinker.strain import Strain
from nplinker.strain_collection import StrainCollection
from nplinker.strains import Strain


@pytest.fixture()
Expand Down
2 changes: 1 addition & 1 deletion tests/genomics/test_genomics.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,8 @@
from nplinker.genomics import map_bgc_to_gcf
from nplinker.genomics import map_strain_to_bgc
from nplinker.globals import GENOME_BGC_MAPPINGS_FILENAME
from nplinker.strain import Strain
from nplinker.strain_collection import StrainCollection
from nplinker.strains import Strain
from .. import DATA_DIR


Expand Down
2 changes: 1 addition & 1 deletion tests/pairedomics/test_strain_mappings_generator.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@
from nplinker.pairedomics import get_mappings_strain_id_bgc_id
from nplinker.pairedomics import get_mappings_strain_id_spectrum_id
from nplinker.pairedomics import podp_generate_strain_mappings
from nplinker.strain import Strain
from nplinker.strain_collection import StrainCollection
from nplinker.strains import Strain


def test_podp_generate_strain_mappings(monkeypatch, tmp_path):
Expand Down
2 changes: 1 addition & 1 deletion tests/scoring/conftest.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@
from nplinker.scoring import MetcalfScoring
from nplinker.scoring.linking import DataLinks
from nplinker.scoring.linking import LinkFinder
from nplinker.strain import Strain
from nplinker.strain_collection import StrainCollection
from nplinker.strains import Strain
from .. import DATA_DIR


Expand Down
2 changes: 1 addition & 1 deletion tests/test_strain.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
from nplinker.strains import Strain
from nplinker.strain import Strain


def test_default():
Expand Down
2 changes: 1 addition & 1 deletion tests/test_strain_collection.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import json
import pytest
from nplinker.strain import Strain
from nplinker.strain_collection import StrainCollection
from nplinker.strains import Strain


@pytest.fixture
Expand Down
2 changes: 1 addition & 1 deletion tests/test_strain_loader.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import json
import pytest
from nplinker.strain import Strain
from nplinker.strain_loader import load_user_strains
from nplinker.strains import Strain


@pytest.fixture
Expand Down

0 comments on commit 4a8755e

Please sign in to comment.