Skip to content

Commit

Permalink
formatted
Browse files Browse the repository at this point in the history
  • Loading branch information
hrshdhgd committed Sep 25, 2024
1 parent 11c6e17 commit d17fc09
Show file tree
Hide file tree
Showing 16 changed files with 16 additions and 1 deletion.
1 change: 1 addition & 0 deletions kg_microbe/transform_utils/bacdive/bacdive.py
Original file line number Diff line number Diff line change
Expand Up @@ -190,6 +190,7 @@


class BacDiveTransform(Transform):

"""Template for how the transform class would be designed."""

def __init__(
Expand Down
1 change: 1 addition & 0 deletions kg_microbe/transform_utils/bactotraits/bactotraits.py
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,7 @@


class BactoTraitsTransform(Transform):

"""
BactoTraits transform.
Expand Down
1 change: 1 addition & 0 deletions kg_microbe/transform_utils/ctd/ctd.py
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,7 @@


class CTDTransform(Transform):

"""A class used to represent a transformation process for UniProt data."""

def __init__(self, input_dir: Optional[Path] = None, output_dir: Optional[Path] = None):
Expand Down
1 change: 1 addition & 0 deletions kg_microbe/transform_utils/disbiome/disbiome.py
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@


class DisbiomeTransform(Transform):

"""A class used to represent a transformation process for Disbiome data."""

def __init__(self, input_dir: Optional[Path] = None, output_dir: Optional[Path] = None):
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@


class YourTransform(Transform):

"""Template for how the transform class would be designed."""

def __init__(self, input_dir: Optional[Path] = None, output_dir: Optional[Path] = None):
Expand Down
1 change: 1 addition & 0 deletions kg_microbe/transform_utils/madin_etal/madin_etal.py
Original file line number Diff line number Diff line change
Expand Up @@ -70,6 +70,7 @@


class MadinEtAlTransform(Transform):

"""
Ingest Madin et al dataset (NCBI/GTDB).
Expand Down
1 change: 1 addition & 0 deletions kg_microbe/transform_utils/mediadive/mediadive.py
Original file line number Diff line number Diff line change
Expand Up @@ -111,6 +111,7 @@


class MediaDiveTransform(Transform):

"""Template for how the transform class would be designed."""

def __init__(self, input_dir: Optional[Path] = None, output_dir: Optional[Path] = None):
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -80,6 +80,7 @@


class OntologiesTransform(Transform):

"""OntologyTransform parses an Obograph JSON form of an Ontology into nodes nad edges."""

def __init__(self, input_dir: Optional[Path] = None, output_dir: Optional[Path] = None):
Expand Down
1 change: 1 addition & 0 deletions kg_microbe/transform_utils/rhea_mappings/rhea_mappings.py
Original file line number Diff line number Diff line change
Expand Up @@ -70,6 +70,7 @@


class RheaMappingsTransform(Transform):

"""Template for how the transform class would be designed."""

def __init__(
Expand Down
1 change: 1 addition & 0 deletions kg_microbe/transform_utils/transform.py
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@


class Transform:

"""Parent class for transforms, that sets up a lot of default file info."""

DATA_DIR = Path(__file__).parent / "data"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@


class UniprotFunctionalMicrobesTransform(Transform):

"""A class used to represent a transformation process for UniProt data."""

def __init__(self, input_dir: Optional[Path] = None, output_dir: Optional[Path] = None):
Expand Down
1 change: 1 addition & 0 deletions kg_microbe/transform_utils/uniprot_human/uniprot_human.py
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@


class UniprotHumanTransform(Transform):

"""A class used to represent a transformation process for UniProt data."""

def __init__(self, input_dir: Optional[Path] = None, output_dir: Optional[Path] = None):
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@


class UniprotTrEMBLTransform(Transform):

"""Uniprot TrEMBL transform."""

def __init__(
Expand Down
1 change: 1 addition & 0 deletions kg_microbe/transform_utils/wallen_etal/wallen_etal.py
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@


class WallenEtAlTransform(Transform):

"""A class used to represent a transformation process for PdMetagenomics data."""

def __init__(self, input_dir: Optional[Path] = None, output_dir: Optional[Path] = None):
Expand Down
2 changes: 1 addition & 1 deletion kg_microbe/utils/pandas_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,7 @@ def establish_transitive_relationship(
# list_of_dfs_to_append.append(transitive_relations_df)
# Create a dictionary to map objects to subjects
object_to_subject = dict(
zip(subject_intermediate_df["object"], subject_intermediate_df["subject"])
zip(subject_intermediate_df["object"], subject_intermediate_df["subject"], strict=False)
)

# Filter the DataFrame to include only rows where the SUBJECT_COLUMN matches any object in the mapping
Expand Down
1 change: 1 addition & 0 deletions tests/demo_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@


class TestVersion(unittest.TestCase):

"""Test version."""

def test_version_type(self):
Expand Down

0 comments on commit d17fc09

Please sign in to comment.