-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add tutorial to repo (with symlink to datasets folder),
and use as basis for RMW and RM unit tests
- Loading branch information
Showing
52 changed files
with
7,778 additions
and
3 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,51 @@ | ||
# Test scenarios: | ||
# Two tools, many parameters for each | ||
# - Raremetalworker | ||
# - Raremetal | ||
|
||
|
||
set(RMW_BIN ${CMAKE_BINARY_DIR}/raremetalworker) | ||
set(RM_BIN ${CMAKE_BINARY_DIR}/raremetal) | ||
|
||
|
||
#### RAREMETAL TUTORIAL | ||
# Make test assets (inputs) available in build folder | ||
file(COPY datasets/raremetal_tutorial | ||
DESTINATION ${CMAKE_CURRENT_BINARY_DIR}) | ||
|
||
|
||
## Prepare the basic directory structure (in the build folder) for tests to run | ||
# Each test has a base folder with `inputs`, `expected`, and `outputs` | ||
# For a first-stage analysis, there may be no special inputs. Outputs will be wiped on every test run. | ||
set(BASE_TEST_FOLDER ${CMAKE_CURRENT_BINARY_DIR}/test_tut_rmw) | ||
file(MAKE_DIRECTORY ${BASE_TEST_FOLDER}) | ||
file(MAKE_DIRECTORY ${BASE_TEST_FOLDER}/inputs) | ||
file(MAKE_DIRECTORY ${BASE_TEST_FOLDER}/expected) | ||
|
||
file(COPY raremetalworker/tutorial/expected | ||
DESTINATION ${BASE_TEST_FOLDER}) | ||
|
||
add_test(NAME test_tut_rmw | ||
COMMAND ${CMAKE_COMMAND} | ||
-DRMW_BIN=${RMW_BIN} | ||
-DBASE_TEST_FOLDER=${BASE_TEST_FOLDER} | ||
-P ${CMAKE_CURRENT_SOURCE_DIR}/raremetalworker/script.cmake) | ||
|
||
|
||
set(BASE_TEST_FOLDER ${CMAKE_CURRENT_BINARY_DIR}/test_tut_rm) | ||
file(MAKE_DIRECTORY ${BASE_TEST_FOLDER}) | ||
file(MAKE_DIRECTORY ${BASE_TEST_FOLDER}/inputs) | ||
file(MAKE_DIRECTORY ${BASE_TEST_FOLDER}/expected) | ||
|
||
file(COPY raremetal/tutorial/expected | ||
DESTINATION ${BASE_TEST_FOLDER}) | ||
file(COPY raremetal/tutorial/expected | ||
DESTINATION ${BASE_TEST_FOLDER}) | ||
file(COPY raremetal/tutorial/inputs | ||
DESTINATION ${BASE_TEST_FOLDER}) | ||
|
||
add_test(NAME test_tut_rm | ||
COMMAND ${CMAKE_COMMAND} | ||
-DRM_BIN=${RM_BIN} | ||
-DBASE_TEST_FOLDER=${BASE_TEST_FOLDER} | ||
-P ${CMAKE_CURRENT_SOURCE_DIR}/raremetal/script.cmake) |
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,5 @@ | ||
$yourpath/raremetalworker --ped example1.ped --dat example1.dat --vcf example1.vcf.gz --traitName QT1 --inverseNormal --makeResiduals --kinSave --kinGeno --prefix STUDY1 | ||
|
||
$youpath/raremetalworker --ped example2.ped --dat example2.dat --vcf example2.vcf.gz --traitName QT1 --inverseNormal --makeResiduals --kinSave --kinGeno --prefix STUDY2 | ||
|
||
$yourpath/raremetal --summaryFiles summaryfiles --covFiles covfiles --groupFile group.file --SKAT --burden --MB --VT --hwe 1.0e-05 --callRate 0.95 --longOutput --tabulateHits --hitsCutoff 1e-05 --prefix COMBINED.QT1 --labelHits |
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 @@ | ||
STUDY1.QT1.singlevar.cov.txt.gz | ||
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,7 @@ | ||
C AGE | ||
C AGE2 | ||
C SEX | ||
T QT4 | ||
T QT3 | ||
T QT2 | ||
T QT1 |
Oops, something went wrong.