Skip to content

Commit

Permalink
Check for platform in category code for gene expression data loading
Browse files Browse the repository at this point in the history
  • Loading branch information
Charlotte Raillere authored and Charlotte Raillere committed Jun 25, 2013
1 parent 6533c74 commit 52636c5
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions Postgres/GPL 1.0/TM_CZ/I2B2_PROCESS_MRNA_DATA.sql
Original file line number Diff line number Diff line change
Expand Up @@ -233,6 +233,20 @@ BEGIN
select tm_cz.cz_end_audit (jobID, 'FAIL') into rtnCd;
return -16;
end if;
-- check if there is the PLATFORM property for all category codes
select count(*) into pCount
from tm_lz.lt_src_mrna_subj_samp_map
where category_cd not like '%PLATFORM%';
if pCount > 0 then
select tm_cz.cz_write_audit(jobId,databaseName,procedureName,'Category code does not contain PLATFORM property',0,pCount,'Done') into rtnCd;
select tm_cz.cz_error_handler (jobID, procedureName, '-1', 'Application raised error') into rtnCd;
select tm_cz.cz_end_audit (jobID, 'FAIL') into rtnCd;
return -16;
end if;
-- Get root_node from topNode
Expand Down

0 comments on commit 52636c5

Please sign in to comment.