icn3d 3.28.0 → 3.28.1
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 +10 -6
- package/icn3d.min.js +1 -1
- package/icn3d.module.js +10 -6
- package/package.json +1 -1
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.
|
|
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
|
|
|
@@ -41895,6 +41895,8 @@ class AddTrack {
|
|
|
41895
41895
|
}
|
|
41896
41896
|
|
|
41897
41897
|
async addExonTracks(chainid, geneid, startpos, type) { let ic = this.icn3d, me = ic.icn3dui;
|
|
41898
|
+
let thisClass = this;
|
|
41899
|
+
|
|
41898
41900
|
let seqFirst, trackTitleArray = [], trackSeqArray = [];
|
|
41899
41901
|
|
|
41900
41902
|
// get acclist from geneid
|
|
@@ -42003,12 +42005,14 @@ class AddTrack {
|
|
|
42003
42005
|
++j;
|
|
42004
42006
|
}
|
|
42005
42007
|
|
|
42006
|
-
await
|
|
42008
|
+
await thisClass.showMsaTracks(chainid, seqFirst, trackTitleArray, trackSeqArray, startpos, type, acc2exons);
|
|
42007
42009
|
|
|
42008
42010
|
me.htmlCls.clickMenuCls.setLogCmd("add exon track | chainid " + chainid + " | geneid " + geneid + " | startpos " + startpos + " | type " + type, true);
|
|
42009
42011
|
}
|
|
42010
42012
|
|
|
42011
42013
|
async addMsaTracks(chainid, startpos, type, fastaList) { let ic = this.icn3d, me = ic.icn3dui;
|
|
42014
|
+
let thisClass = this;
|
|
42015
|
+
|
|
42012
42016
|
let seqFirst, trackTitleArray = [], trackSeqArray = [];
|
|
42013
42017
|
|
|
42014
42018
|
let fastaArray = fastaList.split('>');
|
|
@@ -42033,8 +42037,8 @@ class AddTrack {
|
|
|
42033
42037
|
trackSeqArray.push(seq);
|
|
42034
42038
|
}
|
|
42035
42039
|
|
|
42036
|
-
await
|
|
42037
|
-
|
|
42040
|
+
await thisClass.showMsaTracks(chainid, seqFirst, trackTitleArray, trackSeqArray, startpos, type);
|
|
42041
|
+
|
|
42038
42042
|
me.htmlCls.clickMenuCls.setLogCmd("add msa track | chainid " + chainid + " | startpos " + startpos + " | type " + type + " | fastaList " + fastaList , true);
|
|
42039
42043
|
}
|
|
42040
42044
|
}
|
|
@@ -42883,8 +42887,8 @@ class ShowAnno {
|
|
|
42883
42887
|
// get Gene info from uniprot
|
|
42884
42888
|
url = "https://rest.uniprot.org/uniprotkb/search?format=json&fields=xref_geneid,gene_names&query=" + structure;
|
|
42885
42889
|
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;
|
|
42890
|
+
let geneId = (geneData.results[0] && geneData.results[0].uniProtKBCrossReferences && geneData.results[0].uniProtKBCrossReferences[0]) ? geneData.results[0].uniProtKBCrossReferences[0].id : undefined;
|
|
42891
|
+
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
42892
|
ic.chainsGene[chnid] = {geneId: geneId, geneSymbol: geneSymbol};
|
|
42889
42893
|
}
|
|
42890
42894
|
}
|