-
Notifications
You must be signed in to change notification settings - Fork 0
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
wrapper tests #37
Merged
Merged
wrapper tests #37
Changes from all commits
Commits
Show all changes
16 commits
Select commit
Hold shift + click to select a range
edf608f
new files for wrapper tests
wk1993 7defa52
tests for caller wrapper
wk1993 06b9f60
Merge branch 'master' of https://github.com/ZSI-Bio/CNV-opt into cnvc…
wk1993 e591d5b
comment unproper test
wk1993 d789cf4
first try of removing bugfix in jenkins R tests
wk1993 0723b98
all uncommented tests
wk1993 7984521
2 bugfixes in tests
wk1993 5b4142a
Merge branch 'master' of https://github.com/ZSI-Bio/CNV-opt into cnvc…
wk1993 8e1c685
always install CNVCALLER.RUNNER package in tests
wk1993 0208b9d
proper path to CNVCALLER.RUNNER package
wk1993 5b82a73
removed unproper install
wk1993 c728ffa
install CNVCALLER.RUNNER package in tests
wk1993 ce95542
changes in R dirs in Jenkinsfile (not tested commit)
wk1993 6ebdd53
bugfix in R tests
wk1993 765f57f
bugfix in CODEX version
wk1993 8f7fa6e
proper structure of install and load packages in R tests
wk1993 File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
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,89 @@ | ||
library(testthat) | ||
library(CNVCALLER.RUNNER) | ||
|
||
context("Testing run_wrapper_CODEXCOV function") | ||
|
||
test_that("basic test for run_wrapper_CODEXCOV function, without calls",{ | ||
mapp_thresh <- "0.9" | ||
cov_thresh_from <- "20" | ||
cov_thresh_to <- "4000" | ||
length_thresh_from <- "0" | ||
length_thresh_to <- "200000" | ||
gc_thresh_from <- "5" | ||
gc_thresh_to <- "100" | ||
K_from <- "1" | ||
K_to <- "3" | ||
lmax <- "200" | ||
cov_table <- as.data.frame(matrix(data=c("NA12044",6,"2",17211,173310,151.636363636364, | ||
"NA11829",4,"2",16712,167190,100, | ||
"NA07051",7,"2",30275,304310,155.929936305732, | ||
"NA07051",1,"2",14642,148820,160.3900414937759, | ||
"NA12044",8,"2",69069,700290,581.723204994797, | ||
"NA12044",9,"2",129133,1292530,30.4462809917355, | ||
"NA12044",10,"2",228233,2283540,223.311475409836, | ||
"NA11829",9,"2",129133,1292530,270.4462809917355, | ||
"NA11829",10,"2",228233,2283540,223.311475409836, | ||
"NA11994",9,"2",129133,1292530,180.4462809917355, | ||
"NA11994",3,"2",15751,159900,500.29357798165138, | ||
"NA11829",5,"2",16834,170740,400.19502074688797, | ||
"NA07051",3,"2",15751,159900,900.75313807531381, | ||
"NA18504",5,"2",16834,170740,110.46887966805, | ||
"NA07051",4,"2",16599,167080,100.72815533980583, | ||
"NA12044",4,"2",16599,166400,100.30952380952381, | ||
"NA11994",2,"2",14943,150630,103.900826446281, | ||
"NA18504",6,"2",17211,173310,81.801652892562, | ||
"NA18504",10,"2",228233,2283540,223.311475409836, | ||
"NA12044",2,"2",14943,150630,76.0661157024793, | ||
"NA07051",8,"2",69069,700290,691.77627471384, | ||
"NA07051",2,"2",14943,150630,170.0826446280992, | ||
"NA18504",1,"2",14642,148820,35.8630705394191, | ||
"NA18504",8,"2",69069,700290,240.60561914672, | ||
"NA12044",3,"2",15751,159900,200.88202247191011, | ||
"NA18504",9,"2",129133,1292530,200.4462809917355, | ||
"NA11829",6,"2",17211,173310,148.95041322314, | ||
"NA18504",2,"2",14943,150630,230.7603305785124, | ||
"NA11829",8,"2",69069,700290,1022.60561914672, | ||
"NA07051",5,"2",16834,170740,76.448132780083, | ||
"NA12044",7,"2",30275,304310,126.821656050955, | ||
"NA11994",4,"2",16599,167130,100.13913043478261, | ||
"NA18504",3,"2",15751,159900,26.0833333333333, | ||
"NA12044",5,"2",16834,170740,400.4070796460177, | ||
"NA18504",7,"2",30275,304310,161.554140127389, | ||
"NA11829",2,"2",14943,150630,22.289256198347, | ||
"NA11994",10,"2",228233,2283540,200.17213114754098, | ||
"NA07051",10,"2",228233,2283540,166.918032786885, | ||
"NA11994",7,"2",30275,304310,172.980891719745, | ||
"NA11994",6,"2",17211,173310,163.595041322314, | ||
"NA11994",8,"2",69069,700290,88.76482830385, | ||
"NA07051",9,"2",129133,1292530,320.4132231404959, | ||
"NA11829",1,"2",14642,148820,51.244813278008, | ||
"NA11829",7,"2",30275,304310,132.828025477707, | ||
"NA11994",5,"2",16834,170740,600.70124481327801, | ||
"NA11994",1,"2",14642,148820,146.879668049793, | ||
"NA07051",6,"2",17211,173310,47.4876033057851, | ||
"NA11829",3,"2",15751,159900,130.2958333333333, | ||
"NA12044",1,"2",14642,148820,111.020746887967, | ||
"NA18504",4,"2",16599,167170,300.58823529411765), nrow=50, ncol=6, byrow=TRUE)) | ||
colnames(cov_table) <- c("sample_name", "target_id", "chr", "pos_min", "pos_max", "cov_avg") | ||
cov_table[,"sample_name"] <- sapply(cov_table[,"sample_name"], toString) | ||
cov_table[,"target_id"] <- as.integer(cov_table[,"target_id"]) | ||
cov_table[,"chr"] <- sapply(cov_table[,"chr"], toString) | ||
cov_table[,"pos_min"] <- as.integer(as.character(cov_table[,"pos_min"])) | ||
cov_table[,"pos_max"] <- as.integer(as.character(cov_table[,"pos_max"])) | ||
cov_table[,"cov_avg"] <- as.numeric(as.character(cov_table[,"cov_avg"])) | ||
calls <- run_wrapper_CODEXCOV(mapp_thresh, | ||
cov_thresh_from, | ||
cov_thresh_to, | ||
length_thresh_from, | ||
length_thresh_to, | ||
gc_thresh_from, | ||
gc_thresh_to, | ||
K_from, | ||
K_to, | ||
lmax, | ||
cov_table) | ||
expect_equal(length(calls), 0) | ||
}) | ||
|
||
|
||
|
Empty file.
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
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why do we upgrade Codex version?