readCompressedData: Extract data for specific bead-types from a compressed file

Description Usage Arguments Value Author(s) Examples

View source: R/scanBabFile.R

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

1
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

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

BeadDataPackR documentation built on May 2, 2018, 4 a.m.