prune_snps: Prunes a collection of SNPs provided in a dataframe. The...

Description Usage Arguments Value

View source: R/proxy_search.R

Description

Prunes a collection of SNPs provided in a dataframe. The method is as follows:

Usage

1
prune_snps(data_with_rsids, ld_pairs, r2_threshold = 0.05)

Arguments

data_with_rsids

an input dataframe that includes column rsid

ld_pairs

the result from calling get_LD_pairs matrix on the collection of rsids (and their contigs) in data_with_rsids

r2_threshold

the (r^2) threshold to use for considering two snps to be in LD

Value

a subset of the original dataframe, pruned according to some method....


richardslab/MRutils documentation built on Dec. 22, 2021, 4 p.m.