CountFragments {Signac}R Documentation

Count fragments

Description

Count total fragments per cell barcode present in a fragment file.

Usage

CountFragments(fragments, cells = NULL, max_lines = NULL, verbose = TRUE)

Arguments

fragments

Path to a fragment file. If a list of fragment files is provided, the total fragments for each cell barcode across all files will be returned

cells

Cells to include. If NULL, include all cells

max_lines

Maximum number of lines to read from the fragment file. If NULL, read all lines in the file.

verbose

Display messages

Value

Returns a data.frame with the following columns:

Examples

fpath <- system.file("extdata", "fragments.tsv.gz", package="Signac")
counts <- CountFragments(fragments = fpath)

[Package Signac version 1.13.0 Index]