r - wgcna goodSamplesGenes 关于基因太少的错误
问题描述
我有三个处理 1、2 和 3。每个处理有三个重复,所以我对每个处理的所有重复进行了平均。总共有30,000个基因。对于这三种治疗方法,我也有 10 种表型。我正在尝试使用 WGCNA 来识别这三种治疗方法中至关重要的基因。我在用:
library(WGCNA)
allowWGCNAThreads()
##Gene Expression
library(readr)
Expression_File <- read.csv("gene_expression.csv")
Expression_File <- select(Expression_File, Gene_ID, A1, B1, C1)
Expression_File[Expression_File == 0] <- NA
dim(Expression_File)
names(Expression_File)
GE.adjusted=Expression_File
rownames(GE.adjusted)=GE.adjusted[,1]
GE.adjusted=GE.adjusted[,-1]
GE.adjusted=t(GE.adjusted)
##Phenotype
Phenotype_File <- read.csv("phenotype.csv")
dim(Phenotype_File)
Phenotype_File[Phenotype_File == 0] <- NA
Phenotype <- Phenotype_File
a=Phenotype[,1]
Phenotype=Phenotype[,-1]
Phenotype=t(Phenotype)
Phenotype=as.matrix(Phenotype,ncol=10)
colnames(Phenotype)=c("1","2","3","4","5","6","7","8","9","10")
##Checking data for excessive missing values and identification of outlier samples
gsg = goodSamplesGenes(GE.adjusted, verbose = 3)
gsg$allOK
但我得到一个错误:
Flagging genes and samples with too many missing values...
..step 1
Error in goodGenes(GE.adjusted, weights, goodSamples, goodGenes, minFraction = minFraction, :
Too few genes with valid expression levels in the required number of samples.
我将不胜感激任何解决此错误的建议。谢谢!
解决方案
推荐阅读
- c# - SetBoundsCore 有什么用?
- always-encrypted - 始终加密的数据库
- reactjs - React-admin - 创建子菜单
- android - 想为我的 android 应用程序创建一个搜索引擎来搜索本地数据库,我应该使用哪种技术?
- gradle - Eclipse JDT LS & Gradle - 资源异常“无效的项目描述”
- windows - 如何在windows中使用另一个文件夹中的dll
- angular - 将渐变 SVG 填充颜色更改为组件属性值
- python - 使用另一个 WS 作为验证 Flask/Rest/Mysql
- android - 不推荐使用 getDownloadUrl,那么如何访问我上传到 Firebase 存储的图像的 URL?
- c++ - VS2017 中的 SDL2 可能的链接问题