From c17457e623afe00814b541f19dbede5fcbc399aa Mon Sep 17 00:00:00 2001 From: alapendr <audrey.lapendry@ens-lyon.fr> Date: Thu, 17 Sep 2020 14:24:16 +0200 Subject: [PATCH] db_utils/db_creation.py: modifications to add the distance information in the tables cin_gene_interaction and cin_exon_interaction --- src/db_utils/db_creation.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/db_utils/db_creation.py b/src/db_utils/db_creation.py index ccfed76e..07900827 100755 --- a/src/db_utils/db_creation.py +++ b/src/db_utils/db_creation.py @@ -124,6 +124,7 @@ def create_cin_exon_interaction_table(conn: sqlite3.Connection) -> None: [exon2] VARCHAR(30) NOT NULL, [id_project] INT NOT NULL, [level] VARCHAR(25) NOT NULL, + [distance] VARCHAR(30), PRIMARY KEY ([id]), FOREIGN KEY ([exon1]) REFERENCES cin_exon([id]), FOREIGN KEY ([exon2]) REFERENCES cin_exon([id]), @@ -146,6 +147,7 @@ def create_cin_gene_interaction_table(conn: sqlite3.Connection) -> None: [gene2] INT NOT NULL, [id_project] INT NOT NULL, [level] VARCHAR(25) NOT NULL, + [distance] VARCHAR(30), PRIMARY KEY ([id]), FOREIGN KEY ([gene1]) REFERENCES cin_gene([id]), FOREIGN KEY ([gene2]) REFERENCES cin_gene([id]), -- GitLab