Skip to contents

Import an ASAP or Cell Press Key Resources Table

Usage

import_asap(path, sheet = 1, title = NULL)

Arguments

path

A file path (csv/tsv/xlsx) or a data frame already read in.

sheet

Worksheet (for xlsx).

title

Optional title for the resulting table.

Value

A krt_tbl; profile "asap" for a six-column ASAP sheet, or "star-methods" for a Cell Press three-column table.

Examples

f <- tempfile(fileext = ".csv")
writeLines(export_asap(krt_example), f)
#> Warning: lossy-export: 14 field(s) are not preserved as columns in 'asap': resource_id, antibody_host, antibody_clonality, target, notes, cellosaurus_id, authentication_method, authentication_date, mycoplasma_status, organism.
k <- import_asap(f)
length(k$resources)
#> [1] 6