GetCellsInRegion: Get cells in a region

Description Usage Arguments Value Examples

View source: R/utilities.R

Description

Extract cell names containing reads mapped within a given genomic region

Usage

1
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

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

Signac documentation built on Dec. 11, 2021, 9:55 a.m.