group_snps {martini} | R Documentation |
Groups SNPs closer than a specifiec threshold of distance.
group_snps(bed, chr_col, pos_col, threshold)
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. |
A data.frame in bed format, with the same dimensions as the original, but with the groups.