Learn R Programming

topr (version 2.0.1)

match_by_pos: Get variants that overlap between two datasets

Description

match_by_pos()

Usage

match_by_pos(df1, df2, verbose = NULL, show_full_output = FALSE)

Value

A list containing two dataframes, one of overlapping snps and the other snps not found in the second input dataset

Arguments

df1

A dataframe of variants, has to contain CHROM and POS

df2

A dataframe of variants, has to contain CHROM and POS

verbose

A logical scalar (default: FALSE). Assign to TRUE to get information on which alleles are matched and which are not.

show_full_output

A logical scalar (default:FALSE). Assign to TRUE to show the full output from this function

Examples

Run this code
if (FALSE) {
CD_UKBB_index_snps <- get_lead_snps(CD_UKBB)
match_by_pos(CD_UKBB_index_snps, CD_FINNGEN)
}

Run the code above in your browser using DataLab