readCompressedData {BeadDataPackR}R Documentation

Extract data for specific bead-types from a compressed file

Description

Given a list of probeIDs this function can scan a compressed .bab file for matching entries and return the data as a data.frame within R, rather than decompressing the data and generating new files.

Usage

readCompressedData(inputFile, path = ".", probeIDs = NULL)

Arguments

inputFile

The name of the .bab file to be read in.

path

Path to where the input file can be found. Default is the current working directory.

probeIDs

List the probe IDs for which data should be obtained. If left NULL then every probe on the array is returned.

Value

If the requested probe IDs are present the function returns a data.frame with one row per bead. If the probes are not found in the file then the function returns NULL and informs the user.

Author(s)

Mike L. Smith

Examples

 
    dataPath <- system.file("extdata", package = "BeadDataPackR")   
    readCompressedData(inputFile = "example.bab", path = dataPath, probeIDs = c(10008, 10010))

[Package BeadDataPackR version 1.45.0 Index]