Commit 51713896 authored by Dimitri Papadopoulos's avatar Dimitri Papadopoulos
Browse files

[schema] SNP may be linked to many Genes, closes #3564439

Contributed by Jinpeng Li <jinpeng.li@cea.fr>
parent 907cf7fc8171
# -*- coding: utf-8 -*-
# copyright 2014 LOGILAB S.A. (Paris, FRANCE), all rights reserved.
# copyright 2014 CEA (Saclay, FRANCE), all rights reserved.
# contact http://www.logilab.fr -- mailto:contact@logilab.fr
#
# 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 <http://www.gnu.org/licenses/>.
sync_schema_props_perms(('Snp', 'gene', 'Gene'))
......@@ -111,7 +111,7 @@ class Snp(EntityType):
rs_id = String(required=True, unique=True, maxsize=16)
position = BigInt(required=True, indexed=True)
chromosome = SubjectRelation('Chromosome', cardinality='1*', inlined=True, composite='object')
gene = SubjectRelation('Gene', cardinality='?*', inlined=True, composite='object')
gene = SubjectRelation('Gene', cardinality='**', composite='object')
###############################################################################
......
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