Learn R Programming

SnapATAC (version 1.0.0)

extractReads: 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