Skip to contents

populate cache with available parquet files if needed, return path to cached file

Usage

geneFromCache(resource, cache = BiocFileCache::BiocFileCache())

Arguments

resource

character(1)

cache

character(1) BiocFileCache-like object

Value

path to local version of resource

Examples

oldop = options()
options(timeout=3600)
gi = geneFromCache("gene_info.parquet")
options(oldop)
arrow::open_dataset(gi) |> dplyr::filter(`#tax_id`==9606) |> head() |> dplyr::collect()
#> # A tibble: 6 × 16
#>   `#tax_id` GeneID Symbol LocusTag Synonyms      dbXrefs chromosome map_location
#>       <int>  <int> <chr>  <chr>    <chr>         <chr>   <chr>      <chr>       
#> 1      9606      1 A1BG   -        A1B|ABG|GAB|… MIM:13… 19         19q13.43    
#> 2      9606      2 A2M    -        A2MD|CPAMD5|… MIM:10… 12         12p13.31    
#> 3      9606      3 A2MP1  -        A2MP          HGNC:H… 12         12p13.31    
#> 4      9606      9 NAT1   -        AAC1|MNAT|NA… MIM:10… 8          8p22        
#> 5      9606     10 NAT2   -        AAC2|NAT-2|P… MIM:61… 8          8p22        
#> 6      9606     11 NATP   -        AACP|NATP1    HGNC:H… 8          8p22        
#> # ℹ 8 more variables: description <chr>, type_of_gene <chr>,
#> #   Symbol_from_nomenclature_authority <chr>,
#> #   Full_name_from_nomenclature_authority <chr>, Nomenclature_status <chr>,
#> #   Other_designations <chr>, Modification_date <int>, Feature_type <chr>