【发布时间】:2016-10-22 06:18:49
【问题描述】:
我正在尝试使用 bioconductormethylumi 包加载 IDAT,其脚本适用于以前的文件,但是当我使用methylumIDAT 时遇到以下不熟悉的错误
>mset450k <- methylumIDAT(sampleSheet$Basename, idatPath=idatPath)
0 HumanMethylation27 samples found
48 HumanMethylation450 samples found
Error in readBin(con, what = "integer", n = n, size = 4, endian = "little", :
invalid 'n' argument
我不确定这是指哪个 n,以及如何解决它。搜索有关 readBin 参数的信息并没有帮助我在这种情况下理解它。
我在这里能找到的最接近的问题是这个关于音频文件的问题,问题似乎是文件大小: Invalid 'n' argument error in readBin() when trying to load a large (4GB+ audio file)
我没有使用比以前更大的数据集 - 事实上,当我使用不同的 idats 文件夹(相同数量的文件)和不同的样本表(相同格式)运行脚本时,它工作正常,所以我不'认为文件大小不是这里的问题。
以下是完整的脚本
> idatPath<-c("idats2")
> sampleSheet<-read.csv("CrestarSampleSheet2.csv", stringsAsFactors = FALSE)
> sampleSheet<-cbind(paste(sampleSheet$CHIP.ID, sampleSheet$CHIP.Location,
sep = "_"), sampleSheet)
> colnames(sampleSheet)[1]<-"Basename"
> mset450k <- methylumIDAT(sampleSheet$Basename, idatPath=idatPath)
【问题讨论】:
标签: r bioconductor