Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update Create_db_and_tables.py #1

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
42 changes: 0 additions & 42 deletions Create_db_and_tables.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,48 +20,6 @@
)
''',
'''
CREATE TABLE studies (
study_id TEXT PRIMARY KEY,
study_category TEXT,
study_name TEXT,
link TEXT
)
''',
'''
CREATE TABLE genes (
gene_id TEXT PRIMARY KEY,
species_id TEXT,
FOREIGN KEY (species_id) REFERENCES species (species_id)
)
''',
'''
CREATE TABLE runs (
run_id TEXT PRIMARY KEY,
condition TEXT,
study_id TEXT,
metadata TEXT,
FOREIGN KEY (study_id) REFERENCES studies (study_id)
)
''',
'''
CREATE TABLE study_species (
study_id TEXT,
species_id TEXT,
FOREIGN KEY (study_id) REFERENCES studies (study_id),
FOREIGN KEY (species_id) REFERENCES species (species_id)
)
''',
'''
CREATE TABLE run_genes (
run_id TEXT,
gene_id TEXT,
count_value FLOAT,
tpm_value FLOAT,
FOREIGN KEY (run_id) REFERENCES runs (run_id),
FOREIGN KEY (gene_id) REFERENCES genes (gene_id)
)
''',
'''
CREATE TABLE differential_expression (
gene_id TEXT,
log2FoldChange FLOAT,
Expand Down