Skip to content

Commit

Permalink
temp fix for #17
Browse files Browse the repository at this point in the history
  • Loading branch information
cmungall committed Apr 21, 2018
1 parent 238b909 commit ab071b3
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 1 deletion.
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ foo:
include Makefile-gafs

neo.owl: neo.obo
owltools $< -o $@
owltools $< -o $@.tmp && ./bin/fix-obo-uris.pl $@.tmp > $@.tmp2 && mv $@.tmp2 $@

Makefile-gafs: datasets.json
./build-neo-makefile.py -i $< > $@.tmp && mv $@.tmp $@
Expand Down
12 changes: 12 additions & 0 deletions bin/fix-obo-uris.pl
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
#!/usr/bin/perl -np
s@http://purl.obolibrary.org/obo/(dictyBase|ZFIN|FB|WB|SGD|PomBase|RGD|MGI|XenBase|UniProtKB|TAIR:\s+)_@"http://identifiers.org/".fix($1)."/"@eg;

sub fix {
$s = lc($_[0]);
$s =~ s@^fb$@flybase@;
$s =~ s@^wb$@wormbase@;
$s =~ s@^uniprotkb$@uniprot@;
$s =~ s@^tair:@tair.@;
return $s;
}

0 comments on commit ab071b3

Please sign in to comment.