Skip to content

Commit

Permalink
fixes crash during plotting when an ind has no markers
Browse files Browse the repository at this point in the history
  • Loading branch information
greavess committed May 31, 2024
1 parent 834d37d commit 6b2c71b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion R/gds.R
Original file line number Diff line number Diff line change
Expand Up @@ -2863,7 +2863,7 @@ generate_stats <- function(
corr.info <- stringi::stri_join(corr.info, cmt)
}
if (coverage) {
if (stats::sd(i.info$COVERAGE_MEAN) != 0) {
if (stats::sd(i.info$COVERAGE_MEAN, na.rm = TRUE) != 0) {
cc <- ceiling(stats::cor(i.info$COVERAGE_TOTAL, i.info$COVERAGE_MEAN, use = "pairwise.complete.obs") * 100) / 100
} else {
cc <- "NA"
Expand Down

0 comments on commit 6b2c71b

Please sign in to comment.