kg_bacdive.transform_utils package
Subpackages
- kg_bacdive.transform_utils.bacdive package
- kg_bacdive.transform_utils.example_transform package
- kg_bacdive.transform_utils.mediadive package
- kg_bacdive.transform_utils.ontology package
- kg_bacdive.transform_utils.traits package
Submodules
kg_bacdive.transform_utils.constants module
Constants for transform_utilities.
kg_bacdive.transform_utils.transform module
Transform utility module.
- class kg_bacdive.transform_utils.transform.Transform(source_name, input_dir=None, output_dir=None, nlp=False)
Bases:
object
Parent class for transforms, that sets up a lot of default file info.
- DATA_DIR = PosixPath('/home/runner/work/kg-bacdive/kg-bacdive/kg_bacdive/transform_utils/data')
- DEFAULT_INPUT_DIR = PosixPath('/home/runner/work/kg-bacdive/kg-bacdive/kg_bacdive/transform_utils/data/raw')
- DEFAULT_OUTPUT_DIR = PosixPath('/home/runner/work/kg-bacdive/kg-bacdive/kg_bacdive/transform_utils/data/transformed')
- pass_through(nodes_file, edges_file)
Copy nodes and edges files to output directory.
- Parameters:
nodes_file (
str
) – nodes files to take from raw directory and put in transform directoryedges_file (
str
) – edges files to take from raw directory and put in transform directory
- Return type:
None
- run(data_file=None)
Run the transform.
- Parameters:
data_file (
Union
[Path
,None
,str
]) – Input data file, defaults to None
Module contents
Transform utilities module.