GetCellsInRegion: Get cells in a region

View source: R/utilities.R

GetCellsInRegionR Documentation

Get cells in a region

Description

Extract cell names containing reads mapped within a given genomic region

Usage

GetCellsInRegion(tabix, region, cells = NULL)

Arguments

tabix

Tabix object

region

A string giving the region to extract from the fragments file

cells

Vector of cells to include in output. If NULL, include all cells

Value

Returns a list

Examples

fpath <- system.file("extdata", "fragments.tsv.gz", package="SignacSlim")
GetCellsInRegion(tabix = fpath, region = "chr1-10245-762629")

Honchkrow/SignacSlim documentation built on April 9, 2022, 1:49 a.m.