jcolinge/BulkSignalR

initialInference function with p val 0.01

Opened this issue · 0 comments

Hello,
Is it possible to get the result of the initial inference function which is the BSRinference object based on pval = 0.01?
I checked the source code and found that the pval is 1 as following:
setClass("BSRInference",
slots=c(LRinter="data.frame",
ligands="list",
receptors="list",
t.genes="list",
tg.corr="list",
inf.param="list"),
prototype=list(
LRinter=data.frame(L="A", R="B", LR.corr=0.6, pw.id="123",
pw.name="one pw", rank=2, len=50,
rank.corr=0.6, pval=1.0, qval=1.0,
stringsAsFactors=FALSE),
ligands=list("A"),
receptors=list("B"),
t.genes=list(c("a","b","c")),
tg.corr=list(c(-0.5,0.1,0.8)),
inf.param=list()
))

Could you guide me on how I can do that? because I only need the interactions whose p val is 0.01
If there is another way to do that, please guide me

Thanks in advance