-
Notifications
You must be signed in to change notification settings - Fork 2
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
coexEnrich #2
Comments
Hi - I'm not sure if that is a function in this code. |
the DEGs Enrichment function
## Perform MEGENA enrichment
```{r}
tm.DEG <- NULL
for (d in DEGs) { # use DEGs list
o <- coexEnrich(y, d, bg)
tm.DEG <- cbind(tm.DEG, o)
}
cp <- apply(tm.DEG[,grep("p.value", colnames(tm.DEG))], 2, as.numeric)
#cp <- apply(tm.DEG[,grep("corr.p.val", colnames(tm.DEG))], 2, as.numeric)
ix<-apply(cp, 2, function(x) all(is.na(x)))
cp <- cp[,which(!ix)] # remove all NA columns
if ( is.null(dim(cp))) {next} # one-dim cp
colnames(cp) <- names(DEGs)[!ix]
rnk <- rankOrder(cp)
module <- sub("c1_", "M", tm.DEG[,1])
tmp <- cbind(tm.DEG[,1], module, rnk, cp) # cannot include cp matrix as # of DEGs differ
# tm.cp.rank <- rbind(tm.cp.rank, tmp)
fn2 <- paste0(tmbase, "_", tID, ".tsv")
write.table(tmp, file=fn2, row.names=F, quote=F, sep="\t")
…------------------ 原始邮件 ------------------
发件人: "GreshamLab/RNAseq" ***@***.***>;
发送时间: 2023年10月27日(星期五) 中午11:12
***@***.***>;
***@***.******@***.***>;
主题: Re: [GreshamLab/RNAseq] coexEnrich (Issue #2)
Hi - I'm not sure if that is a function in this code.
Can you tell me what command you're running?
—
Reply to this email directly, view it on GitHub, or unsubscribe.
You are receiving this because you authored the thread.Message ID: ***@***.***>
|
I noticed this was a crosspost from CIVR_HRP_Day0. |
Sorry to trouble you, Thanks a million
…------------------ 原始邮件 ------------------
发件人: "GreshamLab/RNAseq" ***@***.***>;
发送时间: 2023年10月27日(星期五) 晚上8:57
***@***.***>;
***@***.******@***.***>;
主题: Re: [GreshamLab/RNAseq] coexEnrich (Issue #2)
I noticed this was a crosspost from CIVR_HRP_Day0.
After checking their code I found the snippet you included.
CIVR_HRP_Day0 is not maintained by me but I have updated their issue with this data and have reached out to the lead to update them.
—
Reply to this email directly, view it on GitHub, or unsubscribe.
You are receiving this because you authored the thread.Message ID: ***@***.***>
|
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
when i try to run this code ,i get this error could not find function "coexEnrich"???
The text was updated successfully, but these errors were encountered: