The aim of this notebook is to:
# If executing the notebooks on `Google Colab`,uncomment the following command
# and run it to install the required python libraries. Also, make the test datasets available.
# !pip install -r requirements.txt
import isatools
import os
import sys
from isatools import isatab
with open(os.path.join('./BII-S-3', 'i_gilbert.txt')) as fp:
ISA = isatab.load(fp)
ISA.studies[0].description
[protocol.description for protocol in ISA.studies[0].protocols]
[f'{assay.measurement_type.term} using {assay.technology_type.term}' for assay in ISA.studies[0].assays]
ISA Study Source
Material:¶[source.name for source in ISA.studies[0].sources]
ISA Study Source property
:¶# here, we get all the characteristics of the first Source object
first_source_characteristics = ISA.studies[0].sources[0].characteristics
first_source_characteristics[0].category.term
value
associated with that first ISA Study Source property
:¶first_source_characteristics[0].value.term
ISA Study Source
¶[char.category.term for char in first_source_characteristics]
[char.value for char in first_source_characteristics]
my_json_report_bii_i_1 = isatab.validate(open(os.path.join('./BII-I-1/', 'i_investigation.txt')))
my_json_report_bii_s_3 = isatab.validate(open(os.path.join('./BII-S-3/', 'i_gilbert.txt')))
my_json_report_bii_s_4 = isatab.validate(open(os.path.join('./BII-S-4/', 'i_investigation.txt')))
my_json_report_bii_s_7 = isatab.validate(open(os.path.join('./BII-S-7/', 'i_matteo.txt')))
my_json_report_bii_s_7
Validation Report
shows that No Error has been loggedstudy group
information reported on both study and assay files. If ISA Factor Value[]
fields are found present in the ISA Study
or ISA Assay
tables, the validator will try to identify the set of unique Factor Value
combination defining a Study Group
.Factor Value
are found in a ISA Study
or Assay
table, the value is left to its default value: -1, which means that No Study Group
have been found.i_investigation.txt
file of the submission¶my_json_report_bii_s_5 = isatab.validate(open(os.path.join('./BII-S-5/', 'i_investigation.txt')))
my_json_report_bii_s_5["errors"]
Publication list. vs Publication List