as.data.frame.default(x[[i]], optional = TRUE) 中的错误:无法将 class 'structure("mmquery_bioc", package = "multiMiR")' 强制转换为 data.frame
Error in as.data.frame.default(x[[i]], optional = TRUE) : cannot coerce class ‘structure("mmquery_bioc", package = "multiMiR")’ to a data.frame
我无法获得 table 个结果。
命令:
answer <- get_multimir(url = NULL, org = "hsa", mirna = "MIMAT0000450", target = NULL, disease.drug = "cancer", table = "validated", predicted.cutoff = NULL, predicted.cutoff.type = "p", predicted.site = "conserved", summary = FALSE, add.link = FALSE, use.tibble = TRUE, limit = NULL, legacy.out = FALSE)
当我尝试使用以下方法创建 table 时:
write.table(answer,"C:\Users\Someone\Desktop\Rresults\data.csv", row.names=FALSE)
它导致以下错误:
Error in as.data.frame.default(x[[i]], optional = TRUE) : cannot
coerce class ‘structure("mmquery_bioc", package = "multiMiR")’ to a
data.frame
get_multimir
用于从 multiMiR 包中检索预测和验证的 miRNA-target 相互作用及其疾病和药物关联。
它 returns class mmquery_bioc
的对象
错误:
Error in as.data.frame.default(x[[i]], optional = TRUE) : cannot coerce class ‘structure("mmquery_bioc", package = "multiMiR")’ to a data.frame
通知您 R 不知道如何将此对象转换为数据框。
尚不完全清楚您要实现的目标,但如果我要猜测,也许您只需要此对象的 data
插槽:
write.table(answer@data,"C:\Users\Someone\Desktop\Rresults\data.csv", row.names=FALSE)
我无法获得 table 个结果。
命令:
answer <- get_multimir(url = NULL, org = "hsa", mirna = "MIMAT0000450", target = NULL, disease.drug = "cancer", table = "validated", predicted.cutoff = NULL, predicted.cutoff.type = "p", predicted.site = "conserved", summary = FALSE, add.link = FALSE, use.tibble = TRUE, limit = NULL, legacy.out = FALSE)
当我尝试使用以下方法创建 table 时:
write.table(answer,"C:\Users\Someone\Desktop\Rresults\data.csv", row.names=FALSE)
它导致以下错误:
Error in as.data.frame.default(x[[i]], optional = TRUE) : cannot coerce class ‘structure("mmquery_bioc", package = "multiMiR")’ to a data.frame
get_multimir
用于从 multiMiR 包中检索预测和验证的 miRNA-target 相互作用及其疾病和药物关联。
它 returns class mmquery_bioc
错误:
Error in as.data.frame.default(x[[i]], optional = TRUE) : cannot coerce class ‘structure("mmquery_bioc", package = "multiMiR")’ to a data.frame
通知您 R 不知道如何将此对象转换为数据框。
尚不完全清楚您要实现的目标,但如果我要猜测,也许您只需要此对象的 data
插槽:
write.table(answer@data,"C:\Users\Someone\Desktop\Rresults\data.csv", row.names=FALSE)