Signac (version 0.2.4)

GetCellsInRegion: GetCellsInRegion

Description

Extract cell names containing reads mapped within a given genomic region

Usage

GetCellsInRegion(tabix, region, sep = c("-", "-"), cells = NULL)

Arguments

tabix

Tabix object

region

A string giving the region to extract from the fragments file

sep

Vector of separators to use for genomic string. First element is used to separate chromosome and coordinates, second separator is used to separate start and end coordinates.

cells

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

Value

Returns a list

Examples

Run this code
# NOT RUN {
fpath <- system.file("extdata", "fragments.tsv.gz", package="Signac")
GetCellsInRegion(tabix = fpath, region = "chr1-10245-762629")
# }

Run the code above in your browser using DataLab