Bin SNPs into genomic segments
Usage
bin_snp_data(
snp,
tilewidth = 1e+07,
respect_chr_arms = FALSE,
select_chrs = NULL,
bs_genome = NULL,
bins = get_tiled_bins(bs_genome = bs_genome, tilewidth = tilewidth, select_chrs =
select_chrs, respect_chr_arms = respect_chr_arms)
)
Arguments
- snp
SingleCellExperiment SNP object generated by read_vartrix
- tilewidth
Bin size
- respect_chr_arms
logical If
TRUE
, bins will be created with respect to chromosome arms (ie. not crossing arm boundries)- select_chrs
Vector of chromosomes to include
- bs_genome
A BSgenome object
- bins
GRanges object with genome bins. Automatically generated by get_tiled_bins if not provided.