def serialize(self, chromosome): s = container.get_serializer() return { 'id': chromosome['id'], 'name': chromosome['name'], 'synonyms': chromosome['synonyms'], 'position': chromosome['position'], }
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'], }
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'], }
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'] }
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'], }