Skip to content

Commit

Permalink
Update the phenio.db term association population to point to db files…
Browse files Browse the repository at this point in the history
… in output subdir
  • Loading branch information
kevinschaper committed Dec 8, 2023
1 parent f0a992c commit 51e57b7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion scripts/load_sqlite.sh
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ pigz --force output/monarch-kg-denormalized-edges.tsv
echo "Populate phenio db term_association..."
cp data/monarch/phenio.db.gz output/phenio.db.gz
gunzip output/phenio.db.gz
sqlite3 -cmd "attach 'monarch-kg.db' as monarch" phenio.db "insert into term_association (id, subject, predicate, object, evidence_type, publication, source) select id, subject, predicate, object, has_evidence as evidence_type, publications as publication, primary_knowledge_source as source from monarch.edges where predicate = 'biolink:has_phenotype' and negated <> 'True'"
sqlite3 -cmd "attach 'output/monarch-kg.db' as monarch" output/phenio.db "insert into term_association (id, subject, predicate, object, evidence_type, publication, source) select id, subject, predicate, object, has_evidence as evidence_type, publications as publication, primary_knowledge_source as source from monarch.edges where predicate = 'biolink:has_phenotype' and negated <> 'True'"

echo "Compressing databases"
pigz --force output/phenio.db
Expand Down

0 comments on commit 51e57b7

Please sign in to comment.