Learn R Programming

SnapATAC (version 1.0.0)

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

Run this code
# NOT RUN {
file.name = system.file("extdata", "demo.snap", package = "SnapATAC");
barcodes = c("ACATTGGCAACCAGGTTGCTGGTATTGGAAGT", "ACATTGGCAAGAGGCAACAAGGATATCTGAGT");
barcodeInSnapFile(barcodes, file.name);

# }

Run the code above in your browser using DataLab