Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

For #887 #669

Conversation

mugitty
Copy link
Collaborator

@mugitty mugitty commented Mar 5, 2024

Testing with the following GAF lines:
! TBC FAILS GORULE:0000005 - TEST 1 - incorrect evidence codes for 'protein binding ; GO:0005515' - ISS not allowed
UniProtKB O76187 darA enables GO:0005515 PMID:9802899 ISS UniProtKB:P34149 F GORULE_TEST:0000005-1 Darlin darA protein taxon:44689 20100205 GO_Central
! TBC FAILS GORULE:0000005 - TEST 2 - incorrect evidence codes for 'protein binding ; GO:0005515' - IS0 not allowed
UniProtKB O76187 darA enables GO:0005515 PMID:9802899 ISO UniProtKB:P34149 F GORULE_TEST:0000005-2 Darlin darA protein taxon:44689 20100205 GO_Central
! TBC FAILS GORULE:0000005 - TEST 3 - incorrect evidence codes for 'protein binding ; GO:0005515' - IBA not allowed
UniProtKB O76187 darA enables GO:0005515 GO_REF:0000033 IBA UniProtKB:P34149 F GORULE_TEST:0000005-3 Darlin darA protein taxon:44689 20100205 GO_Central

Resulted in the following errors:
"gorule-0000005": [
{
"level": "WARNING",
"line": "UniProtKB\tO76187\tdarA\tenables\tGO:0005515\tPMID:9802899\tISS\tUniProtKB:P34149\tF\tGORULE_TEST:0000005-1 Darlin\tdarA\tprotein\ttaxon:44689\t20100205\tGO_Central\t\n",
"type": "Violates GO Rule",
"message": "GORULE:0000005: IEA, ISS, ISO, ISM, ISA, IBA, RCA annotations ae not allowed for direct annotations to 'binding ; GO:0005488' or 'protein binding ; GO:0005515'",
"obj": "",
"taxon": "",
"rule": 5
},
{
"level": "WARNING",
"line": "UniProtKB\tO76187\tdarA\tenables\tGO:0005515\tPMID:9802899\tISO\tUniProtKB:P34149\tF\tGORULE_TEST:0000005-2 Darlin\tdarA\tprotein\ttaxon:44689\t20100205\tGO_Central\t\n",
"type": "Violates GO Rule",
"message": "GORULE:0000005: IEA, ISS, ISO, ISM, ISA, IBA, RCA annotations ae not allowed for direct annotations to 'binding ; GO:0005488' or 'protein binding ; GO:0005515'",
"obj": "",
"taxon": "",
"rule": 5
},
{
"level": "WARNING",
"line": "UniProtKB\tO76187\tdarA\tenables\tGO:0005515\tGO_REF:0000033\tIBA\tUniProtKB:P34149\tF\tGORULE_TEST:0000005-3 Darlin\tdarA\tprotein\ttaxon:44689\t20100205\tGO_Central\t\n",
"type": "Violates GO Rule",
"message": "GORULE:0000005: IEA, ISS, ISO, ISM, ISA, IBA, RCA annotations ae not allowed for direct annotations to 'binding ; GO:0005488' or 'protein binding ; GO:0005515'",
"obj": "",
"taxon": "",
"rule": 5
}
],

Also, unrelated IBA for PAINT error
"gorule-0000026": [
{
"level": "ERROR",
"line": "UniProtKB\tO76187\tdarA\tenables\tGO:0005515\tGO_REF:0000033\tIBA\tUniProtKB:P34149\tF\tGORULE_TEST:0000005-3 Darlin\tdarA\tprotein\ttaxon:44689\t20100205\tGO_Central\t\n",
"type": "Violates GO Rule",
"message": "GORULE:0000026: IBA evidence codes should be filtered from main MOD gaf sources",
"obj": "",
"taxon": "",
"rule": 26
},

@mugitty mugitty requested a review from dustine32 March 5, 2024 16:26
Copy link
Collaborator

@dustine32 dustine32 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@mugitty Looks straightforward and good. Thanks for adding the tests!

@mugitty
Copy link
Collaborator Author

mugitty commented Mar 5, 2024

@dustine32 thanks for reviewing quickly.

@mugitty mugitty merged commit 4bb03df into master Mar 5, 2024
5 checks passed
@mugitty mugitty deleted the go-site-887-gorule-0000005-some-codes-are-not-allowed-for-protein-binding-or-binding branch May 6, 2024 17:00
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants