Learn R Programming

bigmemoryExtras (version 1.18.1)

updateBackingfiles: Update directory for BigMatrix objects in a collection to new location

Description

Update directory for BigMatrix objects in a collection to new location. Assumes files have already been moved on the filesystem. Assumes names of description and data files are the same. The collection can contain a mix of BigMatrix objects and other types. The other types will be not be touched and will be returned as they are.

Usage

updateBackingfiles(x, dir)

Arguments

x
list, SimpleList, environment or something with names and [[ methods
dir
character, path to directory holding all BigMatrix files

Value

x param, with modified BigMatrix objects.

Details

If you have renamed specific backing files, you will want to update the backingfile field of the relevant BigMatrix objects.

Examples

Run this code
## Not run:  list = updateBackingfiles(list, "/new/path/to/bigmat/dir") 
## Not run:  assays(se) = updateBackingfiles(assays(se), "/new/path/to/bigmat/dir") 
## Not run:  assayData(eset) = updateBackingfiles(assayData(eset), "/new/path/to/bigmat/dir") 

Run the code above in your browser using DataLab