diff --git a/sql/parameters_results_model.sql b/sql/parameters_calls_model.sql similarity index 100% rename from sql/parameters_results_model.sql rename to sql/parameters_calls_model.sql diff --git a/sql/parameters_calls_test_model.sql b/sql/parameters_calls_test_model.sql new file mode 100644 index 0000000..6b87ed4 --- /dev/null +++ b/sql/parameters_calls_test_model.sql @@ -0,0 +1,55 @@ +CREATE TABLE IF NOT EXISTS TEST_PARAMETERS ( + id SERIAL PRIMARY KEY, + mapp_thresh TEXT, + cov_thresh_from TEXT, + cov_thresh_to TEXT, + length_thresh_from TEXT, + length_thresh_to TEXT, + gc_thresh_from TEXT, + gc_thresh_to TEXT, + K_from TEXT, + K_to TEXT, + lmax TEXT +); + +INSERT INTO TEST_PARAMETERS VALUES (1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11); +INSERT INTO TEST_PARAMETERS VALUES (2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12); +INSERT INTO TEST_PARAMETERS VALUES (3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13); +INSERT INTO TEST_PARAMETERS VALUES (4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14); +INSERT INTO TEST_PARAMETERS VALUES (5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15); +INSERT INTO TEST_PARAMETERS VALUES (6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16); +INSERT INTO TEST_PARAMETERS VALUES (7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17); +INSERT INTO TEST_PARAMETERS VALUES (8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18); +INSERT INTO TEST_PARAMETERS VALUES (9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19); +INSERT INTO TEST_PARAMETERS VALUES (10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20); +INSERT INTO TEST_PARAMETERS VALUES (11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21); +INSERT INTO TEST_PARAMETERS VALUES (12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22); +INSERT INTO TEST_PARAMETERS VALUES (13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23); +INSERT INTO TEST_PARAMETERS VALUES (14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24); +INSERT INTO TEST_PARAMETERS VALUES (15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25); +INSERT INTO TEST_PARAMETERS VALUES (16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26); +INSERT INTO TEST_PARAMETERS VALUES (17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27); +INSERT INTO TEST_PARAMETERS VALUES (18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28); +INSERT INTO TEST_PARAMETERS VALUES (19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29); +INSERT INTO TEST_PARAMETERS VALUES (20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30); + +CREATE TABLE IF NOT EXISTS TEST_CALLS ( + id SERIAL PRIMARY KEY, + parameters_id INT, + sample_name TEXT, + chr TEXT, + cnv TEXT, + st_bp TEXT, + ed_bp TEXT, + length_kb TEXT, + st_exon TEXT, + ed_exon TEXT, + raw_cov TEXT, + norm_cov TEXT, + copy_no TEXT, + lratio TEXT, + mBIC TEXT, + FOREIGN KEY(parameters_id) REFERENCES TEST_PARAMETERS(id) +); + +INSERT INTO TEST_CALLS VALUES (1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15);