glygener / glygen-issues

Repository for public GlyGen tickets
GNU General Public License v3.0
0 stars 0 forks source link

API info for publication evidence for glycans at particular sites #61

Closed jeet-vora closed 1 year ago

jeet-vora commented 1 year ago

For Kiyoko's request about API info for publication evidence for glycans at particular sites does below API info works? How can she get a list of Proteins with glycans that have PMIDs associated with it? Does she have to use multiple APIs or only one API? Can you add other useful information?

Hi Kiyoko,

The publication evidence for glycans at particular sites can be retrieved from the Protein Details API (https://api.glygen.org/#/Protein_Details_(generic_protein_API)). The information you are looking for is under "glycosylation" section under the "site_category": "reported_with_glycan". I have shared an example for P14210 below

Request URL: https://api.glygen.org/protein/detail/P14210/ Curl: curl -X GET "https://api.glygen.org/protein/detail/P14210/" -H "accept: application/json"

"glycosylation": [ { "site_category": "reported_with_glycan", "end_pos": 294, "start_aa": "Asn", "residue": "Asn", "evidence": [ { "url": "https://glyconnect.expasy.org/browser/proteins/219", "id": "219", "database": "GlyConnect" }, { "url": "https://glygen.org/publication/PubMed/8407880", "id": "8407880", "database": "PubMed" } ], "site_seq": "N", "relation": "attached", "start_pos": 294, "end_aa": "Asn", "glytoucan_ac": "G01543ZX", "type": "N-linked" },

jeet-vora commented 1 year ago

Response to Kiyoko

Hi Kiyoko,The publication evidence for glycans at particular sites can be retrieved from the Protein Details API (https://api.glygen.org/#/Protein_Details_(generic_protein_API)). The information you are looking for is under "glycosylation" section under the "site_category": "reported_with_glycan". I have shared an example for P14210 belowRequest URL: https://api.glygen.org/protein/detail/P14210/ Curl: curl -X GET "https://api.glygen.org/protein/detail/P14210/" -H "accept: application/json""glycosylation": [ { "site_category": "reported_with_glycan", "end_pos": 294, "start_aa": "Asn", "residue": "Asn", "evidence": [ { "url": "https://glyconnect.expasy.org/browser/proteins/219", "id": "219", "database": "GlyConnect" }, { "url": "https://glygen.org/publication/PubMed/8407880", "id": "8407880", "database": "PubMed" } ], "site_seq": "N", "relation": "attached", "start_pos": 294, "end_aa": "Asn", "glytoucan_ac": "G01543ZX", "type": "N-linked" },Additional APIs incase you need them (some of them are undocumented) - https://api.glygen.org/test/protein.htmlhttps://api.glygen.org/test/glycan.htmlLet me know if you any questions.