-
Notifications
You must be signed in to change notification settings - Fork 3
Home
Harshad edited this page Dec 24, 2020
·
9 revisions
This repository is derived from kg-covid-19.
Please see here
- Java/JDK is required in order for the transform step to work properly. Installation instructions can be found here.
git clone https://github.com/Knowledge-Graph-Hub/kg-microbe
cd kg-microbe
pip install -r requirements.txt
python setup.py install
- Download
- Transform
- Merge
This step download all files from the urls declared in the download.yaml file.
script - python run.py download
File currently downloaded:
- Traits data from bacteria-arachaea-traits repository. Considering only 'condensed_traits_NCBI.csv' for now.
- Environments data from the same repository found as a conversion table titled 'environments.csv'.
- ROBOT jar and shell script files. ROBOT is used to convert the OWL format files of ontologies into OBOJSON format to extract nodes and edges from the ontologies. In this case, we also leverage the 'extract' feature of ROBOT to get subsets of ontologies. Documentation on ROBOT could be found here.
- CHEBI.owl is used as dictionary while running OGER to annotate 'carbon substrate' information from the traits data.
- NCBITaxon.owl is used as the ontology source to capture organismal classification information.
In this step, we create nodes and edges corresponding to the four downloaded files mentioned above (#1, #4 and #5).
scripts
- All together -
python run.py transform
OR
Running transforms individually:
- For traits data -
python run.py transform -s TraitsTransform
- For CHEBI.owl =
python run.py transform -s ChebiTransform
- For NCBITaxon.owl =
python run.py transform -s NCBITransform
In this step, all the above transforms are merged and a cumulative nodes and edges files are generated.
script - python run.py merge
The final merged data is available here