group_snps {martini} | R 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.

[Package martini version 1.12.0 Index]