# Data preprocessing
if (interactive()){
set.seed(1)
data(yeast) # loading the reduced CDC28 yeast set (from the Mfuzz package)
yeast <- yeast[1:600,] # for illustration
yeast <- filter.NA(yeast) # filters genes with more than 25% of the expression values missing
yeast <- fill.NA(yeast) # for illustration only; rather use knn method for
yeast <- standardise(yeast)
T.yeast <- 85 # cell cycle period (t=85min)
times.yeast <- pData(yeast)$time # time of measurements
F <- fourierscore(yeast,T = T.yeast, times= times.yeast)
# calculates the Fourier scores for yeast genes
# Plot highest scoring gene
plot(times.yeast,exprs(yeast)[order(-F)[1],],type="o",
xlab="Time",ylab="Expression",
main=featureNames(yeast)[order(-F)[1]])
# Plot lowest scoring gene
plot(times.yeast,exprs(yeast)[order(F)[1],],type="o",
xlab="Time",ylab="Expression",
main=featureNames(yeast)[order(F)[1]])
}
Run the code above in your browser using DataLab