美文网首页
Annotationhub/Experimenthub报错问题:

Annotationhub/Experimenthub报错问题:

作者: Hayley笔记 | 来源:发表于2021-01-24 11:53 被阅读0次
    > library(scRNAseq)
    > fluidigm <- ReprocessedFluidigmData()
      |======================================================================| 100%
    
    snapshotDate(): 2020-10-27
    see ?scRNAseq and browseVignettes('scRNAseq') for documentation
    Error: failed to load resource
      name: EH2569
      title: Fluidigm Tophat counts
      reason: Corrupt Cache: resource path
      See vignette section on corrupt cache
      cache: /Users/lhh/Library/Caches/ExperimentHub
      potential duplicate files: 
        1026d4db62c9e_2585
        c96e6bef9ca_2585
    

    You will need to investigate the underlying BiocFileCache for the Hub and remove some or all of the files so that there is only a single entry for the resource path. Call the BiocFileCache constructor with the path listed as cache in the ERROR message.

    > bfc <- BiocFileCache("/Users/lhh/Library/Caches/ExperimentHub")
    > View(bfc)
    

    Now we can query the BiocFileCache using the duplicate files of the ERROR message.

    But when I do the query there is only one value

    > res <- bfcquery(bfc, "2585", field="rpath", exact=FALSE)
    Registered S3 method overwritten by 'cli':
      method     from    
      print.boxx spatstat
    > res
    # A tibble: 1 x 10
      rid   rname create_time access_time rpath rtype fpath last_modified_t… etag 
      <chr> <chr> <chr>       <chr>       <chr> <chr> <chr> <chr>            <chr>
    1 BFC34 EH25… 2021-01-19… 2021-01-19… /Use… web   http… 2019-06-11 11:2… 2a9c…
    # … with 1 more variable: expires <dbl>
    

    The file path of the valid entry is

    > bfcinfo(bfc, rid="BFC34") %>% dplyr::select(rpath)
    # A tibble: 1 x 1
      rpath                                                          
      <chr>                                                          
    1 /Users/lhh/Library/Caches/ExperimentHub/1026d4db62c9e_2585
    

    Therefore the file c96e6bef9ca_2585 should be move or rename.

    > library(ExperimentHub)
    Loading required package: AnnotationHub
    
    Attaching package: 'AnnotationHub'
    
    The following object is masked from 'package:Biobase':
    
        cache
    
    > ah = ExperimentHub()
    > fl <- file.path(hubCache(ah), "c96e6bef9ca_2585")
    > fl
    [1] "/Users/lhh/Library/Caches/ExperimentHub/c96e6bef9ca_2585"
    > unlink(fl)
    

    参考:
    https://bioconductor.org/packages/release/bioc/vignettes/AnnotationHub/inst/doc/TroubleshootingTheCache.html

    相关文章

      网友评论

          本文标题:Annotationhub/Experimenthub报错问题:

          本文链接:https://www.haomeiwen.com/subject/wfkkzktx.html