Open ReneRanzinger opened 3 months ago
Fixed on tst:
Change the display to make it look like protein name section with domain as top headlines and names as bullet points. Group them by domain. name: [ { name : something, domain: motifname }, { name : something2, domain: motifsynonym } , { name : something3, domain: motifsynonym } ]
@rykahsay add motif synonyms to the names list. domain should be something like motifsynonym for all synonyms.
Here is what it looks like now. I think you need to use labels instead of the values of the "domain" prop ... unless you want me to values such as "Motif Name(s)" and "Motif Synonym(s)" instead of "motifname" and "motifsynonym"
@rykahsay thanks, we plan to make it look something similar to protein name, each synonym on different line. And name and synonym under different category. (https://tst.glygen.org/protein/P14210-1#Names).
Can you please send name, synonyms as array, like below. So that we can group them together based on domain in the frontend.
name: [
{
name : "Sialyl Lewis x", domain: motifname
},
{
name : "Le^x", domain: "motifsynonym"
}
,
{
name : "Lex", domain: "motifsynonym"
},
{
name : "SSEA-1", domain: "motifsynonym"
}
]
@ReneRanzinger @rykahsay
Apart from motifname and motifsynonym as agreed earlier "Semantic Name" is coming in below case (G01614ZM).
How we should handle this?
Currently we are only showing motifname and motifsynonym in frontend. In this case both "Semantic Name" and "motifname" have same name ("Di-sialyl T antigen").
API : https://api.tst.glygen.org/glycan/detail/G01614ZM
"names": [
{
"name": "Di-sialyl T antigen",
"domain": "Semantic Name"
},
{
"name": "Di-sialyl T antigen",
"domain": "motifname"
}
],
Where does semantic name come from?
It comes from Nathan's export (downloads/glytoucan/current/export/names.tsv)
GlyTouCanAccession Name Domain
G01614ZM Di-sialyl T antigen SemanticName
And ends up in the dataset glycan_names.csv
"glytoucan_ac","glycan_name","glycan_name_domain"
"G01614ZM","Di-sialyl T antigen","Semantic Name"
Motifs have many names and synonyms:
https://www.glygen.org/motif/GGM.000022
But if I go the name section of the corresponding GlyTouCan ID the name section is empty:
https://www.glygen.org/glycan/G00054MO