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 +20 -16
- package/icn3d.min.js +1 -1
- package/icn3d.module.js +20 -16
- package/package.json +1 -1
package/icn3d.module.js
CHANGED
|
@@ -41826,11 +41826,11 @@ class AddTrack {
|
|
|
41826
41826
|
let exonArray = (acc2exons) ? acc2exons[trackTitleArray[j]] : undefined;
|
|
41827
41827
|
this.showNewTrack(chainid, title, text, undefined, undefined, type, undefined, bMsa, fromArray, toArray, seqStartLen, exonArray);
|
|
41828
41828
|
}
|
|
41829
|
-
|
|
41829
|
+
/*
|
|
41830
41830
|
// set color for the master seq
|
|
41831
41831
|
if(trackSeqArray.length > 0) {
|
|
41832
|
-
if(ic.queryresi2score === undefined) ic.queryresi2score = {}
|
|
41833
|
-
if(ic.queryresi2score[chainid] === undefined) ic.queryresi2score[chainid] = {}
|
|
41832
|
+
if(ic.queryresi2score === undefined) ic.queryresi2score = {}
|
|
41833
|
+
if(ic.queryresi2score[chainid] === undefined) ic.queryresi2score[chainid] = {}
|
|
41834
41834
|
|
|
41835
41835
|
let nSeq = trackSeqArray.length;
|
|
41836
41836
|
for(let resi in resi2cntSameRes) {
|
|
@@ -41861,6 +41861,7 @@ class AddTrack {
|
|
|
41861
41861
|
|
|
41862
41862
|
//me.htmlCls.clickMenuCls.setLogCmd('color align custom | ' + chainid + ' | range ' + start + '_' + end + ' | ' + resiScoreStr, true);
|
|
41863
41863
|
}
|
|
41864
|
+
*/
|
|
41864
41865
|
}
|
|
41865
41866
|
|
|
41866
41867
|
processAccList(acclist) { let ic = this.icn3d; ic.icn3dui;
|
|
@@ -42861,23 +42862,26 @@ class ShowAnno {
|
|
|
42861
42862
|
let structure = chnid.substr(0, chnid.indexOf('_'));
|
|
42862
42863
|
// UniProt or NCBI protein accession
|
|
42863
42864
|
if(structure.length > 5) {
|
|
42864
|
-
let
|
|
42865
|
+
let url;
|
|
42865
42866
|
if(ic.uniprot2acc && ic.uniprot2acc[structure]) {
|
|
42866
|
-
|
|
42867
|
+
ic.uniprot2acc[structure];
|
|
42867
42868
|
}
|
|
42868
42869
|
else {
|
|
42869
|
-
|
|
42870
|
-
if(!ic.uniprot2acc) ic.uniprot2acc = {};
|
|
42871
|
-
url = me.htmlCls.baseUrl + "vastdyn/vastdyn.cgi?uniprot2refseq=" + structure;
|
|
42872
|
-
let result = await me.getAjaxPromise(url, 'jsonp');
|
|
42873
|
-
refseqid = (result && result.refseq) ? result.refseq : structure;
|
|
42870
|
+
ic.uniprot2acc = {};
|
|
42874
42871
|
|
|
42875
|
-
|
|
42876
|
-
}
|
|
42877
|
-
|
|
42878
|
-
|
|
42879
|
-
|
|
42880
|
-
|
|
42872
|
+
// try {
|
|
42873
|
+
// if(!ic.uniprot2acc) ic.uniprot2acc = {};
|
|
42874
|
+
// the following query is slow due to the missing index in DB
|
|
42875
|
+
// url = me.htmlCls.baseUrl + "vastdyn/vastdyn.cgi?uniprot2refseq=" + structure;
|
|
42876
|
+
// let result = await me.getAjaxPromise(url, 'jsonp');
|
|
42877
|
+
// refseqid = (result && result.refseq) ? result.refseq : structure;
|
|
42878
|
+
|
|
42879
|
+
// ic.uniprot2acc[structure] = refseqid;
|
|
42880
|
+
// }
|
|
42881
|
+
// catch {
|
|
42882
|
+
// console.log("Problem in getting protein accession from UniProt ID...")
|
|
42883
|
+
// refseqid = structure;
|
|
42884
|
+
// }
|
|
42881
42885
|
}
|
|
42882
42886
|
|
|
42883
42887
|
// get Gene info from protein name
|