【问题标题】:error using methylumIDAT, invalid n argument for readBin使用甲基umIDAT 时出错,readBin 的 n 参数无效
【发布时间】: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


    【解决方案1】:

    我已经解决了这个问题。问题是我文件夹中的一个 idat 文件在加载之前没有完全下载(我的电脑在下载过程中崩溃了)。

    我通过加载具有单个文件名的文件(大批量,然后逐渐小批量)来确定它是哪一个,例如

    mset450k <- methylumIDAT(c("200397870043_R01C02", "200397870043_R02C02",      
                               "200397870043_R03C02", "200397870043_R03C01")
                                ,idatPath=idatPath)
    

    【讨论】:

      猜你喜欢
      • 2016-08-18
      • 2018-07-05
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2012-08-28
      • 1970-01-01
      • 2020-02-03
      • 1970-01-01
      相关资源
      最近更新 更多