extractReads: Extract Reads By Barcodes

View source: R/snap-utilities.R

extractReadsR Documentation

Extract Reads By Barcodes

Description

This function takes a barcode list and snap file as input and quickly extract reads belonging to the given barcodes.

Usage

extractReads(barcodes, files, do.par = TRUE, num.cores = 1)

Arguments

barcodes

A vector contains the selected barcodes.

files

A vector contains the snap file that barcodes belong to.

do.par

A logic variable indicates weather to run this in parallel with multiple processors.

num.cores

Number of processors to use.

Value

Returns A GenomicRanges object that contains the reads


r3fang/SnapATAC documentation built on March 29, 2022, 4:33 p.m.