Skip to contents

Split loaded twas_weights_results into batches based on maximum memory usage

Usage

batch_load_twas_weights(
  twas_weights_results,
  meta_data_df,
  max_memory_per_batch = 750
)

Arguments

twas_weights_results

List of loaded gene data by load_twas_weights()

meta_data_df

Dataframe containing gene metadata with region_id and TSS columns

max_memory_per_batch

Maximum memory per batch in MB (default: 750)

Value

List of batches, where each batch contains a subset of twas_weights_results