[R] Merging listed dataset into one

Seungyeul Yoo seungyeul.yoo at me.com
Thu Jun 28 17:47:57 CEST 2012


Hello,

I'm wondering how I can merge two featuresets into one.

My dataset is two sets of microarray data and it looks like followings:

> rawData
$v1
TilingFeatureSet (storageMode: lockedEnvironment)
assayData: 2197815 features, 59 samples 
  element names: channel1, channel2 
protocolData
  rowNames: LT290677RU_D1_2011-02-16 LT286300LU_D1_2010-07-24 ...
    LT003990RU_D1_2010-11-04 (59 total)
  varLabels: filenamesChannel1 filenamesChannel2 dates1 dates2
  varMetadata: labelDescription channel
phenoData
  rowNames: LT290677RU_D1_2011-02-16 LT286300LU_D1_2010-07-24 ...
    LT003990RU_D1_2010-11-04 (59 total)
  varLabels: sampleID tissue ... Annotation (5 total)
  varMetadata: labelDescription channel
featureData: none
experimentData: use 'experimentData(object)'
Annotation: pd.feinberg.hg18.me.hx1 

$v1.1
TilingFeatureSet (storageMode: lockedEnvironment)
assayData: 2197815 features, 17 samples 
  element names: channel1, channel2 
protocolData
  rowNames: LT282562RM_D1_2010-11-22 LT280646RU_D1_2010-11-22 ...
    LT093297LU_D1_2010-11-12 (17 total)
  varLabels: filenamesChannel1 filenamesChannel2 dates1 dates2
  varMetadata: labelDescription channel
phenoData
  rowNames: LT282562RM_D1_2010-11-22 LT280646RU_D1_2010-11-22 ...
    LT093297LU_D1_2010-11-12 (17 total)
  varLabels: sampleID tissue ... Annotation (5 total)
  varMetadata: labelDescription channel
featureData: none
experimentData: use 'experimentData(object)'
Annotation: pd.feinberg.hg18.me.hx1 

I want to merge rawData$v1 and rawData$v1.1 since they are consistent each other.

I was trying to use "merge" function as merge(rawData$v1, rawData$v1.1) but it failed with error as

Error in as.data.frame.default(x) :
  cannot coerce class 'structure("TilingFeatureSet", package = "oligoClasses")' into a data.frame
Calls: merge ... merge.default -> merge -> as.data.frame -> as.data.frame.default

Can you please help with some advices?

Thanks,

Best regards,

Seungyeul Yoo

Postdoc Fellow,
Institute of Genomics and Multiscale Biology
Department of Genetics and Genomic Sciences
Mount Sinai School of Medicine



More information about the R-help mailing list