Skip to content

Commit

Permalink
update uniprot API in example web app; change default uniprot ID in p…
Browse files Browse the repository at this point in the history
…lugin page
  • Loading branch information
davidhoksza committed Oct 2, 2024
1 parent e66bcaa commit 34179f4
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 4 deletions.
7 changes: 4 additions & 3 deletions docs/examples/plugin-page.html
Original file line number Diff line number Diff line change
Expand Up @@ -20,16 +20,17 @@
<script type="application/javascript">
window.onload = function() {
window.molart = new MolArt({
uniprotId: 'P37840',
//uniprotId: 'P37840',
//uniprotId: 'P68871', //hemoglobin
// uniprotId: 'Q8WZ42',
// uniprotId: 'P05067',
// uniprotId: 'Q13158',
//uniprotId: 'O60260',
// uniprotId: 'Q5S007', //LRRK2 Human
// uniprotId: 'Q5S007', //LRRK2 Human
// uniprotId: 'P04637',
// uniprotId: 'P05067', //disulfide bond
// uniprotId: 'Q6UWZ7',
// uniprotId: 'P00846',
uniprotId: 'P00846',
// uniprotId: 'Q13526',
// uniprotId: 'XXX',
// uniprotId: 'P58340',
Expand Down
3 changes: 2 additions & 1 deletion docs/examples/web/js/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,8 @@ function ajaxQuery(url, type) {
}

function queryUniprot(query) {
return ajaxQuery('https://www.uniprot.org/uniprot/?query=' + query + '&sort=score&columns=id,entry%20name,reviewed,protein%20names,3d,genes,organism,length&format=tab&limit=10');
//return ajaxQuery('https://www.uniprot.org/uniprot/?query=' + query + '&sort=score&columns=id,entry%20name,reviewed,protein%20names,3d,genes,organism,length&format=tab&limit=10');
return ajaxQuery('https://rest.uniprot.org/uniprotkb/search?query=' + query + '&format=tsv&size=10');
}

function querySwissprot(uniprotId) {
Expand Down

0 comments on commit 34179f4

Please sign in to comment.