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

Add endpoint to update molecular mechanism #53

Open
wants to merge 5 commits into
base: main
Choose a base branch
from

Conversation

dglemos
Copy link
Collaborator

@dglemos dglemos commented Oct 15, 2024

Ticket: G2P-182
We only allow updates if the mechanism is 'undetermined'.

New endpoint
gene2phenotype/api/lgd/<str:stable_id>/update_mechanism/

The input data has the same format as the mechanism data sent by the curation page.

To test
db: dlemos_G2P_2024_18
Input data:

{
    "molecular_mechanism": {
				"name": "gain of function",
				"support": "evidence"
		    },
    "mechanism_synopsis": {
				"name": "",
				"support": ""
		    },
    "mechanism_evidence": [
        {
						"pmid": "18247425",
						"description": "This is description for the mechanism evidence.",
						"evidence_types": [
								{
										"primary_type": "Function",
										"secondary_type": [
												"Biochemical"
										]
								},
								{
										"primary_type": "Rescue",
										"secondary_type": [
												"Human",
												"Patient Cells"
										]
								}
						]
				}
    ]
}

@dglemos dglemos changed the title Add endpoint update molecular mechanism Add endpoint to update molecular mechanism Oct 15, 2024
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.

3 participants