Description Usage Arguments Value Author(s) Examples
Merge data from the same method or different methods
1 |
... |
metaboSet objects |
metaboSet where all experiments are collated
David Enot david.enot@gustaveroussy.fr
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 | (testfiles=list.files(system.file( package = "GRMeta"),pattern = "txt$",full.names = TRUE))
## Better to give an explicit name for the batch
mydata1=loadAgilentData(ifile =testfiles[2],params = list(AssayName="A1",Batch="B1"))
mydata1
mydata2=loadAgilentData(ifile =testfiles[3],params = list(AssayName="A1",Batch="B2"))
mydata2
## merge 1 and 2
mydatacmb=mergeSet(mydata1,mydata2)
str(mydatacmb$Meta)
## order matters
mydatacmb=mergeSet(mydata2,mydata1)
str(mydatacmb$Meta)
## Infos in Meta/Annot/File will carried forward
mydata1$Meta$Grp=factor(rbinom(nrow(mydata1$Meta),1,.5))
mydatacmb=mergeSet(mydata1,mydata2)
mydatacmb$Meta$Grp
## remerging -> duplicating same samples!!!
mydatacmb2=mergeSet(mydata2,mydatacmb)
(mydatacmb2$File)
mydatacmb2$Sid[order(mydatacmb2$Meta$InjOrder)]
######## two different assays
mydata3=loadAgilentData(ifile =testfiles[1],params = list(AssayName="A2"))
mydatacmb=mergeSet(mydata1,mydata3)
mydatacmb
######## alltogether
mydatacmb=mergeSet(mydata1,mydata2,mydata3)
mydatacmb
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.