You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When running topologygsa with kegg hsa, I got the following error:
kegg.gs <- getGenesets(org = "hsa", db = "kegg")
hsa.grn <- compileGRN(org = "hsa", db = "kegg")
(I) r$> x <- nbea(method="topologygsa", se=se, gs=kegg.gs, grn=hsa.grn)
hsa00010_Glycolysis_/_Gluconeogenesis
hsa00020_Citrate_cycle_(TCA_cycle)
hsa00030_Pentose_phosphate_pathway
hsa00051_Fructose_and_mannose_metabolism
hsa00052_Galactose_metabolism
hsa00053_Ascorbate_and_aldarate_metabolism
hsa00061_Fatty_acid_biosynthesis
hsa00071_Fatty_acid_degradation
hsa00190_Oxidative_phosphorylation
hsa00230_Purine_metabolism
hsa00270_Cysteine_and_methionine_metabolism
hsa00280_Valine,_leucine_and_isoleucine_degradation
hsa00310_Lysine_degradation
hsa00330_Arginine_and_proline_metabolism
hsa00340_Histidine_metabolism
hsa00380_Tryptophan_metabolism
hsa00410_beta-Alanine_metabolism
hsa00480_Glutathione_metabolism
hsa00500_Starch_and_sucrose_metabolism
hsa00520_Amino_sugar_and_nucleotide_sugar_metabolism
hsa00561_Glycerolipid_metabolism
hsa00562_Inositol_phosphate_metabolism
Error in .check.is.matrix(object) : Input must be a matrix or a dgCMatrix
(I) r$> traceback()
10: stop("Input must be a matrix or a dgCMatrix\n")
9: .check.is.matrix(object)
8: is_dag.default(gr)
7: is.DAG(gr)
6: FUN(X[[i]], ...)
5: lapply(X = X, FUN = FUN, ...)
4: sapply(names(gs), function(s) {
message(s)
gs.grn <- .queryGRN(gs[[s]], grn, index = FALSE)
if (nrow(gs.grn) < configEBrowser("GS.MIN.SIZE"))
return(NA)
am <- .grn2adjm(gs.grn)
gr <- graphAM(am, "directed")
gr <- as(gr, "graphNEL")
if (!is.DAG(gr)) {
gr2 <- graph_from_graphnel(gr)
gr2 <- mst(gr2)
gr <- as(gr2, "graphNEL")
}
r <- try(pathQ(assay(se), grp, gr, perm, alpha), silent = TRUE)
if (is(r, "try-error"))
return(NA)
else return(r$alphaMean)
})
3: .clipper(se, gs, grn, alpha, perm)
2: .topogsa(se, gs, grn, alpha, perm, ...)
1: nbea(method = "topologygsa", se = se, gs = kegg.gs, grn = hsa.grn)
It seems to be caused by the is_DAG call in .clipper, the object passed to it is a graphNEL object instead of a matrix, causing .check.is.matrix to throw the error.
(I) Browse[2]> object
A graphNEL graph with directed edges
Number of Nodes = 5
Number of Edges = 6
(I) Browse[2]> class(object)
[1] "graphNEL"
attr(,"package")
[1] "graph"
When running
topologygsa
with kegg hsa, I got the following error:It seems to be caused by the
is_DAG
call in.clipper
, the object passed to it is agraphNEL
object instead of a matrix, causing.check.is.matrix
to throw the error.The text was updated successfully, but these errors were encountered: