group_snps: Groups nearby SNPs

View source: R/viz.R

group_snpsR Documentation

Groups nearby SNPs

Description

Groups SNPs closer than a specifiec threshold of distance.

Usage

group_snps(bed, chr_col, pos_col, threshold)

Arguments

bed

data.frame containing at least two properties (chromosome and position) of a set of SNPs.

chr_col

Name of the column containing the SNP chromosome.

pos_col

Name of the column containing the SNP position.

threshold

Maximum distance to group two SNPs group.

Value

A data.frame in bed format, with the same dimensions as the original, but with the groups.


hclimente/martini documentation built on Feb. 26, 2024, 6:23 p.m.