Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
xiaoranzhou committed Jul 9, 2024
1 parent 10556e8 commit 3e6a2ef
Showing 1 changed file with 31 additions and 7 deletions.
38 changes: 31 additions & 7 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -205,9 +205,10 @@
treat-xrefs-as-equivalent: NCBITaxon
treat-xrefs-as-equivalent: NCIT
treat-xrefs-as-equivalent: NFDI4PSO
remark: coverage: ENA checkilist definition
remark: creator: Xiaoran Zhou <x.zhou<-at->fz-juelich.de>
remark: curator: Xiaoran Zhou <x.zhou<-at->fz-juelich.de>
!remark: coverage: ENA checkilist definition
!remark: creator: Xiaoran Zhou <x.zhou<-at->fz-juelich.de>
!remark: curator: Xiaoran Zhou <x.zhou<-at->fz-juelich.de>
!remark: first tree numbers of the IDs are checklsit numbers, and last 4 numbers are the term ids
ontology: enacl
`;

Expand All @@ -222,6 +223,20 @@
[Term]
id: ENACL:0`+checklistNo.slice(2)+`
name: `+checklistNo+`
def: " `+list1.querySelector("DESCRIPTOR").querySelector("LABEL").innerHTML+`"
[Term]
id: ENACL:1000001
name: Mandatory
def: " `+list1.querySelector("DESCRIPTOR").querySelector("LABEL").innerHTML+`"
[Term]
id: ENACL:1000002
name: Recommended
def: " `+list1.querySelector("DESCRIPTOR").querySelector("LABEL").innerHTML+`"
[Term]
id: ENACL:1000003
name: Optional
def: " `+list1.querySelector("DESCRIPTOR").querySelector("LABEL").innerHTML+`"
`
const list2 = Array.prototype.slice.call(list1.querySelectorAll("FIELD"));
Expand All @@ -231,6 +246,7 @@
const description = element.querySelector("DESCRIPTION").innerHTML;
const mandatory = element.querySelector("MANDATORY").innerHTML;
var units;
const ontId = enaTerm2Ont(label, id1, checklistNo);
try{
units = element.querySelector("UNITS").querySelector("UNIT").innerHTML;
}catch(e){units = "no unit"; }
Expand All @@ -249,8 +265,12 @@
id: `+ontid+`
name: `+label+`
def: " `+description.replaceAll('"','\\"')+`"
xref: `+ ontId+`
comment: `+ "\t mandatory: "+ mandatory+".\t unit:"+ units+".\t field type: "+fieldType+".\t validation: "+fieldValidate.replaceAll(/(?:\r\n|\r|\n)/g, "").replace(/(?:\r\n|\r|\n)/g, "").replaceAll("{","\\{").replaceAll("}","\\}")+"\n"+`
subset: samples
comment: `+ "\t mandatory: "+ mandatory+".\t unit:"+ units+".\t field type: "+fieldType+".\t validation: "+fieldValidate.replaceAll(/(?:\r\n|\r|\n)/g, "").replace(/(?:\r\n|\r|\n)/g, "").replaceAll("{","\\{").replaceAll("}","\\}")+"\n"
`

// label+"\t"+ mandatory+"\t"+ units+"\t"+fieldType+"\t"+fieldValidate.replace(/(?:\r\n|\r|\n)/g, "").replace(/(?:\r\n|\r|\n)/g, "")+"\n"

Expand Down Expand Up @@ -746,8 +766,11 @@
<a id="metadata1" class="dropdown-item" target=”_blank” href="https://github.com/xiaoranzhou/ena2swate">github source code</a>
</li>
<li>
<a id="Ontology" class="dropdown-item" target=”_blank” href="https://docs.google.com/spreadsheets/d/1h6nOgM0NHYJFwNEbiKgqNIbHF1UE2NoEFw1SqVD29Yw">Ontology Mapping</a>
</li>
<a id="Ontology" class="dropdown-item d-none" target=”_blank” href="https://docs.google.com/spreadsheets/d/1h6nOgM0NHYJFwNEbiKgqNIbHF1UE2NoEFw1SqVD29Yw">Ontology Mapping</a>
</li>
<li>
<a id="obo" class="dropdown-item" target=”_blank” onclick="ena2ont(0, document.getElementById('checkDataList0').value.split(' ')[0])" >download obo</a>
</li>
</ul>
</div>

Expand All @@ -762,7 +785,8 @@
<a id="metadata2" class="dropdown-item" target=”_blank” href="https://github.com/xiaoranzhou/ena2swate">github source code</a>
</li>
<li>
<a id="Ontology" class="dropdown-item" target=”_blank” href="https://docs.google.com/spreadsheets/d/1h6nOgM0NHYJFwNEbiKgqNIbHF1UE2NoEFw1SqVD29Yw">Ontology Mapping</a>
<a id="obo" class="dropdown-item" target=”_blank” onclick="ena2ont(0, document.getElementById('checkDataList0').value.split(' ')[0])" >download obo</a>

</li>

</ul>
Expand Down

0 comments on commit 3e6a2ef

Please sign in to comment.