各位大神好!我最近在学习用R语言包RTCGAToobox下载TCGA数据,但是总是失败,报错:

Error in file.rename(from = fileList, to = destfile) :
expanded 'from' name too long

请问一下,这个是什么原因啊?谢谢!

    tctcab
    谢谢!代码如下:

    data=getFirehoseData(dataset = "BRCA",runDate = "20140115",clinical = TRUE,
                         RNASeqGene =TRUE,mRNAArray = TRUE,Mutation = TRUE ) 

    每次输入后结果都是同样的失败,不知道是不是win10的系统不行吗?谢谢!

      lubingjun

      代码有问题,参数名有误,改成

      library(RTCGAToolbox)
      data=getFirehoseData(dataset = "BRCA",runDate = "20140115",Clinic  = TRUE,
                           RNAseq_Gene =TRUE,mRNA_Array  = TRUE,Mutation = TRUE ) 

      之后可以运行了,不过一看要下个276M的东西吓得立马关了= =

      而且看样子还是下到个R进程里

      这么大的数据还是建议直接到他们网站上下,然后读进R里处理:
      https://gdac.broadinstitute.org/

        tctcab

        谢谢你耐心的回答!代码应该没问题吧,我之前的代码能运行,它运行的结果如下

        data=getFirehoseData(dataset = "BRCA",runDate = "20140115",clinical = TRUE,
        +                      RNASeqGene =TRUE,mRNAArray = TRUE,Mutation = TRUE )
        gdac.broadinstitute.org_BRCA.Clinical_Pick_Tier1.Level_4.2014011500.0.0.tar.gz
        trying URL 'http://gdac.broadinstitute.org/runs/stddata__2014_01_15/data/BRCA/20140115/gdac.broadinstitute.org_BRCA.Clinical_Pick_Tier1.Level_4.2014011500.0.0.tar.gz'
        Content type 'application/x-gzip' length 280806 bytes (274 KB)
        downloaded 274 KB
        
        gdac.broadinstitute.org_BRCA.Clinical_Pick_Tier1.Level_4.2014011500.0.0
        gdac.broadinstitute.org_BRCA.Merge_rnaseq__illuminahiseq_rnaseq__unc_edu__Level_3__gene_expression__data.Level_3.2014011500.0.0.tar.gz
        trying URL 'http://gdac.broadinstitute.org/runs/stddata__2014_01_15/data/BRCA/20140115/gdac.broadinstitute.org_BRCA.Merge_rnaseq__illuminahiseq_rnaseq__unc_edu__Level_3__gene_expression__data.Level_3.2014011500.0.0.tar.gz'
        Content type 'application/x-gzip' length 290063503 bytes (276.6 MB)
        downloaded 276.6 MB
        
        gdac.broadinstitute.org_BRCA.Merge_rnaseq__illuminahiseq_rnaseq__unc_edu__Level_3__gene_expression__data.Level_3.2014011500.0.0
        RNAseq data will be imported! This may take a while!
        Start: 2018-07-18 13:05:02
        Done: 2018-07-18 13:05:06
        gdac.broadinstitute.org_BRCA.Merge_transcriptome__agilentg4502a_07_3__unc_edu__Level_3__unc_lowess_normalization_gene_level__data.Level_3.2014011500.0.0.tar.gz
        
        
        trying URL 'http://gdac.broadinstitute.org/runs/stddata__2014_01_15/data/BRCA/20140115/gdac.broadinstitute.org_BRCA.Merge_transcriptome__agilentg4502a_07_3__unc_edu__Level_3__unc_lowess_normalization_gene_level__data.Level_3.2014011500.0.0.tar.gz'
        Content type 'application/x-gzip' length 38892970 bytes (37.1 MB)
        downloaded 37.1 MB
        
        Error in file.rename(from = fileList, to = destfile) : 
          expanded 'from' name too long

        我猜测是否是因为文件名太长了,然后我改了文件名之后再运行,结果如下

         data=getFirehoseData(dataset = "BRCA",runDate = "20140115",clinical = TRUE,
                              RNASeqGene =TRUE,mRNAArray = TRUE,Mutation = TRUE )
        gdac.broadinstitute.org_BRCA.Clinical_Pick_Tier1.Level_4.2014011500.0.0.tar.gz
        Using locally cached version of ./20140115-BRCA-Clinical.txt
        gdac.broadinstitute.org_BRCA.Merge_rnaseq__illuminahiseq_rnaseq__unc_edu__Level_3__gene_expression__data.Level_3.2014011500.0.0.tar.gz
        Using locally cached version of ./20140115-BRCA-RNAseqGene.txt
        RNAseq data will be imported! This may take a while!
        Start: 2018-07-18 13:12:33
        Done: 2018-07-18 13:12:37
        gdac.broadinstitute.org_BRCA.Merge_transcriptome__agilentg4502a_07_3__unc_edu__Level_3__unc_lowess_normalization_gene_level__data.Level_3.2014011500.0.0.tar.gz
        
        
        Using locally cached version of ./20140115-BRCA-mRNAArray-1.txt
        mRNAArray data will be imported! This may take a while!
        Start: 2018-07-18 13:12:47
        Done: 2018-07-18 13:12:51
        gdac.broadinstitute.org_BRCA.Mutation_Packager_Calls.Level_3.2014011500.0.0.tar.gz
        trying URL 'http://gdac.broadinstitute.org/runs/stddata__2014_01_15/data/BRCA/20140115/gdac.broadinstitute.org_BRCA.Mutation_Packager_Calls.Level_3.2014011500.0.0.tar.gz'
        Content type 'application/x-gzip' length 10446343 bytes (10.0 MB)
        downloaded 10.0 MB
        
        Error in file(file, "rt") : cannot open the connection
        In addition: There were 50 or more warnings (use warnings() to see the first 50)

        不知道到底是哪里出问题了,谢谢!