icn3d 3.28.0 → 3.28.2

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.module.js CHANGED
@@ -41691,7 +41691,7 @@ class AddTrack {
41691
41691
 
41692
41692
  async showMsaTracks(chainid, seqFirst, trackTitleArray, trackSeqArray, startpos, type, acc2exons) { let ic = this.icn3d; ic.icn3dui;
41693
41693
  //ic.startposGiSeq = undefined;
41694
- for(let i = 0, il = ic.giSeq[chainid].length; i < il; ++i) {
41694
+ for(let i = 0, il = ic.chainsSeq[chainid].length; i < il; ++i) {
41695
41695
  //let pos =(i >= ic.matchedPos[chainid] && i - ic.matchedPos[chainid] < ic.chainsSeq, [chainid].length) ? ic.chainsSeq[chainid][i - ic.matchedPos[chainid]].resi : ic.baseResi[chainid] + 1 + i;
41696
41696
  let pos = ic.ParserUtilsCls.getResi(chainid, i);
41697
41697
 
@@ -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;
@@ -41895,6 +41896,8 @@ class AddTrack {
41895
41896
  }
41896
41897
 
41897
41898
  async addExonTracks(chainid, geneid, startpos, type) { let ic = this.icn3d, me = ic.icn3dui;
41899
+ let thisClass = this;
41900
+
41898
41901
  let seqFirst, trackTitleArray = [], trackSeqArray = [];
41899
41902
 
41900
41903
  // get acclist from geneid
@@ -42003,12 +42006,14 @@ class AddTrack {
42003
42006
  ++j;
42004
42007
  }
42005
42008
 
42006
- await this.showMsaTracks(chainid, seqFirst, trackTitleArray, trackSeqArray, startpos, type, acc2exons);
42009
+ await thisClass.showMsaTracks(chainid, seqFirst, trackTitleArray, trackSeqArray, startpos, type, acc2exons);
42007
42010
 
42008
42011
  me.htmlCls.clickMenuCls.setLogCmd("add exon track | chainid " + chainid + " | geneid " + geneid + " | startpos " + startpos + " | type " + type, true);
42009
42012
  }
42010
42013
 
42011
42014
  async addMsaTracks(chainid, startpos, type, fastaList) { let ic = this.icn3d, me = ic.icn3dui;
42015
+ let thisClass = this;
42016
+
42012
42017
  let seqFirst, trackTitleArray = [], trackSeqArray = [];
42013
42018
 
42014
42019
  let fastaArray = fastaList.split('>');
@@ -42033,8 +42038,8 @@ class AddTrack {
42033
42038
  trackSeqArray.push(seq);
42034
42039
  }
42035
42040
 
42036
- await this.showMsaTracks(chainid, seqFirst, trackTitleArray, trackSeqArray, startpos, type);
42037
-
42041
+ await thisClass.showMsaTracks(chainid, seqFirst, trackTitleArray, trackSeqArray, startpos, type);
42042
+
42038
42043
  me.htmlCls.clickMenuCls.setLogCmd("add msa track | chainid " + chainid + " | startpos " + startpos + " | type " + type + " | fastaList " + fastaList , true);
42039
42044
  }
42040
42045
  }
@@ -42883,8 +42888,8 @@ class ShowAnno {
42883
42888
  // get Gene info from uniprot
42884
42889
  url = "https://rest.uniprot.org/uniprotkb/search?format=json&fields=xref_geneid,gene_names&query=" + structure;
42885
42890
  let geneData = await me.getAjaxPromise(url, 'json');
42886
- let geneId = (geneData.results[0] && geneData.results[0].uniProtKBCrossReferences[0]) ? geneData.results[0].uniProtKBCrossReferences[0].id : undefined;
42887
- let geneSymbol = (geneData.results[0] && geneData.results[0].genes[0] && geneData.results[0].genes[0].geneName) ? geneData.results[0].genes[0].geneName.value : undefined;
42891
+ let geneId = (geneData.results[0] && geneData.results[0].uniProtKBCrossReferences && geneData.results[0].uniProtKBCrossReferences[0]) ? geneData.results[0].uniProtKBCrossReferences[0].id : undefined;
42892
+ let geneSymbol = (geneData.results[0] && geneData.results[0].genes && geneData.results[0].genes[0] && geneData.results[0].genes[0].geneName) ? geneData.results[0].genes[0].geneName.value : undefined;
42888
42893
  ic.chainsGene[chnid] = {geneId: geneId, geneSymbol: geneSymbol};
42889
42894
  }
42890
42895
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "icn3d",
3
- "version": "3.28.0",
3
+ "version": "3.28.2",
4
4
  "main": "./icn3d.js",
5
5
  "exports": {
6
6
  ".": {