Description Usage Arguments Value Author(s) References See Also Examples
View source: R/ARTIVAsubnetAnalysis.R
This function estimates a regulatory time-varying network from the
output of function ARTIVAsubnet
.
A graphical representation in a pdf file and estimated values are
provided in text files.
This function is used in function ARTIVAsubnet
when parameter segmentAnalysis=TRUE
. This function can be used
separately for re-computing a time-varying network from the output of function
ARTIVAsubnet
with new analysis parameters
segMinLength
, edgesThreshold
, CPpos
,
layout
, ... see detail below.
1 2 3 4 5 6 | ARTIVAsubnetAnalysis(ARTIVAsubnet=NULL, CPpostDist=NULL, CPsamples=NULL,
coefSamples=NULL, TFnumber=NULL, segMinLength=2, edgesThreshold=0.5,
burn_in=NULL, CPpos=NULL,targetData=NULL, parentData=NULL,
targetName=NULL,parentNames=NULL, savePictures=TRUE,saveEstimations=TRUE,
outputPath=NULL,layout="fruchterman.reingold", silent=FALSE,
inARTIVAsubnet=FALSE , onepage= FALSE)
|
ARTIVAsubnet |
Ouput of function |
CPpostDist |
A list of 2 tables :
1) |
CPsamples |
A matrix with the different iterations (in row)
performed with the |
coefSamples |
A matrix with the different (in row)performed with
the |
TFnumber |
Number of parent genes in the data
|
segMinLength |
Minimal length (number of time points) to define a
temporal segment. Must be - strictly - greater than 1 if there is
no repeated measurements for each time point in arguments
|
edgesThreshold |
Probability threshold for the selection of the
edges of the time-varying regulatory network when
|
burn_in |
Number of initial iterations that are discarded for the
estimation of the model distribution (posterior
distribution). The |
CPpos |
A table containing the desired most significant CP positions (optional, default:
|
targetData |
A vector with the temporal gene expression measurements for the
target gene (i.e. the gene whose regulation factors are looked
for). (optional, default: |
parentData |
A matrix (or a vector if only 1 parent gene) with the temporal gene expression measurements for the proposed parent genes (i.e. potential
regulation factors). Parent genes are shown in row and expression values
in column. (optional, default: |
targetName |
Name of the target gene (optional, default: targetName="Target"). |
parentNames |
A vector with the names for parent gene(s) (optional, default: |
savePictures |
Boolean, if |
saveEstimations |
Boolean, if |
outputPath |
File path to a folder in which the output results have to be saved,
either a complete path or the name of a folder to be created in the
current directory (optional, default: |
layout |
Name of the function determining the placement of the vertices for
drawing a graph, possible values among others:
|
silent |
Boolean, if |
inARTIVAsubnet |
Boolean, if |
onepage |
Boolean, if |
nbSegs |
An integer equal to the number of temporal segments with
the largest value observed in the CP number posterior distribution
(from |
CPposition |
A table containing the most significant CP positions
that delimit |
SegmentPostDist |
Output of function
1) 2) 3) |
network |
A table containing the information to plot (see function
|
S. Lebre and G. Lelandais
S. Lebre, J. Becq, F. Devaux, M. P. H. Stumpf, G. Lelandais (2010) Statistical inference of the time-varying structure of gene-regulation networks BMC Systems Biology, 4:130.
ARTIVAsubnet
, ARTIVAnet
,
traceNetworks
, traceGeneProfiles
,
CP.postDist
, plotCP.postDist
.
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 34 35 36 37 38 39 40 | # Load the ARTIVA R package
library(ARTIVA)
# Load the dataset with simulated gene expression profiles
data(simulatedProfiles)
# Name of the target gene to be analyzed with ARTIVA
targetGene = 1
# Names of the parent genes (typically transcription factors)
parentGenes = c("TF1", "TF2", "TF3", "TF4", "TF5")
# Note that the number of iterations in the RJ-MCMC sampling is reduced
# to 'niter=20000' in this example, but it should be increased (e.g. up to
# 50000) for a better estimation.
# Run the ARTIVAsubnet function
## Not run:
ARTIVAtest = ARTIVAsubnet(targetData = simulatedProfiles[targetGene,],
parentData = simulatedProfiles[parentGenes,],
targetName = targetGene,
parentNames = parentGenes,
segMinLength = 2,
edgesThreshold = 0.6,
niter= 20000,
savePictures=FALSE)
# Re-compute a time-varying network from the output of function
# ARTIVAsubnet with new analysis parameters
analysis2 = ARTIVAsubnetAnalysis(ARTIVAsubnet=ARTIVAtest,
segMinLength = 3,
edgesThreshold = 0.5,
outputPath="ARTIVAsubnet2",
savePictures=FALSE)
# Trace the obtained network.
traceNetworks(analysis2$network, edgesThreshold = 0.3)
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.