Commit 4d7cbbf4 authored by Vincent Michel's avatar Vincent Michel
Browse files

[schema] Add Chip entity type, closes #3920723

parent f05ff0edc003
......@@ -18,3 +18,8 @@
add_relation_definition('GenomicMeasure', 'left_gene', 'Gene')
add_relation_definition('GenomicMeasure', 'right_gene', 'Gene')
drop_attribute('GenomicMeasure', 'chip_serialnum')
add_attribute('GenomicMeasure', 'column_on_chip')
add_attribute('GenomicMeasure', 'row_on_chip')
add_entity_type('Chip')
drop_relation_definition('GenomicMeasure', 'plaform', 'GenomicPlaform')
......@@ -123,10 +123,11 @@ class GenomicMeasure(EntityType):
""" A genomic measure """
type = String(maxsize=256, required=True, indexed=True)
format = String(maxsize=128, indexed=True)
chip_serialnum = Int()
completed = Boolean(indexed=True)
valid = Boolean(indexed=True)
platform = SubjectRelation('GenomicPlatform', cardinality='?*', inlined=True)
chip = SubjectRelation('Chip', cardinality='?*', inlined=True)
column_on_chip = Int()
row_on_chip = Int()
class GenomicPlatform(EntityType):
......@@ -134,6 +135,11 @@ class GenomicPlatform(EntityType):
related_snps = SubjectRelation('Snp', cardinality='**')
class Chip(EntityType):
barcode = Int(required=True, unique=True)
platform = SubjectRelation('GenomicPlatform', cardinality='1*', inlined=True)
class ColumnRef(EntityType):
""" Type is channel for transcriptom measure, lane for NGS measure.
When type is channel, name will be red or green
......
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