Storing depletion screen data require a DB update, with the following SQL script.
set search_path = cellline,public;
DROP table PROCESSEDDEPLETIONSCORE CASCADE;
DROP table DEPLETIONSCREEN;
create table DEPLETIONSCREEN (
DEPLETIONSCREEN TEXT not null,
DEPLETIONSCREENDESCRIPTION TEXT null,
constraint PK_DEPLETIONSCREEN primary key (DEPLETIONSCREEN)
);
create table PROCESSEDDEPLETIONSCORE (
ENSG TEXT not null,
CELLLINENAME TEXT not null,
DEPLETIONSCREEN TEXT not null,
RSA FLOAT4 null,
ATARIS FLOAT4 null,
constraint PK_PROCESSEDDEPLETIONSCORE primary key (CELLLINENAME, ENSG, DEPLETIONSCREEN)
);
alter table PROCESSEDDEPLETIONSCORE
add constraint FK_PROCESSE_REFERENCE_DEPLETIO foreign key (DEPLETIONSCREEN)
references DEPLETIONSCREEN (DEPLETIONSCREEN)
on delete restrict on update restrict;
alter table PROCESSEDDEPLETIONSCORE
add constraint FK_PROCESSE_REFERENCE_GENE foreign key (ENSG)
references GENE (ENSG)
on delete restrict on update restrict;
alter table PROCESSEDDEPLETIONSCORE
add constraint FK_PROCESSED_DEPLETION_CELLLINE foreign key (CELLLINENAME)
references CELLLINE (CELLLINENAME)
on delete restrict on update restrict;
CREATE INDEX idx_processeddepletionscore ON cellline.processeddepletionscore(ensg);
CREATE VIEW cellline.processeddepletionscoreview AS
SELECT d.ensg, symbol, celllinename, depletionscreen, rsa, ataris FROM cellline.processeddepletionscore d
JOIN gene g ON (d.ENSG = g.ENSG);
CREATE VIEW cellline.tdp_depletionscreen AS
SELECT depletionscreen, depletionscreendescription
FROM cellline.depletionscreen;
CREATE VIEW cellline.tdp_depletionscore AS
SELECT ensg, symbol, celllinename, depletionscreen, rsa, ataris
FROM cellline.processeddepletionscoreview ;
to the gene and cell line list.