Closed ninjaxfy closed 2 years ago
Hi @ninjaxfy
The getAlternativePromoters
function is implemented for two levels only, while your condition factor seems to have more than two levels.
You could try releveling your condition factor and see if that works.
Thanks a lot, I get it, your reply really do me a lot favor!!
Hello: I have been employed proActiv in my reasearch and it is an excellent work!!! And your reply will do me a lot favor!!! However, when I read the source R code of the proActiv, I did come across some problemes in the [identify-alternative-promoters.R] file, line 113 in the fitPromoters function, the code
pval[nonInternalId] <- unlist(lapply(seq_len(num.pros),function(i)tryCatch(summary(lm(unlist(assay[i,]) ~ condition))$coef[2,4], warning = function(cond) 1, error = function(cond) NaN)))
, thecoef[2,4]
will not get the corresponding p-value of the liner model of the specified condition and absolute or relative activity.For instance in my dataset, the upregulate result obtained by the function
getAlternativePromoters()
And I use the fitPromoters() function in the data, selecting some data corresponding to the above result:
The
fitPromoter()
function padj result is the same as thegetAlternativePromoters()
However, when I use the liner model to check the result: The p-value is not corresponding to the reference condition's p-value, e.g.
we can see the p-value in the result actually is the p-value of the
’conditionBrain‘
, because of the parametersummary(lm(unlist(assay[i,]) ~ condition))$coef[2,4]
All the above is my problems, thanks again for your time, your reply will do me a lot favor!!!