Skip to content

Commit

Permalink
fix test studies and unittests
Browse files Browse the repository at this point in the history
  • Loading branch information
Sander Rodenburg committed Aug 28, 2020
1 parent 7d21351 commit 98fd51f
Show file tree
Hide file tree
Showing 13 changed files with 31 additions and 23 deletions.
2 changes: 1 addition & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ script:
- |
if [[ "${TEST}" == python-validator ]]
then
docker run -v ${PWD}:/cbioportal python:3.4 /bin/sh -c '
docker run -v ${PWD}:/cbioportal python:3.6 /bin/sh -c '
cd /cbioportal &&
pip install -r requirements.txt &&
export PYTHONPATH=/cbioportal/core/src/main/scripts &&
Expand Down
1 change: 1 addition & 0 deletions core/src/test/scripts/system_tests_validate_studies.py
Original file line number Diff line number Diff line change
Expand Up @@ -79,6 +79,7 @@ def test_exit_status_failure(self):
exit_status = validateStudies.main(args)
self.assertEqual(1, exit_status)

@unittest.skip("Study test_data/study_es_invalid is not implemented")
def test_exit_status_invalid(self):
"""test to fail: study directory not existing, so cannot run validation, expected exit_status = 1."""

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,4 @@ cancer_study_identifier: study_es_0
stable_id: study_es_0_sequenced
case_list_name: Samples profiled for mutations
case_list_description: This is this case list that contains all samples that are profiled for mutations.
case_list_ids: TCGA-A1-A0SB-01 TCGA-A1-A0SK-01 TCGA-A2-A04P-01 TCGA-A2-A0CM-01 TCGA-AR-A1AR-01 TCGA-B6-A0I6-01 TCGA-B6-A0WX-01 TCGA-BH-A0E0-01 TCGA-BH-A0HL-01 TCGA-BH-A18K-01 TCGA-BH-A18V-01 TCGA-BH-A1F0-01 TCGA-GI-A2C8-01 TEST_SAMPLE_1 TEST_SAMPLE_2 TEST_SAMPLE_3 TEST_SAMPLE_4 TEST_SAMPLE_5 TEST_SAMPLE_6 TEST_SAMPLE_10 TEST_SAMPLE_11 TEST_SAMPLE_12 TEST_SAMPLE_13 TEST_SAMPLE_14 TEST_SAMPLE_15 TEST-A2B8-01 TEST-A2FF-01
case_list_ids: TCGA-A1-A0SB-01 TCGA-A1-A0SB-02 TCGA-A1-A0SK-01 TCGA-A2-A04P-01 TCGA-A2-A0CM-01 TCGA-AR-A1AR-01 TCGA-B6-A0I6-01 TCGA-B6-A0WX-01 TCGA-BH-A0E0-01 TCGA-BH-A0HL-01 TCGA-BH-A18K-01 TCGA-BH-A18V-01 TCGA-BH-A1F0-01 TCGA-GI-A2C8-01 TEST_SAMPLE_1 TEST_SAMPLE_2 TEST_SAMPLE_3 TEST_SAMPLE_4 TEST_SAMPLE_5 TEST_SAMPLE_6 TEST_SAMPLE_10 TEST_SAMPLE_11 TEST_SAMPLE_12 TEST_SAMPLE_13 TEST_SAMPLE_14 TEST_SAMPLE_15 TEST-A2B8-01 TEST-A2FF-01
Original file line number Diff line number Diff line change
Expand Up @@ -578,6 +578,7 @@ TCGA-D8-A1JF TCGA-D8-A1JF-01 NA
TCGA-D8-A1JG TCGA-D8-A1JG-01 NA
TCGA-D8-A1XS TCGA-D8-A1XS-01 NA
TCGA-A1-A0SB TCGA-A1-A0SB-01 NA
TCGA-A1-A0SB TCGA-A1-A0SB-02 NA
TCGA-A1-A0SF TCGA-A1-A0SF-01 NA
TCGA-A1-A0SG TCGA-A1-A0SG-01 NA
TCGA-A1-A0SI TCGA-A1-A0SI-01 NA
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
SAMPLE_ID mutations gistic
TCGA-A1-A0SB-01 TESTPANEL1 TESTPANEL1
TCGA-A1-A0SB-02 TESTPANEL2 NA
TEST-A2B8-01 TESTPANEL1 TESTPANEL1
TEST-A2FF-01 TESTPANEL1 TESTPANEL1
TCGA-GI-A2C8-01 TESTPANEL1 TESTPANEL1
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
stable_id: TESTPANEL1
description: Example gene panel meta file for testing purposes.
gene_list: ABLIM1 ADAMTS20 CADM2 DTNB KAT2A MSH3 MYB NPIPB15 OTOR P2RY10
gene_list: BRCA2 ATM BRCA1 TP53 OR11H1 TMEM247 ABLIM1 ADAMTS20 CADM2 DTNB KAT2A MSH3 MYB NPIPB15 OTOR P2RY10 ACPP
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
stable_id: TESTPANEL2
description: Example gene panel meta file for testing purposes.
gene_list: CADM2 DTNB KAT2A MSH3 MYB NPIPB15 OTOR P2RY10 FGFR3 PIEZO1
gene_list: CADM2 DTNB KAT2A MSH3 MYB NPIPB15 OTOR P2RY10 FGFR3 PIEZO1 ACPP
Original file line number Diff line number Diff line change
@@ -1,15 +1,13 @@
index chromosome region_start region_end peak_start peak_end enlarged_peak_start enlarged_peak_end n_genes_in_region genes_in_region n_genes_in_peak genes_in_peak n_genes_on_chip genes_on_chip top 3 amp cytoband q_value
2 1 85980350 86006717 85988564 85991712 85980350 85998036 1 DDAH1, 1 DDAH1, 1 1p22.3 4.1251e-13
5 3 14688875 15111449 14857093 14909013 14687312 15109822 5 NR2C2,CCDC174,MRPS25,C3orf20,FGD5, 1 FGD5, 1 3p25.1 0.030045
6 4 73398680 75049763 73931526 73935908 73825386 74269277 6 SNORA3,RNU6ATAC5P,RNU4ATAC9P,ANKRD17,COX18, 2 ANKRD17,COX18, 1 4q13.3 0.0030828
8 6 105104338 108701250 107215848 107241341 107206929 107289865 1 NA 1 NA 1 6q21 8.7327e-14
6 4 73398680 75049763 73931526 73935908 73825386 74269277 6 RNU6ATAC5P,RNU4ATAC9P,ANKRD17,COX18, 2 ANKRD17,COX18, 1 4q13.3 0.0030828
10 8 33706219 145232496 37550875 37551406 37492872 37602218 2 ZNF703,ERLIN2, 1 ZNF703, 1 8p11.23 1.7328e-96
11 8 33706219 145232496 128754837 128754871 128676131 128769210 1 MYC, 0 [MYC] 1 8q24.21 8.6006e-92
12 8 33706219 145232496 42199435 42201087 42155830 42256326 4 IKBKB,DKK4, 1 1 8p11.21 9.7333e-35
14 10 79776759 82012954 80797439 80824689 80495602 82012099 8 LINC00857,PLAC9|ENSG00000dummy.1,MBL1P,NUTM2E,NUTM2B,SFTPA1,ANXA11,SFTPD, 0 [ZMIZ1] 1 10q22.3 9.2757e-05
21 14 37583259 38414817 38049107 38056423 37950983 38203446 4 SNORA42,TTC6,FOXA1,MIPOL1, 1 FOXA1, 1 14q21.1 0.001442
21 14 37583259 38414817 38049107 38056423 37950983 38203446 4 TTC6,FOXA1,MIPOL1, 1 FOXA1, 1 14q21.1 0.001442
22 15 87471637 101884307 99464668 99477414 99082004 99605682 3 MIR4714,IGF1R,PGPEP1L, 1 IGF1R, 1 15q26.3 1.5812e-12
23 17 34944593 39348125 37863585 37870539 37796212 37876818 6 TCAP,ERBB2,STARD3,PPP1R1B,PGAP3, 1 ERBB2, 1 17q12 8.5344e-137
24 17 45763005 80917016 57929232 57930646 57922442 57943519 1 TUBD1, 0 [VMP1] 1 17q23.1 7.6344e-83
25 17 20903776 20926325 20909644 20914635 20804010 21012523 1 NA, 1 NA, 1 17p11.2 0.14805
29 20 44878266 62219648 52250820 52275163 52163167 52364760 1 ZNF217, 0 [ZNF217] 1 20q13.2 2.1378e-48
Loading

0 comments on commit 98fd51f

Please sign in to comment.