# NOT RUN {
# load a standard PhyloExpressionSet
data(PhyloExpressionSetExample)
# in a standard PhyloExpressionSet,
# column one and column two denote a standard
# phylostratigraphic map
PhyloMap <- PhyloExpressionSetExample[ , 1:2]
# look at the phylostratigraphic map standard
head(PhyloMap)
# in a standard PhyloExpressionSet, column two combined
# with column 3 - N denote a standard ExpressionMatrix
ExpressionMatrixExample <- PhyloExpressionSetExample[ , c(2,3:9)]
# these two data sets shall illustrate an example
# phylostratigraphic map that is returned
# by a standard phylostratigraphy run, and a expression set
# that is the result of expression data analysis
# (background correction, normalization, ...)
# now we can use the MatchMap function to merge both data sets
# to obtain a standard PhyloExpressionSet
PES <- MatchMap(PhyloMap, ExpressionMatrixExample)
# note that the function returns a head()
# of the matched gene ids to enable
# the user to find potential mis-matches
# the entire procedure is analogous to merge()
# with two data sets sharing the same gene ids
# as column (primary key)
PES_merge <- merge(PhyloMap, ExpressionMatrixExample)
# }
Run the code above in your browser using DataLab