Skip to content

Commit

Permalink
Debug exir function.
Browse files Browse the repository at this point in the history
  • Loading branch information
asalavaty committed Nov 9, 2023
1 parent e6493bc commit 9c08d3a
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 2 deletions.
6 changes: 5 additions & 1 deletion R/functions.R
Original file line number Diff line number Diff line change
Expand Up @@ -2407,7 +2407,11 @@ sirir <- function(graph, vertices = V(graph),
rf.diff.exptl.pvalue <- base::subset(rf.diff.exptl.pvalue, rf.diff.exptl.pvalue$pvalue < alpha)

} else {
rf.pval.select <- which(rf.diff.exptl.pvalue[,"pvalue"] <alpha)
if(length(which(rf.diff.exptl.pvalue[, "pvalue"] < alpha)) >= 10) {
rf.pval.select <- which(rf.diff.exptl.pvalue[, "pvalue"] < alpha)
} else {
rf.pval.select <- which(order(rf.diff.exptl.pvalue[, "pvalue"]) <= 10)
}
rf.nonSig <- seq(nrow(rf.diff.exptl.pvalue))[-rf.pval.select]
required.pos.importance <- select.number - length(rf.pval.select)

Expand Down
6 changes: 5 additions & 1 deletion inst/ShinyApps/ExIR/app.R
Original file line number Diff line number Diff line change
Expand Up @@ -2328,7 +2328,11 @@ server <- function(input, output, session,
rf.diff.exptl.pvalue <- base::subset(rf.diff.exptl.pvalue, rf.diff.exptl.pvalue$pvalue < alpha)

} else {
rf.pval.select <- which(rf.diff.exptl.pvalue[,"pvalue"] <alpha)
if(length(which(rf.diff.exptl.pvalue[, "pvalue"] < alpha)) >= 10) {
rf.pval.select <- which(rf.diff.exptl.pvalue[, "pvalue"] < alpha)
} else {
rf.pval.select <- which(order(rf.diff.exptl.pvalue[, "pvalue"]) <= 10)
}
rf.nonSig <- seq(nrow(rf.diff.exptl.pvalue))[-rf.pval.select]
required.pos.importance <- select.number - length(rf.pval.select)

Expand Down

0 comments on commit 9c08d3a

Please sign in to comment.