Пример #1
0
 def to_min_json(self, include_description=False):
     obj_json = UpdateByJsonMixin.to_min_json(self, include_description=include_description)
     obj_json['length'] = len(self.residues)
     obj_json['is_chromosome'] = True if self.is_chromosome == 1 else False
     obj_json['centromere_start'] = self.centromere_start
     obj_json['centromere_end'] = self.centromere_end
     return obj_json
Пример #2
0
 def to_semi_json(self):
     obj_json = UpdateByJsonMixin.to_min_json(self)
     obj_json['pcl_filename'] = self.pcl_filename
     obj_json['geo_id'] = self.geo_id
     obj_json['short_description'] = self.short_description
     obj_json['condition_count'] = self.condition_count
     obj_json['reference'] = None if self.reference is None else self.reference.to_min_json()
     obj_json['tags'] = [x.tag.to_min_json() for x in self.bioitem_tags]
     obj_json['display_name'] = self.display_name.replace('.', '. ')
     return obj_json
Пример #3
0
 def to_semi_json(self):
     obj_json = UpdateByJsonMixin.to_min_json(self)
     obj_json["description"] = self.description
     return obj_json
Пример #4
0
 def to_min_json(self):
     obj_json = UpdateByJsonMixin.to_min_json(self)
     obj_json['category'] = self.category
     return obj_json
Пример #5
0
 def to_min_json(self, include_description=False):
     obj_json = UpdateByJsonMixin.to_min_json(self, include_description=include_description)
     obj_json['pubmed_id'] = self.pubmed_id
     obj_json['year'] = self.year
     return obj_json
Пример #6
0
 def to_min_json(self, include_description=False):
     obj_json = UpdateByJsonMixin.to_min_json(self, include_description=include_description)
     obj_json['class_type'] = self.class_type
     return obj_json
Пример #7
0
 def to_min_json(self, include_description=False):
     obj_json = UpdateByJsonMixin.to_min_json(self, include_description=include_description)
     obj_json['geo_id'] = self.geo_id
     return obj_json