load_fst_or_h5 | R Documentation |
Function try to load 'fst' arrays, if not found, read 'HDF5' arrays
load_fst_or_h5(
fst_path,
h5_path,
h5_name,
fst_need_transpose = FALSE,
fst_need_drop = FALSE,
ram = FALSE
)
fst_path |
'fst' file cache path |
h5_path |
alternative 'HDF5' file path |
h5_name |
'HDF5' data name |
fst_need_transpose |
does 'fst' data need transpose? |
fst_need_drop |
drop dimensions |
ram |
whether to load to memory directly or perform lazy loading |
RAVE stores data with redundancy. One electrode data
is usually saved with two copies in different formats: 'HDF5' and
'fst', where 'HDF5' is cross-platform and supported by multiple
languages such as Matlab
, Python
, etc, while 'fst'
format is supported by R only, with super high read/write speed.
load_fst_or_h5
checks whether the presence of 'fst' file,
if failed, then it reads data from persistent 'HDF5' file.
If 'fst' cache file exists, returns LazyFST
object,
otherwise returns LazyH5
instance
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.