-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
47 lines (39 loc) · 2.26 KB
/
Makefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
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 -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 -s "bacdive, mediadive, madin_etal, rhea_mappings, bactotraits, chebi, ec, envo, go, ncbitaxon, upa, hp, mondo, ctd, wallen_etal, uniprot_human" --merge-label $@
kg-microbe-biomedical-function:
poetry run kg merge -m duckdb --merge-label $@
kg-microbe-function-cat:
cd data/raw/uniprot_functional_microbes && \
grep UniprotKB: nodes.tsv > nodes_UniprotKB.tsv && \
tail -n +2 edges.tsv | cut -f1,2,3 > edges_data_clean.tsv && \
head -1 edges.tsv | cut -f1,2,3 > edges_header_clean.tsv && \
cd ../../merged && \
mkdir -p kg-microbe-function-cat && \
cd kg-microbe-core && \
tail -n +2 edges.tsv > edges_data.tsv && \
cd ../ && \
cd kg-microbe-function-cat && \
cat ../kg-microbe-core/nodes.tsv ../../raw/uniprot_functional_microbes/nodes_UniprotKB.tsv > merged-kg_nodes.tsv && \
cat ../kg-microbe-core/edges_header.tsv ../kg-microbe-core/edges_data.tsv ../../raw/uniprot_functional_microbes/edges_data_clean.tsv > merged-kg_edges.tsv && \
cd ../../../
kg-microbe-biomedical-function-cat:
cd data/raw/uniprot_functional_microbes && \
grep UniprotKB: nodes.tsv > nodes_UniprotKB.tsv && \
tail -n +2 edges.tsv | cut -f1,2,3 > edges_data_clean.tsv && \
head -1 edges.tsv | cut -f1,2,3 > edges_header_clean.tsv && \
cd ../../merged && \
cd kg-microbe-biomedical && \
tail -n +2 edges.tsv > edges_data.tsv && \
cd ../ && \
mkdir -p kg-microbe-biomedical-function-cat && \
cd kg-microbe-biomedical-function-cat && \
cat ../kg-microbe-biomedical/nodes.tsv ../../raw/uniprot_functional_microbes/nodes_UniprotKB.tsv > merged-kg_nodes.tsv && \
cat ../kg-microbe-core/edges_header.tsv ../kg-microbe-biomedical/edges_data.tsv ../../raw/uniprot_functional_microbes/edges_data_clean.tsv > merged-kg_edges.tsv && \
cd ../../../
include kg-microbe-merge.Makefile