31 #include "../../utils.h"
34 #include <QDesktopServices>
52 if(text().startsWith(
"MOD:"))
54 QDesktopServices::openUrl(getOlsUrl(this->text()));
57 else if(text().startsWith(
"PubMed:"))
59 QDesktopServices::openUrl(getPubMedUrl(this->text()));
62 else if(text().startsWith(
"RESID:"))
64 QDesktopServices::openUrl(getRESIDUrl(this->text()));
67 else if(text().startsWith(
"ChEBI:"))
69 QDesktopServices::openUrl(getChEBIUrl(this->text()));
72 else if(text().startsWith(
"Unimod:"))
74 QDesktopServices::openUrl(getUnimodUrl(this->text()));
79 qDebug() <<
"unknown" << this->text();
82 QPushButton::mousePressEvent(e);
88 QPushButton::setText(text);
96 QString iri(QString(
"http://purl.obolibrary.org/obo/%1")
97 .arg(psimod_accession.replace(
":",
"_")));
99 QString(
"http://www.ebi.ac.uk/ols/ontologies/mod/terms?iri=%1").arg(iri));
107 QUrl url(QString(
"https://pubmed.ncbi.nlm.nih.gov/%1/")
108 .arg(accession.replace(
"PubMed:",
"")));
117 QUrl url(QString(
"https://annotation.dbi.udel.edu/cgi-bin/resid?id=%1")
118 .arg(accession.replace(
"RESID:",
"")));
128 QUrl url(QString(
"https://www.ebi.ac.uk/chebi/searchId.do?chebiId=%1")
129 .arg(accession.replace(
"ChEBI:",
"")));
139 QUrl url(QString(
"http://www.unimod.org/modifications_view.php?editid1=%1")
140 .arg(accession.replace(
"Unimod:",
"")));
tries to keep as much as possible monoisotopes, removing any possible C13 peaks and changes multichar...