downloadSpataObject: Download spata objects

View source: R/download.R

downloadSpataObjectR Documentation

Download spata objects

Description

Downloads a spata object and returns it. For convenient downloads of multiple spata objects check out downloadSpataObjects().

Usage

downloadSpataObject(
  sample_name,
  overwrite = FALSE,
  folder = base::getwd(),
  file = NULL,
  in_shiny = FALSE,
  verbose = TRUE,
  ...
)

Arguments

sample_name

Character value. The name of the sample you want to download. Use validSampleNames() to obtain all valid input options.

overwrite

Logical. Must be set to TRUE if file directories under which downloaded files are about to be saved already exist.

folder

Character value. If character, specifies the output folder in which the spata object is saved. Defaults to the working directory.

file

The filename of the spata object. Must end with '.RDS'. By default the file it is 'NULL' which makes the function skip the saving step. Set to character, if you want the object to be saved.

verbose

Logical. If set to TRUE informative messages regarding the computational progress will be printed.

(Warning messages will always be printed.)

...

Used to absorb deprecated arguments or functions.

Details

The downloaded spata object is immediately saved after the download before it is returned by the function.

Value

The downloaded spata object.

Examples


# only download
downloadSpataObject(sample_name = "275_T", folder = getwd())

# download AND assign
object <- downloadSpataObject(sample_name = "275_T", folder = getwd())

# only assign (default)
object <- downloadSpataObject(sample_name = "275_T", file = NULL)



theMILOlab/SPATAData documentation built on May 13, 2023, 10:42 a.m.