Skip to content

Commit

Permalink
add comment
Browse files Browse the repository at this point in the history
  • Loading branch information
suzannejin committed Oct 8, 2024
1 parent 36868e1 commit c5ddf64
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion modules/local/propr/propd/templates/propd.R
Original file line number Diff line number Diff line change
Expand Up @@ -273,7 +273,6 @@ if (opt\$permutation == 0) {

# get cutoff
# this is the cutoff used to get the significant pairs and ensemble of adjacency matrix
# TODO take top n pairs when no cutoff has FDR below desired threshold

cutoff <- getCutoffFDR(
pd,
Expand Down Expand Up @@ -308,6 +307,8 @@ if (opt\$permutation == 0) {
results\$class[which(results\$Pair %in% hub_genes\$gene & results\$Partner %in% hub_genes\$gene)] <- "green"

} else {
# TODO take top n pairs when no cutoff has FDR below desired threshold
# For the moment, we just print a warning and set adj, hub_genes and results to NULL
warning('No pairs have FDR below desired threshold.')
adj <- NULL
hub_genes <- NULL
Expand Down

0 comments on commit c5ddf64

Please sign in to comment.