Question: LumiBatch: problem when renaming samples
11.0 years ago by
Cei Abreu-Goodger • 820
Cei Abreu-Goodger • 820 wrote:
Hi all, this seems like a bug to me, but please correct me if I'm doing something wrong. If I rename the samples of a LumiBatch object, I can no longer subset them by name (with numbers it still works). Here's an example, followed by my sessionInfo. library(lumi) data(example.lumi) # This works example.lumi[,sampleNames(example.lumi)] # But if I rename the samples sampleNames(example.lumi) <- gsub("0","",sampleNames(example.lumi)) # It no longer works example.lumi[,sampleNames(example.lumi)] #Error in example.lumi[, sampleNames(example.lumi)] : # subscript out of bounds ================================================== > sessionInfo() R version 2.7.0 (2008-04-22) i386-apple-darwin8.10.1 locale: C attached base packages:  stats graphics grDevices datasets tools utils methods  base other attached packages:  lumi_1.6.0 mgcv_1.3-30 affy_1.18.0  preprocessCore_1.2.0 affyio_1.8.0 Biobase_2.0.0 -- The Wellcome Trust Sanger Institute is operated by Genome Research Limited, a charity registered in England with number 1021457 and a company registered in England with number 2742969, whose registered office is 215 Euston Road, London, NW1 2BE.
ADD COMMENT • link •