Skip to content

Commit

Permalink
fix: issue #120
Browse files Browse the repository at this point in the history
  • Loading branch information
samarth8392 committed Oct 3, 2024
1 parent 9403e67 commit 8dcd074
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion workflow/scripts/assess_significance.R
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ for (i in c(1:length(cnvs[, 1]))) {
}
KS <- function(values, normals) {
resultks <- try(ks.test(values, score(normals)), silent = TRUE)
if (class(resultks) == "try-error") {
if (paste(class(resultks), collapse="_") == "try-error") {
return(list("statistic" = NA, "p.value" = NA, "alternative" = NA, "method" = NA, "data.name" = NA))
} else {
resultks
Expand Down

0 comments on commit 8dcd074

Please sign in to comment.