chunk_windows: Divide a list of SNP windows into a chunk for each thread

View source: R/chunk_windows.R

chunk_windowsR Documentation

Divide a list of SNP windows into a chunk for each thread

Description

Divide a list of SNP windows into a chunk for each thread

Usage

chunk_windows(pre_allocated_SNP_windows, n_thread)

Arguments

pre_allocated_SNP_windows

Output from pre_allocate, which is a list of lists, with each sub-list containing elements as described in documentation for extract_window

n_thread

An integer indicating the number of threads to be used for multithreading

Value

a list of lists of lists, in which the list of lists passed by the 'pre_allocated_SNP_windows' argument is divided into a number of lists indicated by the 'n_threads' argument

Examples

data("small_pre_allocated_windows")
pre_allocated_SNP_windows <- chunk_windows(
  pre_allocated_SNP_windows = small_pre_allocated_windows,
  n_thread = 2)


naglemi/mtmcskat documentation built on Aug. 23, 2023, 5:35 p.m.