Get SNP bin idx
Usage
get_snp_bidx(
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),
merge_cols = NULL
)
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.
- merge_cols
Vector of columns from
bins
to append to thesnp
ranges.