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

[schema] Add left/right gene for GenomicRegion, closes #3920719

parent 2918dadc8792
# -*- 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_relation_definition('GenomicMeasure', 'left_gene', 'Gene')
add_relation_definition('GenomicMeasure', 'right_gene', 'Gene')
......@@ -104,6 +104,8 @@ class GenomicRegion(EntityType):
oncogenes = SubjectRelation('Gene', cardinality='**')
atlas_genes = SubjectRelation('Gene', cardinality='**')
census_genes = SubjectRelation('Gene', cardinality='**')
left_gene = SubjectRelation('Gene', cardinality='?*', inlined=True)
right_gene = SubjectRelation('Gene', cardinality='?*', inlined=True)
class Snp(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