> library(org.Mm.eg.db) > library(clusterProfiler) > gene <- bitr(rownames(need_DEG), fromType = "SYMBOL", + toType = "ENTREZID", + OrgDb = org.Mm.eg.db) 'select()' returned 1:1 mapping between keys and columns Warning message: In bitr(rownames(need_DEG), fromType = "SYMBOL", toType = "ENTREZID", : 19.2% of input gene IDs are fail to map...
但是五年前我是不用clusterProfiler 包的,之前的代码是select函数
现在select函数就报错
如下所示:
非常的诡异,首先它居然在没有赋值的情况下就把我的输入变量给修改了,不可思议!
实在是太不安全了!!!
略微思考了一下,猜测应该是这个select函数名字太大众了,所以在很多包里面都有,出现了冲突!
搜索看看select函数来自于哪里
可以看到优先级最高多的是dplyr包:
Help on topic 'select' was found in the following packages:
Subset columns using their names and types (in package dplyr in library ) Ridge Regression (in package MASS in library ) Objects exported from other packages (in package tidygraph in library ) Objects exported from other packages (in package clusterProfiler in library ) AnnotationDb objects and their progeny, methods etc. (in package AnnotationDbi in library )