Skip to content

Commit

Permalink
Merge pull request #4 from Knowledge-Graph-Hub/build_graphs
Browse files Browse the repository at this point in the history
create all graphs for paper
  • Loading branch information
bsantan authored Sep 3, 2024
2 parents 8601376 + b9989d5 commit 8f38457
Showing 1 changed file with 10 additions and 24 deletions.
34 changes: 10 additions & 24 deletions Makefile
Original file line number Diff line number Diff line change
@@ -1,29 +1,15 @@

# download-transforms:

# wget "XXX" -O data/raw/merged-kg_nodes.tsv

# merge-kg-microbe-function:
# PWD=$(pwd)
# poetry run kg merge -y $(PWD)/merged_yamls/kg_base_merge.yaml
# poetry run kg duckdb_merge -base-n $(PWD)/data/merged/merged-kg_nodes.tsv -subset-n $(PWD)/data/transformed/nodes.tsv -base-e $(PWD)/data/merged/merged-kg_edges.tsv -subset-e $(PWD)/data/transformed/edges.tsv

# merge-kg-microbe-biomedical:
# PWD=$(pwd)
# poetry run kg merge -y $(PWD)/merged_yamls/kg_biomedical_merge.yaml

# merge-kg-microbe-biomedical-function:
# PWD=$(pwd)
# poetry run kg merge -y $(PWD)/merged_yamls/kg_biomedical_merge.yaml
# poetry run kg duckdb_merge -base-n $(PWD)/data/merged/merged-kg_nodes.tsv -subset-n $(PWD)/data/transformed/nodes.tsv -base-e $(PWD)/data/merged/merged-kg_edges.tsv -subset-e $(PWD)/data/transformed/edges.tsv

# !For testing
# merge-kg-microbe-biomedical-function:
# poetry run kg merge -y merge_yamls/merge.yaml -m duckdb -base-n '/Users/brooksantangelo/Documents/LozuponeLab/FRMS_2024/duckdb/merged-kg_kg-microbe-base/merged-kg_nodes.tsv' -base-e '/Users/brooksantangelo/Documents/LozuponeLab/FRMS_2024/duckdb/merged-kg_kg-microbe-base/merged-kg_edges.tsv' -subset-n '/Users/brooksantangelo/Documents/Repositories/kg-microbe/data/transformed/uniprot_genome_features/nodes.tsv' -subset-e '/Users/brooksantangelo/Documents/Repositories/kg-microbe/data/transformed/uniprot_genome_features/edges.tsv'

datamodel:
poetry run gen-python kg_microbe_merge/schema/merge_schema.yaml > kg_microbe_merge/schema/merge_datamodel.py

kg-microbe-core:
poetry run kg merge -m duckdb -s "bacdive, mediadive, madin_etal, rhea_mappings, bactotraits, chebi, ec, envo, go, ncbitaxon, upa" --merge-label $@

kg-microbe-function:
poetry run kg merge -m duckdb -n 1000000 -e 100000 -s "bacdive, mediadive, madin_etal, rhea_mappings, bactotraits, chebi, ec, envo, go, ncbitaxon, upa, uniprot_functional_microbes" --merge-label $@

kg-microbe-biomedical:
poetry run kg merge -m duckdb -n 1000000 -e 100000 -s "bacdive, mediadive, madin_etal, rhea_mappings, bactotraits, chebi, ec, envo, go, ncbitaxon, upa, hp, mondo, ctd, wallen_etal, uniprot_human" --merge-label $@

subset-merge:
poetry run kg merge -m duckdb -s "bacdive, bactotraits, chebi, ncbitaxon"
kg-microbe-biomedical-function-merge:
poetry run kg merge -m duckdb -n 1000000 -e 100000 -s "bacdive, mediadive, madin_etal, rhea_mappings, bactotraits, chebi, ec, envo, go, ncbitaxon, upa, hp, mondo, ctd, wallen_etal, uniprot_human, uniprot_functional_microbes" --merge-label $@

0 comments on commit 8f38457

Please sign in to comment.