Skip to content

Commit 657b3c0

Browse files
committed
Fix bug reported in #92
1 parent 78a7526 commit 657b3c0

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

isatools/isajson.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ def _build_assay_graph(process_sequence=list()):
6868
status=OntologyAnnotation(
6969
name=publication_json['status']['annotationValue'],
7070
term_accession=publication_json['status']['termAccession'],
71-
term_source=publication_json['status']['termSource']
71+
term_source=term_source_dict[publication_json['status']['termSource']]
7272
)
7373
)
7474
try:
@@ -122,13 +122,13 @@ def _build_assay_graph(process_sequence=list()):
122122
for assay_json in study_json['assays']:
123123
for assay_characteristics_category_json in assay_json['characteristicCategories']:
124124
characteristic_category = OntologyAnnotation(
125+
id_=assay_characteristics_category_json['@id'],
125126
name=assay_characteristics_category_json['characteristicType']['annotationValue'],
126127
term_source=term_source_dict[assay_characteristics_category_json['characteristicType']['termSource']],
127128
term_accession=assay_characteristics_category_json['characteristicType']['termAccession'],
128129
)
129130
# study.characteristic_categories.append(characteristic_category)
130131
categories_dict[characteristic_category.id] = characteristic_category
131-
132132
for study_json in isajson['studies']:
133133
logger.debug('Start building Study object')
134134
study = Study(

0 commit comments

Comments
 (0)