Description Usage Arguments Details Value Author(s) See Also Examples
Forms a chosen window of two data matrices to use for
fit.dependency.model
either iteratively picking nearest genes or
picking same number of genes from both directions. sparse.window
forms a window around one sample in the first data set with a number of
samples from the second data set.
1 2 3 | fixed.window(X, Y, middleIndex, windowSize)
iterative.window(X, Y, middleIndex, windowSize)
sparse.window(X, Y, xIndex, windowSize)
|
X |
First data set. In |
Y |
Second data set. |
middleIndex |
Index of middle position for window. |
xIndex |
Index of middle position in |
windowSize |
Number of genes in window. In |
Window contains windowSize nearest genes. Warning is given if windowSize genes is not found in the same chromosomal arm. Data of both data sets is normalised so that each genes data has zero mean.
List of window data:
X |
window of the first data set |
Y |
window of the second data set |
loc |
location of gene |
geneName |
name of the gene |
edge |
logical; TRUE if iteration to one direction has stopped because edge of data in chromosomal arm has been found. |
fail |
logical; TRUE if chromosomal arm contains less than windowSize genes. |
Olli-Pekka Huovilainen ohuovila@gmail.com
Dependency model fitting: fit.dependency.model
1 2 3 4 5 6 7 8 9 10 11 12 13 | data(chromosome17)
window <- iterative.window(geneExp, geneCopyNum, 30, 10)
model <- fit.dependency.model(window$X, window$Y)
# Conversion from DependencyModel to GeneDependencyModel so that gene name and location can be stored
model <- as(model,"GeneDependencyModel")
setGeneName(model) <- window$geneName
setLoc(model) <- window$loc
model
window <- fixed.window(geneExp, geneCopyNum, 10, 10)
model <- fit.dependency.model(window$X, window$Y)
model
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.