icn3d 3.28.2 → 3.28.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/icn3d.js CHANGED
@@ -41961,23 +41961,26 @@ class ShowAnno {
41961
41961
  let structure = chnid.substr(0, chnid.indexOf('_'));
41962
41962
  // UniProt or NCBI protein accession
41963
41963
  if(structure.length > 5) {
41964
- let refseqid, url;
41964
+ let url;
41965
41965
  if(ic.uniprot2acc && ic.uniprot2acc[structure]) {
41966
- refseqid = ic.uniprot2acc[structure];
41966
+ ic.uniprot2acc[structure];
41967
41967
  }
41968
41968
  else {
41969
- try {
41970
- if(!ic.uniprot2acc) ic.uniprot2acc = {};
41971
- url = me.htmlCls.baseUrl + "vastdyn/vastdyn.cgi?uniprot2refseq=" + structure;
41972
- let result = await me.getAjaxPromise(url, 'jsonp');
41973
- refseqid = (result && result.refseq) ? result.refseq : structure;
41969
+ ic.uniprot2acc = {};
41974
41970
 
41975
- ic.uniprot2acc[structure] = refseqid;
41976
- }
41977
- catch {
41978
- console.log("Problem in getting protein accession from UniProt ID...");
41979
- refseqid = structure;
41980
- }
41971
+ // try {
41972
+ // if(!ic.uniprot2acc) ic.uniprot2acc = {};
41973
+ // the following query is slow due to the missing index in DB
41974
+ // url = me.htmlCls.baseUrl + "vastdyn/vastdyn.cgi?uniprot2refseq=" + structure;
41975
+ // let result = await me.getAjaxPromise(url, 'jsonp');
41976
+ // refseqid = (result && result.refseq) ? result.refseq : structure;
41977
+
41978
+ // ic.uniprot2acc[structure] = refseqid;
41979
+ // }
41980
+ // catch {
41981
+ // console.log("Problem in getting protein accession from UniProt ID...")
41982
+ // refseqid = structure;
41983
+ // }
41981
41984
  }
41982
41985
 
41983
41986
  // get Gene info from protein name