-
Notifications
You must be signed in to change notification settings - Fork 67
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
New modification statements #1161
base: master
Are you sure you want to change the base?
Conversation
I found some places that potentially need to be updated if the new types are integrated: |
indra/statements/statements.py
Outdated
@@ -1005,6 +1020,66 @@ class Demethylation(RemoveModification): | |||
"""Demethylation modification.""" | |||
|
|||
|
|||
class Carboxylation(AddModification): | |||
"""Carboxylation modification.""" | |||
pass |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
if you have a docstring, you actually don't need a pass
Maybe it makes sense to add a bit of metadata along with each statement type to align them with related entries in other controlled vocabularies. For example, neddylation corresponds to the GO biological process "protein neddylation" (GO:0045116). I did this for PyBEL and you could copy relevant parts if you think this is a good idea. No single controlled vocabulary is covering all types of modifications, though. See: https://github.com/pybel/pybel/blob/57b24a9ddf6d5d73d82c92294ed2186ddf4443c5/src/pybel/language.py#L320-L524 |
344d549
to
f500a34
Compare
This PR adds new Modification statement types: