Skip to content

Commit

Permalink
Fixing denominator issue wit getCirclize
Browse files Browse the repository at this point in the history
  • Loading branch information
ncborcherding committed Jan 23, 2025
1 parent ebccc86 commit 982a982
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion R/getCircilize.R
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,12 @@ getCirclize <- function(sc.data,
}

if (proportion) {
value <- value/length(unique(clone.table[clone.table[,1] == pair2,cloneCall]))
denominator <- length(unique(clone.table[clone.table[,1] == pair2, cloneCall]))
if (denominator > 0) {
value <- value / denominator
} else {
value <- 0
}
}

group_pairs$value[i] <- value
Expand Down

0 comments on commit 982a982

Please sign in to comment.