Skip to content

Commit

Permalink
URI tweaks for geneontology/go-site#617
Browse files Browse the repository at this point in the history
  • Loading branch information
cmungall committed May 18, 2018
1 parent 0568dbd commit b5df8f2
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 1 deletion.
4 changes: 4 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -69,3 +69,7 @@ rnacentral.gpi: rnacentral.gpi.gz
target/neo-rnac.obo: rnacentral.gpi.gz
gzip -dc $< | ./rnacgpi2obo.pl > $@.tmp && mv $@.tmp $@

target/xneo-%.owl: target/neo-%.obo
owltools $< -o $@.tmp && mv $@.tmp $@
target/neo-%.owl: target/xneo-%.owl
./bin/fix-obo-uris.pl $< > $@.tmp && mv $@.tmp $@
8 changes: 7 additions & 1 deletion bin/fix-obo-uris.pl
Original file line number Diff line number Diff line change
@@ -1,6 +1,12 @@
#!/usr/bin/perl -np

# See https://github.com/identifiers-org/registry/issues/5
s@http://purl.obolibrary.org/obo/TAIR_locus%3A@http://identifiers.org/tair.locus/@g;

# gramene IDs are actually uniprot...
s@http://purl.obolibrary.org/obo/GR_protein_@http://identifiers.org/uniprot/@g;
s@http://purl.obolibrary.org/obo/(dictyBase|ZFIN|FB|WB|SGD|PomBase|RGD|MGI|Xenbase|UniProtKB|TAIR:\s+)_@"http://identifiers.org/".fix($1)."/"@eg;
s@http://purl.obolibrary.org/obo/dictyBase#_@http://identifiers.org/dictybase.gene/@g;
s@http://purl.obolibrary.org/obo/(ZFIN|FB|WB|SGD|PomBase|RGD|MGI|Xenbase|UniProtKB|TAIR:\s+)_@"http://identifiers.org/".fix($1)."/"@eg;

sub fix {
$s = lc($_[0]);
Expand Down

0 comments on commit b5df8f2

Please sign in to comment.