maf_data_set_wrapper_load_data: Load data into memory

View source: R/data_loading_utils.R

maf_data_set_wrapper_load_dataR Documentation

Load data into memory

Description

Uses the functions in maf_dataset_wrapper to load data into the loaded_data element and update status.

Usage

maf_data_set_wrapper_load_data(maf_dataset_wrapper)

Arguments

maf_dataset_wrapper

the wrapper of the dataset you want to load into memory (maf_dataset_wrapper)

Details

It is only the maf object that is loaded. RNA data stays sitting in a file until it is retrieved via maf_dataset_wrapper_get_rnaseq

Value

a copy of the original wrapper with status and loaded data updated. (maf_dataset_wrapper)

See Also

Other data_set_wrapper_loading: maf_data_set_wrapper_unload_data()

Examples

#Generate wrapper
my_data <- CRUX:::tcga_dataset_to_maf_dataset_wrapper(
  maf_data_pool = CRUX:::new_maf_data_pool(), 
  tcga_study_abbreviation = "ACC"
)

#Load data
my_data <- CRUX:::maf_data_set_wrapper_load_data(my_data)

#Access loaded data
print(my_data$loaded_data)

#Unload when finished
my_data <- CRUX:::maf_data_set_wrapper_unload_data(my_data)


CCICB/CRUX documentation built on Jan. 28, 2024, 10:12 p.m.