Hi,
Im working with a 53 sample of OTU sequences and I was hoping to create a new MRexperiment with a subset of the samples. I would like to use the sample name as the feature for which to select the samples by.
I am able to use the: samplesToKeep = which(pData(obj)$sampleName == "XX") command and with the "featuresToKeep" i can create a new MR experiment. but I can only achieve to get one sample at a time using the sample name, so I go from :
MRexperiment (storageMode: environment)
assayData: 1319558 features, 53 samples
element names: counts
protocolData: none
phenoData
sampleNames: Yf 717 ... P4 (53 total)
varLabels: ProjectName LinkerPrimerSequence ... BarcodeName (5 total)
varMetadata: labelDescription
featureData
featureNames: denovo0 denovo1 ... denovo1319557 (1319558 total)
fvarLabels: taxonomy1 taxonomy2 ... taxonomy8 (8 total)
fvarMetadata: labelDescription
experimentData: use 'experimentData(object)'
to
MRexperiment (storageMode: environment)
assayData: 1319558 features, 1 samples
element names: counts
protocolData: none
phenoData
sampleNames: Yc
varLabels: ProjectName LinkerPrimerSequence ... BarcodeName (5 total)
varMetadata: labelDescription
featureData
featureNames: denovo0 denovo1 ... denovo1319557 (1319558 total)
fvarLabels: taxonomy1 taxonomy2 ... taxonomy8 (8 total)
fvarMetadata: labelDescription
experimentData: use 'experimentData(object)'
Is there a way that I can get add more than one samples to the subset? or if I separate the samples individually, is there a way I can merge those MRexperiment??
thank you for your time
that worked great!! thank you so much!