overlap_annot_hits_w_baseline: Map annotation SNPs overlapping the baseline model back to...

Description Usage Arguments Value

View source: R/LDSC_Creatingannot_Functions.R

Description

Function is used to map annotation SNPs overlapping the baseline model back to the full baseline model, with a column of 1s and 0s to distinguish between SNPs overlapping the baseline model (1) and those that do not overlap (0). Function is intended for use after using the overlap_annot_list() function.

Usage

1
overlap_annot_hits_w_baseline(list_of_annotations, BM, cores = 2)

Arguments

list_of_annotations

List of annotation dataframes containing only those SNPs that were found to overlap the baseline model using the overlap_annot_list() function.

BM

Baseline model with columns: CHR, BP, SNP, CM.

cores

integer. Number of cores to parallelise across. Default = 2.

Value

List of annotations with all SNPs present in the baseline model, in addition to a column distinguishing between annotation SNPs present in the baseline model (1) and those not found within the baseline model (0).


RHReynolds/LDSCforRyten documentation built on Sept. 27, 2021, 5:20 p.m.