R
一只可爱的栗子
这个作者很懒,什么都没留下…
展开
-
r语言筛选列
数据格式如下: a b c d e 1 2 3 4 5 使用select过滤不要的列 df[,-which(names(df)%in%c("a","b")] subset(df,select=-c(a,b)) 使用select选择想要的列 df[ , c("x","y")] subset(df, select=c(x,y)) write.tab...原创 2019-11-13 19:34:03 · 10700 阅读 · 0 评论 -
错误 With R version 3.5 or greater, install Bioconductor packages using BiocManager; see..
在使用如下代码安装Bioconductor来源的package时,source("https://bioconductor.org/biocLite.R")biocLite("apeglm")遇到如下报错:错误: With R version 3.5 or greater, install Bioconductor packages using BiocManager; see...原创 2019-11-06 15:24:34 · 19609 阅读 · 2 评论 -
Error in DESeqDataSet(se, design = design, ignoreRank) : some values in assay are negative
原代码: dds <- DESeqDataSetFromMatrix(countData = exprSet, colData = colData, design = ~ group_list)错误原因:exprSet中存在负值 -1纠正:将矩阵中-1...原创 2019-11-05 13:19:28 · 24563 阅读 · 5 评论 -
TCGA数据 ENSG编号转为Symbol(基因名称)
当想查看对应的差异基因对应的Symbol(基因名称)的时候,发现基因为编码为ENSG开头的一串数字,Ensembl基因的ID# 安装包source("https://bioconductor.org/biocLite.R")biocLite("AnnotationDbi")biocLite("org.Hs.eg.db")# 加载包library(stats4)librar...原创 2019-11-04 18:33:12 · 20399 阅读 · 0 评论 -
R语言Error in hist.default() : 'x'必需为数值
hist(as.numeric(employees$received),breaks=50)原创 2018-08-20 16:07:44 · 41583 阅读 · 7 评论