create_snp_pairs: Create a table of SNP pairs

View source: R/create_snp_pairs.R

create_snp_pairsR Documentation

Create a table of SNP pairs

Description

This function creates a data table of SNP pairs to be used in DAEQTL mapping. Essentially, this function looks for neighboring SNPs, i.e. within a genomic window (specified with window_size) and creates a data table with those SNP pairs, in long format. Check the vignette('snp-pairs') to understand when you might need to use this function.

Usage

create_snp_pairs(snp_table, window_size = 500000L)

Arguments

snp_table

A data table of SNP to be used in DAEQTL mapping. Typically, this object is created with create_snp_table(). See vignette('snp-pairs') for context.

window_size

A genomic window size, in base pairs. Default is 500 kb, up and down the DAE SNP, i.e. a window of 1 Mb around the DAE SNP.

Value

A data table.


maialab/daeqtlr documentation built on May 18, 2022, 6:53 a.m.