barcodeInSnapFile: Check barcode existance in snap file

View source: R/snap-utilities.R

barcodeInSnapFileR Documentation

Check barcode existance in snap file

Description

This function takes an array of barcodes and a snap-format file as input and check whether selected barcodes exist in the snap file.

Usage

barcodeInSnapFile(barcode, file)

Arguments

barcode

An array of selected barcodes.

file

A snap format file.

Value

Return an array of logical variable indicates whether the barcode exists in snap file.

Examples

file.name = system.file("extdata", "demo.snap", package = "SnapATAC");
barcodes = c("ACATTGGCAACCAGGTTGCTGGTATTGGAAGT", "ACATTGGCAAGAGGCAACAAGGATATCTGAGT");
barcodeInSnapFile(barcodes, file.name);


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