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 +16 -13
- package/icn3d.min.js +1 -1
- package/icn3d.module.js +16 -13
- package/package.json +1 -1
package/icn3d.module.js
CHANGED
|
@@ -42862,23 +42862,26 @@ class ShowAnno {
|
|
|
42862
42862
|
let structure = chnid.substr(0, chnid.indexOf('_'));
|
|
42863
42863
|
// UniProt or NCBI protein accession
|
|
42864
42864
|
if(structure.length > 5) {
|
|
42865
|
-
let
|
|
42865
|
+
let url;
|
|
42866
42866
|
if(ic.uniprot2acc && ic.uniprot2acc[structure]) {
|
|
42867
|
-
|
|
42867
|
+
ic.uniprot2acc[structure];
|
|
42868
42868
|
}
|
|
42869
42869
|
else {
|
|
42870
|
-
|
|
42871
|
-
if(!ic.uniprot2acc) ic.uniprot2acc = {};
|
|
42872
|
-
url = me.htmlCls.baseUrl + "vastdyn/vastdyn.cgi?uniprot2refseq=" + structure;
|
|
42873
|
-
let result = await me.getAjaxPromise(url, 'jsonp');
|
|
42874
|
-
refseqid = (result && result.refseq) ? result.refseq : structure;
|
|
42870
|
+
ic.uniprot2acc = {};
|
|
42875
42871
|
|
|
42876
|
-
|
|
42877
|
-
}
|
|
42878
|
-
|
|
42879
|
-
|
|
42880
|
-
|
|
42881
|
-
|
|
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
|
+
// }
|
|
42882
42885
|
}
|
|
42883
42886
|
|
|
42884
42887
|
// get Gene info from protein name
|