From 2c66dbf9045600c81004e44237b71166888dd845 Mon Sep 17 00:00:00 2001 From: Xiaoran Zhou Date: Mon, 6 May 2024 18:39:52 +0200 Subject: [PATCH] update 3'PARTIAL promoter --- index.html | 25 +++++++++++++++---------- 1 file changed, 15 insertions(+), 10 deletions(-) diff --git a/index.html b/index.html index 9ef56a9..d2fc2a8 100644 --- a/index.html +++ b/index.html @@ -107,13 +107,21 @@ fetchGoogleCSV(); -function enaTerm2Ont(termName){ - console.log("termName is: " + termName) +function enaTerm2Ont(termName, id1="1" ,listId="all" ){ + //console.log("termName is: " + termName) for (const [index,element] of Object.entries(googleJSON)){ - console.log("Field Name is: " + element["Field Name"]) - if (element["Field Name"] == termName) + //console.log("Field Name is: " + element["Field Name"]); + if ((termName=="5\'_PARTIAL")||(termName=="3\'_PARTIAL") ){ + + var condition = (element["Field Name"] == termName)&&((element["Checklist"] == id1+":"+listId) ); + } else { + var condition = (element["Field Name"] == termName) ; + } + + + if (condition) { - console.log("found ontology: " + element.id) + //console.log("found 5\'_PARTIAL ontology: " +termName+ element.id); return element.id; }else{ @@ -310,7 +318,7 @@ const checkid = list1.getAttribute("accession"); const name = list1.getElementsByTagName('DESCRIPTOR')[0].getElementsByTagName('NAME')[0].innerHTML; //console.log(name); - HTMLtext += `