Skip to content

Commit

Permalink
fix variable matching
Browse files Browse the repository at this point in the history
  • Loading branch information
mschubert committed Sep 8, 2023
1 parent e6ad71c commit 48d3316
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tools/omnipath/bionet.r
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ bionet = function(g, assocs, thresh=0.05, n_genes=NULL, var=c("adj.p", "padj"))
if (is.null(assocs$name) || any(duplicated(assocs$name)))
stop("[tools/omnipath]: bionet needs 'assocs' with unique 'name' field")
if (length(var) > 1) {
var = var[1]
var = intersect(colnames(assocs), var)[1]
message("[tools/omnipath]: using ", sQuote(var), " for scoring")
}
if (!is.null(n_genes))
Expand Down

0 comments on commit 48d3316

Please sign in to comment.