【发布时间】:2020-06-06 18:47:58
【问题描述】:
我正在尝试在 R 中执行基因本体分析,但出现此错误;
Error in get_ontology(x, name = paste("Cluster", names(df.list[i]), "Pathways_for_kmeans_cluster", :
unused argument (name = paste("Cluster", names(df.list[i]), "Pathways_for_kmeans_cluster", j, sep = "_"))
在我运行这个脚本之后:
numclus <- sort(unique(df.list[[i]]$kmeans.cluster))
subdirname <- paste("D:/Master jaar 1/RP1/RP1 projects/Aged macrophage characterisation/Single cell sequencing/nieuwe stuff", "/top100_genes_from_", names(df.list[i]), "_pathways_from_kmeans_clusters", sep = " ")
dir.create(subdirname, showWarnings = FALSE)
install.packages("ontologyPlot")
for (j in numclus){
x <- data.frame(gene = rownames(df.list[[i]][which(df.list[[i]]$kmeans.cluster == j),]), avg_logFC = 0)}
if(nrow(x)>10){
get_ontology(x, name = paste("Cluster", names(df.list[i]), "Pathways_for_kmeans_cluster", j, sep = "_"), return.data = F, outdir = subdirname, full_GSEA = F)
}
}
get_ontology 行后出现错误
【问题讨论】:
-
函数
get_ontology的第一个参数是file,描述为“OBO格式文件的文件路径。”。请阅读您正在使用的功能的帮助页面,help('get_ontology')。
标签: r