Commit d44ace10 authored by Vincent Michel's avatar Vincent Michel
Browse files

[schema] Update Mutation and GenomicMeasure

parent ab6b2c3503a4
# -*- coding: utf-8 -*-
# copyright 2014 LOGILAB S.A. (Paris, FRANCE), all rights reserved.
# copyright 2014 CEA (Saclay, FRANCE), all rights reserved.
# contact --
# This program is free software: you can redistribute it and/or modify it under
# the terms of the GNU Lesser General Public License as published by the Free
# Software Foundation, either version 2.1 of the License, or (at your option)
# any later version.
# This program is distributed in the hope that it will be useful, but WITHOUT
# ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
# FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more
# details.
# You should have received a copy of the GNU Lesser General Public License along
# with this program. If not, see <>.
add_attribute('Mutation', 'classification_variant')
add_attribute('Mutation', 'dbnsp')
add_attribute('Mutation', 'amplicon')
add_attribute('GenomicMeasure', 'conclusion')
add_attribute('GenomicMeasure', 'healthy_tissue')
......@@ -45,6 +45,9 @@ class Mutation(EntityType):
ploidy = String(vocabulary=('Het', 'Hom'))
valid = Boolean(indexed=True)
biological_classification = String(maxsize=256) # Classification bio / annotation
classification_variant = String(maxsize=256)
dbsnp = String(maxsize=128)
amplicon = String(maxsize=128)
classification_type = String(maxsize=256) # Type, second time
conclusions = String(maxsize=2048) # Concl
related_measure = SubjectRelation('GenomicMeasure', cardinality='?*', inlined=True, composite='object')
......@@ -128,6 +131,8 @@ class GenomicMeasure(EntityType):
chip = SubjectRelation('Chip', cardinality='?*', inlined=True)
column_on_chip = Int()
row_on_chip = Int()
conclusion = String(fulltextindexed=True)
healthy_tissue = Boolean(default=False)
class GenomicPlatform(EntityType):
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment