Пример #1
0
 def serialize(self, chromosome):
     s = container.get_serializer()
     return {
         'id': chromosome['id'],
         'name': chromosome['name'],
         'synonyms': chromosome['synonyms'],
         'position': chromosome['position'],
     }
Пример #2
0
 def serialize(self, exon):
     s = container.get_serializer()
     return {
         'id': exon['id'],
         'name': exon['name'],
         'synonyms': exon['synonyms'],
         'position': exon['position'],
         'is_somatic': exon['is_somatic'],
     }
Пример #3
0
 def serialize(self, treatment):
     s = container.get_serializer()
     return {
         'id': treatment['id'],
         'name': treatment['name'],
         'synonyms': treatment['synonyms'],
         'position': treatment['position'],
         'is_somatic': treatment['is_somatic'],
     }
Пример #4
0
 def serialize(self, gene):
     s = container.get_serializer()
     return {
         'id': gene['id'],
         'name': gene['name'],
         'description': gene['description'],
         'position': gene['position'],
         'is_reversed': gene['is_reversed'],
         'biotype': gene['biotype'],
         'havana_gene': gene['havana_gene']
     }
Пример #5
0
 def serialize(self, variation):
     s = container.get_serializer()
     return {
         'id': variation['id'],
         'name': variation['name'],
         'synonym': variation['synonym'],
         'minor_allele_frequency': variation['position'],
         'evidence_attributes': variation['evidence_attributes'],
         'ancestral_allele': variation['ancestral_allele'],
         'minor_allele_count': variation['minor_allele_count'],
         'clinic_significance': variation['clinic_significance'],
         'minor_allele': variation['minor_allele'],
         'effects': variation['effects'],
     }