|
@@ -138,10 +138,12 @@ const getAccessFromGene = (idmappingPath, geneName) => __awaiter(void 0, void 0,
|
|
|
});
|
|
});
|
|
|
const getInteractionsFromEntry = (json) => __awaiter(void 0, void 0, void 0, function* () {
|
|
const getInteractionsFromEntry = (json) => __awaiter(void 0, void 0, void 0, function* () {
|
|
|
const blaskList = ['DNA', 'PHOSPHOSERINE', 'MOTIFS', 'INFECTION', 'PROTEIN', 'PROTEINS', 'GAMMA-SECRETASE', 'CALCIUM',
|
|
const blaskList = ['DNA', 'PHOSPHOSERINE', 'MOTIFS', 'INFECTION', 'PROTEIN', 'PROTEINS', 'GAMMA-SECRETASE', 'CALCIUM',
|
|
|
- 'MICROBIAL', 'VIRUS', 'HEPATITIS', 'HERPES', 'SIMPLEX', 'RELATED', 'AND', 'CLATHRIN', 'WORTMANNIN'];
|
|
|
|
|
|
|
+ 'MICROBIAL', 'VIRUS', 'HEPATITIS', 'HERPES', 'SIMPLEX', 'RELATED', 'AND', 'CLATHRIN', 'WORTMANNIN',
|
|
|
|
|
+ 'NUCLEOSOME'];
|
|
|
const uniprotIDs = Array.isArray(json.entry.accession) ? json.entry.accession : [json.entry.accession];
|
|
const uniprotIDs = Array.isArray(json.entry.accession) ? json.entry.accession : [json.entry.accession];
|
|
|
// geneName
|
|
// geneName
|
|
|
- const gnT = Array.isArray(json.entry.gene.name) ? json.entry.gene.name : [json.entry.gene.name];
|
|
|
|
|
|
|
+ const gnTT = Array.isArray(json.entry.gene) ? json.entry.gene[0] : json.entry.gene;
|
|
|
|
|
+ const gnT = Array.isArray(gnTT.name) ? gnTT.name : [gnTT.name];
|
|
|
const geneName = gnT.filter((e) => e.type === 'primary').map((e) => e.value)[0];
|
|
const geneName = gnT.filter((e) => e.type === 'primary').map((e) => e.value)[0];
|
|
|
// Interactants
|
|
// Interactants
|
|
|
const jecT = Array.isArray(json.entry.comment) ? json.entry.comment : [json.entry.comment];
|
|
const jecT = Array.isArray(json.entry.comment) ? json.entry.comment : [json.entry.comment];
|