weixin_45021348 2021-01-12 08:45
浏览 343

有没有会R语言的大神,帮忙看一下这段代码为什么显示参数有错误

> #install.packages("colorspace")
> #install.packages("stringi")
> #source("http://bioconductor.org/biocLite.R")
> #biocLite("DOSE")
> #biocLite("clusterProfiler")
> #biocLite("pathview")

> setwd("C:\\Users\\sdkj\\Desktop\\HYZtcmsp\\13.GO")
> library("clusterProfiler")

Registered S3 method overwritten by 'enrichplot':
  method               from
  fortify.enrichResult DOSE
clusterProfiler v3.14.2  For help: https://guangchuangyu.github.io/software/clusterProfiler

If you use clusterProfiler in published research, please cite:
Guangchuang Yu, Li-Gen Wang, Yanyan Han, Qing-Yu He. clusterProfiler: an R package for comparing biological themes among gene clusters. OMICS: A Journal of Integrative Biology. 2012, 16(5):284-287.
> library("org.Hs.eg.db")
> rt=read.table("id.txt",sep="\t",header=T,check.names=F)
> rt=rt[is.na(rt[,"entrezID"])==F,]

> cor=rt$logFC
> gene=rt$entrezID
> names(cor)=gene

> #GO富集分析
> kk <- enrichGO(gene = gene,OrgDb = org.Hs.eg.db, pvalueCutoff =0.05, qvalueCutoff = 0.05)
> write.table(kk,file="GO.txt",sep="\t",quote=F,row.names = F)

> #柱状图
> tiff(file="barplot.tiff",width = 35,height = 20,units ="cm",compression="lzw",bg="white",res=600)
> barplot(kk, drop = TRUE, showCategory =20)
Error in farver::decode_colour(colors, alpha = TRUE, to = "lab", na_value = "transparent") : 
  参数没有用(na_value = "transparent")

> dev.off()
null device 
          1 

> #点图
> tiff(file="dotplot.tiff",width = 35,height = 20,units ="cm",compression="lzw",bg="white",res=600)
> dotplot(kk,showCategory = 20)
Error in farver::decode_colour(colors, alpha = TRUE, to = "lab", na_value = "transparent") : 
  参数没有用(na_value = "transparent")

> dev.off()
null device 
          1 




参数没有用是啥意思?

  • 写回答

0条回答 默认 最新

      报告相同问题?

      悬赏问题

      • ¥15 matlab有svec这个函数吗?
      • ¥15 无法调用VideoWriter_fourcc
      • ¥15 VB6.0无法加载网页验证码图片到picturebox中,求解。
      • ¥15 C#和GDAL对栅格处理
      • ¥15 我现在有一些关于提升机故障的专有文本数据,量也不多,我在label studio上进行了关系和实体的标注,完成了知识图谱的构造,那么我使用生成式模型的话,我能做哪些工作来写我的论文?
      • ¥15 电脑连不上无线网络如下诊断反馈应该如何操作
      • ¥15 telegram api 使用forward_messages方法转发消息时,目标群组里面会出现此消息来源,如何隐藏?
      • ¥15 关于#tensorflow#的问题:有没有什么方法可以让机器自己学会像素风格的图片
      • ¥15 Oracle触发器字段变化时插入指定值
      • ¥15 docker无法进入容器内部