Skip to content

Commit

Permalink
Fix bug reported in #92
Browse files Browse the repository at this point in the history
  • Loading branch information
djcomlab committed Mar 9, 2016
1 parent 78a7526 commit 657b3c0
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions isatools/isajson.py
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ def _build_assay_graph(process_sequence=list()):
status=OntologyAnnotation(
name=publication_json['status']['annotationValue'],
term_accession=publication_json['status']['termAccession'],
term_source=publication_json['status']['termSource']
term_source=term_source_dict[publication_json['status']['termSource']]
)
)
try:
Expand Down Expand Up @@ -122,13 +122,13 @@ def _build_assay_graph(process_sequence=list()):
for assay_json in study_json['assays']:
for assay_characteristics_category_json in assay_json['characteristicCategories']:
characteristic_category = OntologyAnnotation(
id_=assay_characteristics_category_json['@id'],
name=assay_characteristics_category_json['characteristicType']['annotationValue'],
term_source=term_source_dict[assay_characteristics_category_json['characteristicType']['termSource']],
term_accession=assay_characteristics_category_json['characteristicType']['termAccession'],
)
# study.characteristic_categories.append(characteristic_category)
categories_dict[characteristic_category.id] = characteristic_category

for study_json in isajson['studies']:
logger.debug('Start building Study object')
study = Study(
Expand Down

0 comments on commit 657b3c0

Please sign in to comment.