Learn R Programming

SimBindProfiles (version 1.10.0)

readSgrFiles: Read sgr data

Description

Function to read sgr files into a list object, quantile normalise signal.

Usage

readSgrFiles(X, dataPath = getwd(), fileExt=".txt", normalise = TRUE)

Arguments

X
object of class ExpressionSet
dataPath
path to the directory holding the data sgr data files
normalise
logical, should data be quantil normalised
fileExt
character specifying the filename extension

Value

Details

The function reads the data files in sgr file tab delimited format: chr, position, signal. All data sets must be from the same array platform and have the same chromosome names and positions. The data is read and then quantile normalised and stored as an ExpressionSet.

See Also

ExpressionSet

Examples

Run this code
  sgrfiles <- c("SoxNDam_trunc","SoxN-DDam_trunc","DDam_trunc")
  dataPath <- system.file("extdata",package="SimBindProfiles")
  readTestSGR <- readSgrFiles(X=sgrfiles, dataPath)

Run the code above in your browser using DataLab