Skip to content

Commit

Permalink
changing all root protein to chebi reference
Browse files Browse the repository at this point in the history
fixes problem detected in #313
resulting from lack of inference step applied to go-lego including neo.  That found that PR_000000001 was equivalent to CHEBI_36080 .  All reference in minerva code now use the chebi uri.
  • Loading branch information
goodb committed Apr 30, 2020
1 parent 7035cb3 commit 866d4a5
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 13 deletions.
10 changes: 5 additions & 5 deletions minerva-converter/src/test/resources/go-lego-module.omn
Original file line number Diff line number Diff line change
Expand Up @@ -2588,11 +2588,11 @@ Class: OBO:GO_0005515

EquivalentTo:
OBO:GO_0005488
and (OBO:RO_0002233 some OBO:PR_000000001)
and (OBO:RO_0002233 some OBO:CHEBI_36080)

SubClassOf:
OBO:GO_0005488,
OBO:RO_0002233 some OBO:PR_000000001
OBO:RO_0002233 some OBO:CHEBI_36080


Class: OBO:GO_0005539
Expand Down Expand Up @@ -4106,12 +4106,12 @@ Class: OBO:GO_0019538

EquivalentTo:
OBO:GO_0008152
and (OBO:RO_0000057 some OBO:PR_000000001)
and (OBO:RO_0000057 some OBO:CHEBI_36080)

SubClassOf:
OBO:GO_0043170,
OBO:GO_0044238,
OBO:RO_0000057 some OBO:PR_000000001
OBO:RO_0000057 some OBO:CHEBI_36080


Class: OBO:GO_0021501
Expand Down Expand Up @@ -9200,7 +9200,7 @@ Class: OBO:PATO_0002487
OBO:PATO_0001236


Class: OBO:PR_000000001
Class: OBO:CHEBI_36080

Annotations:
rdfs:label "protein"^^xsd:string
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -313,10 +313,9 @@ public Map<String, Set<String>> getNeoRoots(Set<String> uris) throws IOException
for(String term : all.keySet()) {
Set<String> isa_closure = all.get(term);
String direct_parent_iri = null;
if(isa_closure.contains("http://purl.obolibrary.org/obo/CHEBI_36080")||isa_closure.contains("http://purl.obolibrary.org/obo/PR_000000001")) {
if(isa_closure.contains("http://purl.obolibrary.org/obo/CHEBI_36080")) {
//protein
//direct_parent_iri = "http://purl.obolibrary.org/obo/CHEBI_36080";
direct_parent_iri = "http://purl.obolibrary.org/obo/PR_000000001";
direct_parent_iri = "http://purl.obolibrary.org/obo/CHEBI_36080";
}else if(isa_closure.contains("http://purl.obolibrary.org/obo/CHEBI_33695")) {
//information biomacrolecule (gene, complex)
direct_parent_iri = "http://purl.obolibrary.org/obo/CHEBI_33695";
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -125,10 +125,10 @@ public void testGetSubClasses() throws IOException {
//Gene products
//this is a little extreme.. it works but takes a minute. Should never have to do this in a live search system
// //uniprot
// uri = "http://purl.obolibrary.org/obo/PR_000000001";
// uri = "http://purl.obolibrary.org/obo/CHEBI_36080";
// subs = onto_repo.getAllSubClasses(uri);
// //protein
// assertTrue("uniprot/Q13253 not subclass of PR_000000001 protein", subs.contains("http://identifiers.org/uniprot/Q13253"));
// assertTrue("uniprot/Q13253 not subclass of http://purl.obolibrary.org/obo/CHEBI_36080 protein", subs.contains("http://identifiers.org/uniprot/Q13253"));
// //"gene"..
// //zfin
// uri = "http://purl.obolibrary.org/obo/CHEBI_33695";
Expand Down Expand Up @@ -178,7 +178,6 @@ public void testGetSuperClasses() throws IOException {
uri = "http://identifiers.org/uniprot/Q13253";
supers = onto_repo.getAllSuperClasses(uri);
//protein
assertTrue("uniprot/Q13253 not subclass of PR_000000001 protein", supers.contains("http://purl.obolibrary.org/obo/PR_000000001"));
assertTrue("uniprot/Q13253 not subclass of CHEBI_36080 protein", supers.contains("http://purl.obolibrary.org/obo/CHEBI_36080"));
assertTrue("uniprot/Q13253 not subclass of CHEBI_36695 information biomacromolecule", supers.contains("http://purl.obolibrary.org/obo/CHEBI_33695"));
assertTrue("uniprot/Q13253 not subclass of CHEBI_24431 chemical entity", supers.contains("http://purl.obolibrary.org/obo/CHEBI_24431"));
Expand Down
3 changes: 1 addition & 2 deletions minerva-server/src/test/resources/validate.shex
Original file line number Diff line number Diff line change
Expand Up @@ -408,13 +408,12 @@ PREFIX results_in_remodeling_of: <http://purl.obolibrary.org/obo/RO_0002591>
part_of: @<AnatomicalEntity> {0,1};
adjacent_to: @<AnatomicalEntity> *;
overlaps: @<AnatomicalEntity> *;
has_part:(@<InformationBiomacromolecule> OR @<ProteinContainingComplex>) {0,1};
} // rdfs:comment "a cellular component"

<ProteinContainingComplex> EXTRA a {
a @<ProteinContainingComplexClass>;
located_in: @<CellularComponent> {0,1};
has_part: @<InformationBiomacromolecule> *;
has_part: ( @<InformationBiomacromolecule> OR @<ProteinContainingComplex> ) *;
} // rdfs:comment "a protein complex"

<ProteinContainingComplexClass> IRI @<OwlClass> AND EXTRA rdfs:subClassOf {
Expand Down

0 comments on commit 866d4a5

Please sign in to comment.