Skip to content

Commit f8d084b

Browse files
committed
zero out if scale is N = 1
1 parent d0d6210 commit f8d084b

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

R/integrate_gene_network.R

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -440,6 +440,7 @@ write_integrated_net <- function(dir_out) {
440440

441441
# normalize edge costs
442442
cost_norm <- unlist(lapply(cost, scale))
443+
cost_norm[is.na(cost_norm)] <- 0
443444
cost_full <- 1 - minmax(cost_norm)
444445

445446
# verify edge names belong to node names

0 commit comments

Comments
 (0)