icn3d 3.28.1 → 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
@@ -40925,11 +40925,11 @@ class AddTrack {
40925
40925
  let exonArray = (acc2exons) ? acc2exons[trackTitleArray[j]] : undefined;
40926
40926
  this.showNewTrack(chainid, title, text, undefined, undefined, type, undefined, bMsa, fromArray, toArray, seqStartLen, exonArray);
40927
40927
  }
40928
-
40928
+ /*
40929
40929
  // set color for the master seq
40930
40930
  if(trackSeqArray.length > 0) {
40931
- if(ic.queryresi2score === undefined) ic.queryresi2score = {};
40932
- if(ic.queryresi2score[chainid] === undefined) ic.queryresi2score[chainid] = {};
40931
+ if(ic.queryresi2score === undefined) ic.queryresi2score = {}
40932
+ if(ic.queryresi2score[chainid] === undefined) ic.queryresi2score[chainid] = {}
40933
40933
 
40934
40934
  let nSeq = trackSeqArray.length;
40935
40935
  for(let resi in resi2cntSameRes) {
@@ -40960,6 +40960,7 @@ class AddTrack {
40960
40960
 
40961
40961
  //me.htmlCls.clickMenuCls.setLogCmd('color align custom | ' + chainid + ' | range ' + start + '_' + end + ' | ' + resiScoreStr, true);
40962
40962
  }
40963
+ */
40963
40964
  }
40964
40965
 
40965
40966
  processAccList(acclist) { let ic = this.icn3d; ic.icn3dui;
@@ -41960,23 +41961,26 @@ class ShowAnno {
41960
41961
  let structure = chnid.substr(0, chnid.indexOf('_'));
41961
41962
  // UniProt or NCBI protein accession
41962
41963
  if(structure.length > 5) {
41963
- let refseqid, url;
41964
+ let url;
41964
41965
  if(ic.uniprot2acc && ic.uniprot2acc[structure]) {
41965
- refseqid = ic.uniprot2acc[structure];
41966
+ ic.uniprot2acc[structure];
41966
41967
  }
41967
41968
  else {
41968
- try {
41969
- if(!ic.uniprot2acc) ic.uniprot2acc = {};
41970
- url = me.htmlCls.baseUrl + "vastdyn/vastdyn.cgi?uniprot2refseq=" + structure;
41971
- let result = await me.getAjaxPromise(url, 'jsonp');
41972
- refseqid = (result && result.refseq) ? result.refseq : structure;
41969
+ ic.uniprot2acc = {};
41973
41970
 
41974
- ic.uniprot2acc[structure] = refseqid;
41975
- }
41976
- catch {
41977
- console.log("Problem in getting protein accession from UniProt ID...");
41978
- refseqid = structure;
41979
- }
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
+ // }
41980
41984
  }
41981
41985
 
41982
41986
  // get Gene info from protein name