count_snps_in_bins: Get how many SNPs variation fall within each bin in the...

View source: R/snp_utils_plot.R

count_snps_in_binsR Documentation

Get how many SNPs variation fall within each bin in the different regions of the bed file.

Description

Get how many SNPs variation fall within each bin in the different regions of the bed file.

Usage

count_snps_in_bins(
  df,
  snp_ID_col = "RefSNP_ID",
  left_slop,
  right_slop,
  left_bins_num = 50,
  centre_bins_num = 50,
  right_bins_num = 25,
  start_centre_len = 39,
  end_centre_len = 39,
  check_bins = T
)

Arguments

df
snp_ID_col
left_slop
right_slop
left_bins_num
centre_bins_num

number of bins to divide the centre region (before slopping).

right_bins_num
start_centre_len

Do not bin all centre region at once. Just consider the first N part of the centre region.

end_centre_len

Just consider the last N part of the centre region.

check_bins

Value

A data.frame


Ni-Ar/niar documentation built on Feb. 3, 2025, 9:25 a.m.