icn3d 3.25.14 → 3.25.15
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 +34 -20
- package/icn3d.min.js +2 -2
- package/icn3d.module.js +34 -20
- package/package.json +1 -1
package/icn3d.module.js
CHANGED
|
@@ -53124,13 +53124,15 @@ class ParserUtils {
|
|
|
53124
53124
|
let allPromise = Promise.allSettled([prms1, prms2]);
|
|
53125
53125
|
let dataArray = await allPromise;
|
|
53126
53126
|
|
|
53127
|
-
ic.interactionData1 = (me.bNode) ? dataArray[0] : dataArray[0].value;
|
|
53127
|
+
// ic.interactionData1 = (me.bNode) ? dataArray[0] : dataArray[0].value;
|
|
53128
|
+
ic.interactionData1 = dataArray[0].value;
|
|
53128
53129
|
ic.html2ddgm = '';
|
|
53129
53130
|
ic.diagram2dCls.draw2Ddgm(ic.interactionData1, mmdbid1, 0);
|
|
53130
53131
|
if(me.cfg.show2d) me.htmlCls.dialogCls.openDlg('dl_2ddgm', 'Interactions');
|
|
53131
53132
|
|
|
53132
53133
|
|
|
53133
|
-
ic.interactionData2 = (me.bNode) ? dataArray[1] : dataArray[1].value;
|
|
53134
|
+
// ic.interactionData2 = (me.bNode) ? dataArray[1] : dataArray[1].value;
|
|
53135
|
+
ic.interactionData2 = dataArray[1].value;
|
|
53134
53136
|
ic.diagram2dCls.draw2Ddgm(ic.interactionData2, mmdbid2, 1);
|
|
53135
53137
|
|
|
53136
53138
|
ic.html2ddgm += "<br>" + ic.diagram2dCls.set2DdgmNote(true);
|
|
@@ -53178,7 +53180,8 @@ class ParserUtils {
|
|
|
53178
53180
|
// Each argument is an array with the following structure: [ data, statusText, jqXHR ]
|
|
53179
53181
|
//var data2 = v2[0];
|
|
53180
53182
|
for(let index = 0, indexl = chainidArray.length; index < indexl; ++index) {
|
|
53181
|
-
let data = (me.bNode) ? dataArray[index] : dataArray[index].value;//[0];
|
|
53183
|
+
// let data = (me.bNode) ? dataArray[index] : dataArray[index].value;//[0];
|
|
53184
|
+
let data = dataArray[index].value;//[0];
|
|
53182
53185
|
let mmdbid = chainidArray[index].substr(0, chainidArray[index].indexOf('_'));
|
|
53183
53186
|
|
|
53184
53187
|
ic.diagram2dCls.draw2Ddgm(data, mmdbid, 0);
|
|
@@ -56870,7 +56873,8 @@ class Vastplus {
|
|
|
56870
56873
|
|
|
56871
56874
|
let queryDataArray = [];
|
|
56872
56875
|
for(let index = 0, indexl = chainidpairArray.length; index < indexl; ++index) {
|
|
56873
|
-
let queryData = (me.bNode) ? dataArray[index] : dataArray[index].value; //[0];
|
|
56876
|
+
// let queryData = (me.bNode) ? dataArray[index] : dataArray[index].value; //[0];
|
|
56877
|
+
let queryData = dataArray[index].value; //[0];
|
|
56874
56878
|
|
|
56875
56879
|
queryDataArray.push(queryData);
|
|
56876
56880
|
/*
|
|
@@ -72154,25 +72158,35 @@ iCn3DUI.prototype.show3DStructure = async function(pdbStr) { let me = this;
|
|
|
72154
72158
|
let data = await me.getAjaxPromise(url, 'json', false, 'The RID ' + me.cfg.rid + ' may have expired...');
|
|
72155
72159
|
|
|
72156
72160
|
for(let q = 0, ql = data.BlastOutput2.length; q < ql; ++q) {
|
|
72157
|
-
|
|
72158
|
-
let hitArray
|
|
72161
|
+
|
|
72162
|
+
let hitArray;
|
|
72163
|
+
if(data.BlastOutput2[q].report.results.iterations) { // psi-blast may have "iterations". Use the last iteration.
|
|
72164
|
+
let nIterations = data.BlastOutput2[q].report.results.iterations.length;
|
|
72165
|
+
if(data.BlastOutput2[q].report.results.iterations[nIterations - 1].search.query_id != me.cfg.query_id) continue;
|
|
72166
|
+
hitArray = data.BlastOutput2[q].report.results.iterations[nIterations - 1].search.hits;
|
|
72167
|
+
}
|
|
72168
|
+
else { // blastp may not have "iterations"
|
|
72169
|
+
if(data.BlastOutput2[q].report.results.search.query_id != me.cfg.query_id) continue;
|
|
72170
|
+
hitArray = data.BlastOutput2[q].report.results.search.hits;
|
|
72171
|
+
}
|
|
72172
|
+
|
|
72159
72173
|
let qseq = undefined;
|
|
72160
72174
|
for(let i = 0, il = hitArray.length; i < il; ++i) {
|
|
72161
|
-
|
|
72162
|
-
|
|
72163
|
-
|
|
72164
|
-
|
|
72165
|
-
|
|
72166
|
-
|
|
72167
|
-
|
|
72175
|
+
let hit = hitArray[i];
|
|
72176
|
+
let bFound = false;
|
|
72177
|
+
for(let j = 0, jl = hit.description.length; j < jl; ++j) {
|
|
72178
|
+
let acc = hit.description[j].accession;
|
|
72179
|
+
if(acc == me.cfg.blast_rep_id) {
|
|
72180
|
+
bFound = true;
|
|
72181
|
+
break;
|
|
72182
|
+
}
|
|
72183
|
+
}
|
|
72184
|
+
if(bFound) {
|
|
72185
|
+
qseq = hit.hsps[0].qseq;
|
|
72186
|
+
//remove gap '-'
|
|
72187
|
+
qseq = qseq.replace(/-/g, '');
|
|
72188
|
+
break;
|
|
72168
72189
|
}
|
|
72169
|
-
}
|
|
72170
|
-
if(bFound) {
|
|
72171
|
-
qseq = hit.hsps[0].qseq;
|
|
72172
|
-
//remove gap '-'
|
|
72173
|
-
qseq = qseq.replace(/-/g, '');
|
|
72174
|
-
break;
|
|
72175
|
-
}
|
|
72176
72190
|
}
|
|
72177
72191
|
if(qseq !== undefined) me.cfg.query_id = qseq;
|
|
72178
72192
|
ic.inputid = me.cfg.query_id + '_' + me.cfg.blast_rep_id;
|