glygener / glygen-issues

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

API should not send evidence information in biomarker array in publication detail api. #1349

Open sujeetvkulkarni opened 1 month ago

sujeetvkulkarni commented 1 month ago

On publication page in biomarker section backend should not send evidence information in details api and download api. https://tst.glygen.org/publication/PubMed/16759302#Biomarkers

Download api change is dependent on #1348 fix. As it is expected that all information listed on publication page is coming from current paper no evidence column should be shown to the user.

API: https://api.tst.glygen.org/publication/detail?query= {"id":"16759302","type":"PubMed","paginated_tables":[{"table_id":"glycosylation_reported_with_glycan","offset":1,"limit":20,"sort":"start_pos","order":"asc"},{"table_id":"glycosylation_reported","offset":1,"limit":20,"sort":"start_pos","order":"asc"},{"table_id":"glycosylation_predicted","offset":1,"limit":20,"sort":"start_pos","order":"asc"},{"table_id":"phosphorylation","offset":1,"limit":20,"sort":"start_pos","order":"asc"},{"table_id":"referenced_proteins","offset":1,"limit":20,"sort":"uniprot_canonical_ac","order":"asc"},{"table_id":"referenced_glycans","offset":1,"limit":20,"sort":"glytoucan_ac","order":"asc"}]}

biomarkers: [
  {
    "evidence": [
      {
        "id": "GLY_000625",
        "database": "GlyGen",
        "url": "https://data.glygen.org/GLY_000625"
      },
      {
        "id": "16759302",
        "database": "PubMed",
        "url": "https://glygen.org/publication/PubMed/16759302"
      }
    ],
    "assessed_biomarker_entity": [
      "Hepatocyte growth factor"
    ],
    "biomarker_id": "AA4761-1"
  }
]
sujeetvkulkarni commented 1 month ago

postponing the changes for now. needs a bigger discussion on removing evidence badges from publication page. assigning back to me.