-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
34 changed files
with
118 additions
and
14 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file added
BIN
+20.1 KB
tests/raremetal/test_tut_rm_rvt_cov/inputs/STUDY1.QT1.singlevar.cov.txt.gz
Binary file not shown.
Binary file added
BIN
+4.77 KB
tests/raremetal/test_tut_rm_rvt_cov/inputs/STUDY1.QT1.singlevar.cov.txt.gz.tbi
Binary file not shown.
Binary file added
BIN
+20.4 KB
tests/raremetal/test_tut_rm_rvt_cov/inputs/STUDY1.QT1.singlevar.score.txt.gz
Binary file not shown.
Binary file added
BIN
+6.75 KB
tests/raremetal/test_tut_rm_rvt_cov/inputs/STUDY1.QT1.singlevar.score.txt.gz.tbi
Binary file not shown.
Binary file added
BIN
+22 KB
tests/raremetal/test_tut_rm_rvt_cov/inputs/STUDY1.rvtests.MetaCov.assoc.gz
Binary file not shown.
Binary file added
BIN
+4.83 KB
tests/raremetal/test_tut_rm_rvt_cov/inputs/STUDY1.rvtests.MetaCov.assoc.gz.tbi
Binary file not shown.
Binary file added
BIN
+19.4 KB
tests/raremetal/test_tut_rm_rvt_cov/inputs/STUDY1.rvtests.MetaScore.assoc.gz
Binary file not shown.
Binary file added
BIN
+6.74 KB
tests/raremetal/test_tut_rm_rvt_cov/inputs/STUDY1.rvtests.MetaScore.assoc.gz.tbi
Binary file not shown.
Binary file added
BIN
+53.6 KB
tests/raremetal/test_tut_rm_rvt_cov/inputs/STUDY2.QT1.singlevar.cov.txt.gz
Binary file not shown.
Binary file added
BIN
+909 Bytes
tests/raremetal/test_tut_rm_rvt_cov/inputs/STUDY2.QT1.singlevar.cov.txt.gz.tbi
Binary file not shown.
Binary file added
BIN
+11.9 KB
tests/raremetal/test_tut_rm_rvt_cov/inputs/STUDY2.QT1.singlevar.score.txt.gz
Binary file not shown.
Binary file added
BIN
+1.09 KB
tests/raremetal/test_tut_rm_rvt_cov/inputs/STUDY2.QT1.singlevar.score.txt.gz.tbi
Binary file not shown.
Binary file added
BIN
+54.4 KB
tests/raremetal/test_tut_rm_rvt_cov/inputs/STUDY2.rvtests.MetaCov.assoc.gz
Binary file not shown.
Binary file added
BIN
+933 Bytes
tests/raremetal/test_tut_rm_rvt_cov/inputs/STUDY2.rvtests.MetaCov.assoc.gz.tbi
Binary file not shown.
Binary file added
BIN
+11.6 KB
tests/raremetal/test_tut_rm_rvt_cov/inputs/STUDY2.rvtests.MetaScore.assoc.gz
Binary file not shown.
Binary file added
BIN
+1.12 KB
tests/raremetal/test_tut_rm_rvt_cov/inputs/STUDY2.rvtests.MetaScore.assoc.gz.tbi
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
GENE1 9:45368740:G:A 9:45375164:C:T 9:45375295:C:T 9:45377254:G:A 9:45377290:C:T 9:45377654:A:G 9:45381530:G:A 9:45381836:C:A 9:45381860:C:T 9:45385488:G:A 9:45389198:G:C | ||
GENE2 9:45404058:C:T | ||
GENE3 9:45411110:T:C 9:45412040:C:T 9:45412056:G:A 9:45412079:C:T 9:45412097:G:T | ||
GENE4 9:45419555:A:G 9:45422446:A:T | ||
GENE5 9:45445541:C:T 9:45445586:G:A 9:45448036:T:C 9:45448070:G:A 9:45448465:T:G 9:45448507:A:C | ||
GENE6 9:45451743:C:T 9:45451745:C:G 9:45451769:G:A 9:45451987:G:A 9:45452080:G:A 9:45452429:A:C |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
inputs/STUDY1.QT1.singlevar.cov.txt.gz | ||
inputs/STUDY2.QT1.singlevar.cov.txt.gz |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
inputs/STUDY1.QT1.singlevar.score.txt.gz | ||
inputs/STUDY2.QT1.singlevar.score.txt.gz |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
inputs/STUDY1.rvtests.MetaCov.assoc.gz | ||
inputs/STUDY2.rvtests.MetaCov.assoc.gz |
2 changes: 2 additions & 0 deletions
2
tests/raremetal/test_tut_rm_rvt_cov/inputs/rvtests.summaryfiles
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
inputs/STUDY1.rvtests.MetaScore.assoc.gz | ||
inputs/STUDY2.rvtests.MetaScore.assoc.gz |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,78 @@ | ||
# This script is run as a CMake script; therefore the binary directory may not be the same as for the original build | ||
# Use CMake variables to pass in context from outside the script | ||
|
||
# This script checks for whether raremetal can successfully read and parse | ||
# summary statistics and cov matrices from both raremetalworker and rvtests for | ||
# gene-based tests. Inputs include summary statistics and cov matrices output | ||
# by raremetalworker and rvtests. This test then performs a simple burden test | ||
# in raremetal with both kinds of input and checks if results are identical | ||
|
||
set(BASE_INPUT_DIR ${BASE_TEST_FOLDER}/inputs) | ||
|
||
# Delete old outputs before every single run | ||
set(BASE_OUTPUT_DIR ${BASE_TEST_FOLDER}/output) | ||
|
||
if(EXISTS ${BASE_OUTPUT_DIR}) | ||
file(REMOVE_RECURSE ${BASE_OUTPUT_DIR}) | ||
message("Existing output directory removed- ${BASE_OUTPUT_DIR}") | ||
endif() | ||
|
||
file(MAKE_DIRECTORY ${BASE_OUTPUT_DIR}) | ||
|
||
|
||
# The input files are relative to the root test directory | ||
# Burden test with input from rvtests | ||
execute_process( | ||
COMMAND ${EXEC_PATH} | ||
--summaryFiles ${BASE_INPUT_DIR}/rvtests.summaryfiles | ||
--covFiles ${BASE_INPUT_DIR}/rvtests.covfiles | ||
--groupFile ${BASE_INPUT_DIR}/group.file | ||
--burden | ||
--prefix ${BASE_OUTPUT_DIR}/COMBINED.rvtests.QT1 - | ||
WORKING_DIRECTORY ${BASE_TEST_FOLDER} | ||
RESULT_VARIABLE rm_exit_code | ||
OUTPUT_VARIABLE out_text | ||
ERROR_VARIABLE out_text) | ||
|
||
if(rm_exit_code) | ||
message("Result exit code: ${rm_exit_code} - ${EXEC_PATH}") | ||
message(FATAL_ERROR "An error was encountered:\n ${out_text}") | ||
endif() | ||
|
||
# Burden test with input from raremetalworker | ||
execute_process( | ||
COMMAND ${EXEC_PATH} | ||
--summaryFiles ${BASE_INPUT_DIR}/rmw.summaryfiles | ||
--covFiles ${BASE_INPUT_DIR}/rmw.covfiles | ||
--groupFile ${BASE_INPUT_DIR}/group.file | ||
--burden | ||
--prefix ${BASE_OUTPUT_DIR}/COMBINED.rmw.QT1 - | ||
WORKING_DIRECTORY ${BASE_TEST_FOLDER} | ||
RESULT_VARIABLE rm_exit_code | ||
OUTPUT_VARIABLE out_text | ||
ERROR_VARIABLE out_text) | ||
|
||
if(rm_exit_code) | ||
message("Result exit code: ${rm_exit_code} - ${EXEC_PATH}") | ||
message(FATAL_ERROR "An error was encountered:\n ${out_text}") | ||
endif() | ||
|
||
# Compare the two sets of meta-analysis results | ||
set(rvt_b_res COMBINED.rvtests.QT1.meta.burden.results) | ||
set(rmw_b_res COMBINED.rmw.QT1.meta.burden.results) | ||
|
||
if(EXISTS ${BASE_OUTPUT_DIR}/${rvt_b_res} AND EXISTS ${BASE_OUTPUT_DIR}/${rmw_b_res}) | ||
message("filename is ${BASE_OUTPUT_DIR}/${file}") | ||
execute_process(COMMAND diff -q ${BASE_OUTPUT_DIR}/${rvt_b_res} ${BASE_OUTPUT_DIR}/${rmw_b_res} RESULT_VARIABLE diff_exit_code) | ||
if(diff_exit_code) | ||
message(FATAL_ERROR "Could not replicate expected calculation results for ${BASE_OUTPUT_DIR}/COMBINED.rvtests.QT1.meta.burden.results and ${BASE_OUTPUT_DIR}/COMBINED.rmw.QT1.meta.burden.results.") | ||
endif() | ||
|
||
else() | ||
if(NOT EXISTS ${BASE_OUTPUT_DIR}/${rvt_b_res}) | ||
message(FATAL_ERROR "The expected output file ${rvt_b_res} was not generated") | ||
endif() | ||
if(NOT EXISTS ${BASE_OUTPUT_DIR}/${rmw_b_res}) | ||
message(FATAL_ERROR "The expected output file ${rmw_b_res} was not generated") | ||
endif() | ||
endif() |
2 changes: 1 addition & 1 deletion
2
tests/raremetalworker/test_tut_rmw_kin/expected/STUDY1.QT1.singlevar.cov.txt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
tests/raremetalworker/test_tut_rmw_kin/expected/STUDY1.QT1.singlevar.score.txt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
tests/raremetalworker/test_tut_rmw_kin/expected/STUDY2.QT1.singlevar.cov.txt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
tests/raremetalworker/test_tut_rmw_kin/expected/STUDY2.QT1.singlevar.score.txt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
tests/raremetalworker/test_tut_rmw_nokin/expected/STUDY1.QT1.singlevar.cov.txt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
tests/raremetalworker/test_tut_rmw_nokin/expected/STUDY1.QT1.singlevar.score.txt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
tests/raremetalworker/test_tut_rmw_nokin/expected/STUDY2.QT1.singlevar.cov.txt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
tests/raremetalworker/test_tut_rmw_nokin/expected/STUDY2.QT1.singlevar.score.txt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters