write_table: Read and write metadata to disk

Description Usage Arguments Value Functions

Description

These functions read and write to/from a data frame of NCBI metadata (a BioSamples spreadsheet, SRA metadata, or run info) to/from a file in TSV format.

Usage

1
2
3
4
write_table(data, fp = NULL, fp_suffix = "data", overwrite = FALSE,
  ...)

read_table(fp, ...)

Arguments

data

data frame of metadata

fp

file path to save text. If NULL, will be determined by the submission attribute on data, if present, and fp_suffix, if given, relative to the current working directory.

fp_suffix

A filename suffix to use when constructing output file path if fp is not given.

overwrite

should existing files be replaced? If FALSE (default), an existing file throws an error. If TRUE, an existing file is replaced without any prompting.

...

additional arguments for utils::write.table

Value

The file path written to, for write_table, or a data frame read, for read_table.

Functions


ressy/srahelper documentation built on May 29, 2019, 11:03 p.m.