calculate_windowed_ld: Calculate average LD values in sliding windows

View source: R/binning_functions.R

calculate_windowed_ldR Documentation

Calculate average LD values in sliding windows

Description

This function will take as input a tibble containing a PLINK LD file loaded with load_plink_ld(), calculate mean LD values (based on the stat column values), and return a new tibble.

Usage

calculate_windowed_ld(input, window, step)

Arguments

input

A tibble constructed with load_plink_ld

window

Size of window, in bp, to calculate mean LD in

step

Step size between windows

Value

A four-column tibble containing summary statistics


nwvankuren/gwplotting documentation built on July 5, 2024, 4:24 p.m.