## valid character strings for colClasses
names(slot(getClass("XString"), "subclasses"))
dirPath <- system.file('extdata', 'maq', package='ShortRead')
colClasses <- rep(list(NULL), 16)
colClasses[c(1, 15, 16)] <- c("BString", "DNAString", "BString")
## read one file
readXStringColumns(dirPath, "out.aln.1.txt", colClasses=colClasses)
## read all files into a single object for each column
res <- readXStringColumns(dirPath, colClasses=colClasses)
Run the code above in your browser using DataLab