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

Description Usage Arguments Details Value Examples

View source: R/collections.R

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

1

Arguments

x

list, SimpleList, environment or something with names and [[ methods

dir

character, path to directory holding all BigMatrix files

Details

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

Value

x param, with modified BigMatrix objects.

Examples

1
2
3
## 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") 

Example output

Loading required package: bigmemory

bigmemoryExtras documentation built on Nov. 8, 2020, 5:17 p.m.