available: Discover projects with pre-computed HCA files

Description Usage Arguments Details Value Examples

View source: R/available.R

Description

Discover projects with pre-computed HCA files

Usage

1
available(type = c("loom", "mtx.zip"))

Arguments

type

'character(1)' type of archive to import. One of '"loom"' (default) or '"mtx.zip"'.

Details

This function visits https://data.humancellatlas.org/explore/projects and identifies projects for which the 'Matrix' file icon indicates that a matrix is available for download. The return value is a 'tibble' that can be subset to a single project, and then the data retrieved to R using 'import_loom()' or 'import_mtxzip()'.

Value

A 'tibble' describing available projects and the full path to the archive.

Examples

1
2
3
4
5
6
7
8
9
dd <- available("mtx.zip")
dd
dd %>% select(projectTitle)
dd %>%
    filter(grepl("^A single-cell reference", projectTitle))
path <- dd %>%
    filter(row_number() == which.min(size)) %>%
    pull(path)
sce <- import_mtxzip(path)

mtmorgan/HCAmtxzip documentation built on Nov. 24, 2019, 12:26 p.m.