Skip to content

Commit

Permalink
Add Reactome pathways xrefs to ontology (#29174)
Browse files Browse the repository at this point in the history
* Update committed version of Reactome reactions xrefs.

* WIP Reactome pathways xrefs.

* Add Reactome pathways xrefs to ontology. Update committed import file.
  • Loading branch information
balhoff authored Dec 4, 2024
1 parent 722575c commit 30518ac
Show file tree
Hide file tree
Showing 2 changed files with 8,679 additions and 203 deletions.
7 changes: 6 additions & 1 deletion src/ontology/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -177,10 +177,15 @@ change-report.txt: $(SRC) $(PREVIOUS)
imports/reactome_xrefs_import.owl: $(SRC)
mkdir -p reactome-tmp
wget -O reactome-tmp/Reactions2GoTerms_human.txt --no-check-certificate https://reactome.org/download/current/Reactions2GoTerms_human.txt
wget -O reactome-tmp/Pathways2GoTerms_human.txt --no-check-certificate https://github.com/user-attachments/files/17652333/Pathways2GoTerms_human.txt
sed -i '1s/.*/Identifier\tName\tdefined_class/' reactome-tmp/Reactions2GoTerms_human.txt
sed -i '1d' reactome-tmp/Pathways2GoTerms_human.txt
perl -i.bak -pe 's/[^[:ascii:]]//g' reactome-tmp/Reactions2GoTerms_human.txt
perl -i.bak -pe 's/[^[:ascii:]]//g' reactome-tmp/Pathways2GoTerms_human.txt
cat reactome-tmp/Reactions2GoTerms_human.txt reactome-tmp/Pathways2GoTerms_human.txt >reactome-tmp/combined.txt
rm reactome-tmp/Reactions2GoTerms_human.txt.bak
$(DOSDP_TOOLS) generate --template=xref_dosdp_yaml/reactome_xref.yaml --infile=reactome-tmp/Reactions2GoTerms_human.txt --outfile=reactome-tmp/reactome_xrefs.ofn --obo-prefixes=true
rm reactome-tmp/Pathways2GoTerms_human.txt.bak
$(DOSDP_TOOLS) generate --template=xref_dosdp_yaml/reactome_xref.yaml --infile=reactome-tmp/combined.txt --outfile=reactome-tmp/reactome_xrefs.ofn --obo-prefixes=true
$(ROBOT) convert --input reactome-tmp/reactome_xrefs.ofn --output imports/reactome_xrefs_import.owl annotate --ontology-iri $(BASE)/imports/reactome_xrefs_import.owl -V $(RELEASE_URIBASE)/$@ -o $@

# Remove reactome_xrefs_import.owl and go_taxon_constraints.owl from imports. These are merged in directly in enhanced.owl
Expand Down
Loading

0 comments on commit 30518ac

Please sign in to comment.