icn3d 3.31.8 → 3.31.9
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 +24 -12
- package/icn3d.min.js +2 -2
- package/icn3d.module.js +24 -12
- package/package.json +1 -1
package/icn3d.module.js
CHANGED
|
@@ -45326,7 +45326,7 @@ class AddTrack {
|
|
|
45326
45326
|
|
|
45327
45327
|
getExonHtml(exonIndex, colorGradient, from, to, genomeRange, chainid, simpTitle) { let ic = this.icn3d; ic.icn3dui;
|
|
45328
45328
|
// return '<div style="display:inline-block; color:white!important; width:' + Math.round(ic.seqAnnWidth *(to - from + 1) /(ic.maxAnnoLength + ic.nTotalGap)) + 'px;" class="icn3d-seqTitle icn3d-link icn3d-blue" domain="' + (exonIndex + 1) + '" from="' + from + '" to="' + to + '" setname="' + simpTitle + ', Exon ' + (exonIndex + 1) + '" title="Exon ' + (exonIndex + 1) + ': ' + genomeRange + ' genomic interval" anno="sequence" chain="' + chainid + '"><div style="height: 12px; border: 1px solid #000; background: linear-gradient(to right, ' + colorGradient + ');"></div></div>';
|
|
45329
|
-
return '<div style="display:inline-block; color:white!important; width:' + Math.round(ic.seqAnnWidth *(to - from + 1) /(ic.maxAnnoLength + ic.nTotalGap)) + 'px;" class="icn3d-seqTitle icn3d-link icn3d-blue" domain="' + (exonIndex + 1) + '" from="' + from + '" to="' + to + '" setname="' + simpTitle + ',
|
|
45329
|
+
return '<div style="display:inline-block; color:white!important; width:' + Math.round(ic.seqAnnWidth *(to - from + 1) /(ic.maxAnnoLength + ic.nTotalGap)) + 'px;" class="icn3d-seqTitle icn3d-link icn3d-blue" domain="' + (exonIndex + 1) + '" from="' + from + '" to="' + to + '" setname="' + simpTitle + ', ' + (exonIndex + 1) + '" title="Exon: ' + genomeRange + ' genomic interval" anno="sequence" chain="' + chainid + '"><div style="height: 12px; border: 1px solid #000; background: linear-gradient(to right, ' + colorGradient + ');"></div></div>';
|
|
45330
45330
|
}
|
|
45331
45331
|
|
|
45332
45332
|
getExonColor(start, end, pos) { let ic = this.icn3d; ic.icn3dui;
|
|
@@ -71392,7 +71392,7 @@ class Dssp {
|
|
|
71392
71392
|
ic.ref2igtype['LaminAC_1ifrA_human'] = 'Lamin';
|
|
71393
71393
|
ic.ref2igtype['MHCIa_7phrH_human_C1'] = 'IgC1';
|
|
71394
71394
|
ic.ref2igtype['MPT63_1lmiA_bacteria'] = 'IgE';
|
|
71395
|
-
ic.ref2igtype['NaCaExchanger_2fwuA_dog_n2'] = '
|
|
71395
|
+
ic.ref2igtype['NaCaExchanger_2fwuA_dog_n2'] = 'IgFN3-like';
|
|
71396
71396
|
ic.ref2igtype['NaKATPaseTransporterBeta_2zxeB_spurdogshark'] = 'IgE';
|
|
71397
71397
|
ic.ref2igtype['ORF7a_1xakA_virus'] = 'ORF';
|
|
71398
71398
|
ic.ref2igtype['PD1_4zqkB_human_V'] = 'IgV';
|
|
@@ -72119,14 +72119,16 @@ class Dssp {
|
|
|
72119
72119
|
let resiDistToC = (bCpstrand) ? parseInt(CpAtom.resi) - parseInt(CAtom.resi) : parseInt(DAtom.resi) - parseInt(CAtom.resi);
|
|
72120
72120
|
let resiDistToE = (bCpstrand) ? parseInt(EAtom.resi) - parseInt(CpAtom.resi) : parseInt(EAtom.resi) - parseInt(DAtom.resi);
|
|
72121
72121
|
|
|
72122
|
+
let adjust = 1;
|
|
72123
|
+
|
|
72122
72124
|
if(bCpstrand) {
|
|
72123
|
-
if(distToC > distToE || (distToC == distToE && resiDistToC > resiDistToE)) { // rename C' to D
|
|
72125
|
+
if(distToC > distToE + adjust || (distToC == distToE + adjust && resiDistToC > resiDistToE + adjust)) { // rename C' to D
|
|
72124
72126
|
CpToDResi.push(CpAtom.resi);
|
|
72125
72127
|
if(!me.bNode) console.log("Rename strand C' to D: distToC " + distToC + " distToE " + distToE + " resiDistToC " + resiDistToC + " resiDistToE " + resiDistToE);
|
|
72126
72128
|
}
|
|
72127
72129
|
}
|
|
72128
72130
|
else if(bDstrand) {
|
|
72129
|
-
if(distToC < distToE || (distToC == distToE && resiDistToC < resiDistToE)) { // rename D to C'
|
|
72131
|
+
if(distToC + adjust < distToE || (distToC + adjust == distToE && resiDistToC + adjust < resiDistToE)) { // rename D to C'
|
|
72130
72132
|
DToCpResi.push(DAtom.resi);
|
|
72131
72133
|
if(!me.bNode) console.log("Rename strand D to C': distToC " + distToC + " distToE " + distToE + " resiDistToC " + resiDistToC + " resiDistToE " + resiDistToE);
|
|
72132
72134
|
}
|
|
@@ -72146,7 +72148,8 @@ class Dssp {
|
|
|
72146
72148
|
|
|
72147
72149
|
seg.q_start;
|
|
72148
72150
|
let qStartInt = parseInt(seg.q_start);
|
|
72149
|
-
|
|
72151
|
+
let postfix = '';
|
|
72152
|
+
if(isNaN(seg.q_start)) postfix = seg.q_start.substr(seg.q_start.length - 1, 1);
|
|
72150
72153
|
|
|
72151
72154
|
// one item in "seq"
|
|
72152
72155
|
// q_start and q_end are numbers, but saved in string
|
|
@@ -72161,7 +72164,7 @@ class Dssp {
|
|
|
72161
72164
|
//let refnum = qStart;
|
|
72162
72165
|
let refnum = qStartInt;
|
|
72163
72166
|
|
|
72164
|
-
let refnumLabel = this.getLabelFromRefnum(refnum);
|
|
72167
|
+
let refnumLabel = this.getLabelFromRefnum(refnum, postfix);
|
|
72165
72168
|
currStrand = (refnumLabel) ? refnumLabel.replace(new RegExp(refnum,'g'), '') : undefined;
|
|
72166
72169
|
|
|
72167
72170
|
let currStrandFinal = currStrand;
|
|
@@ -72183,7 +72186,7 @@ class Dssp {
|
|
|
72183
72186
|
}
|
|
72184
72187
|
|
|
72185
72188
|
if(currStrand != currStrandFinal) {
|
|
72186
|
-
refnumLabel = this.getLabelFromRefnum(refnum, currStrandFinal);
|
|
72189
|
+
refnumLabel = this.getLabelFromRefnum(refnum, postfix, currStrandFinal);
|
|
72187
72190
|
}
|
|
72188
72191
|
|
|
72189
72192
|
let atom = ic.firstAtomObjCls.getFirstAtomObj(ic.residues[resid]);
|
|
@@ -72219,7 +72222,7 @@ class Dssp {
|
|
|
72219
72222
|
}
|
|
72220
72223
|
}
|
|
72221
72224
|
|
|
72222
|
-
getStrandFromRefnum(oriRefnum,
|
|
72225
|
+
getStrandFromRefnum(oriRefnum, finalStrand) { let ic = this.icn3d; ic.icn3dui;
|
|
72223
72226
|
let refnum = parseInt(oriRefnum);
|
|
72224
72227
|
|
|
72225
72228
|
//N-terminus = 0999-0001
|
|
@@ -72298,16 +72301,25 @@ class Dssp {
|
|
|
72298
72301
|
else if(refnum > 9900) strand = undefined;
|
|
72299
72302
|
else strand = " ";
|
|
72300
72303
|
|
|
72301
|
-
if(
|
|
72304
|
+
if(finalStrand) strand = finalStrand;
|
|
72302
72305
|
|
|
72303
72306
|
return strand
|
|
72304
72307
|
}
|
|
72305
72308
|
|
|
72306
|
-
getLabelFromRefnum(oriRefnum,
|
|
72307
|
-
let strand = this.getStrandFromRefnum(oriRefnum,
|
|
72309
|
+
getLabelFromRefnum(oriRefnum, postfix, finalStrand) { let ic = this.icn3d; ic.icn3dui;
|
|
72310
|
+
let strand = this.getStrandFromRefnum(oriRefnum, finalStrand);
|
|
72311
|
+
|
|
72312
|
+
// rename C' to D or D to C'
|
|
72313
|
+
let refnum = oriRefnum.toString();
|
|
72314
|
+
if(finalStrand == "C'" && refnum.substr(0, 1) == '6') { // previous D
|
|
72315
|
+
refnum = '4' + refnum.substr(1);
|
|
72316
|
+
}
|
|
72317
|
+
else if(finalStrand == "D" && refnum.substr(0, 1) == '4') { // previous C'
|
|
72318
|
+
refnum = '6' + refnum.substr(1);
|
|
72319
|
+
}
|
|
72308
72320
|
|
|
72309
72321
|
if(strand) {
|
|
72310
|
-
return strand +
|
|
72322
|
+
return strand + refnum + postfix;
|
|
72311
72323
|
}
|
|
72312
72324
|
else {
|
|
72313
72325
|
return undefined;
|