Description Usage Arguments Details Value Author(s) See Also Examples
This is a generic function.
When implemented as the S4 method of class NWA
, this function creates
an interactome before conducting network analysis.
To use this function for objects of class NWA
:
interactome(object, interactionMatrix, species, link, reportDir = "HTSanalyzerReport", genetic=FALSE, verbose=TRUE)
1 | interactome(object, ...)
|
object |
an object. When this function is implemented as the S4 method of class |
... |
other arguments (see below for the arguments supported by the method of
class |
an interaction matrix including columns 'InteractionType', 'InteractorA' and 'InteractorB'. If this matrix is available, the interactome can be directly built based on it.
a single character value specifying the species for which the data should be read. The current version supports one of the following species: "Dm" ("Drosophila_melanogaster"), "Hs" ("Homo_sapiens"), "Rn" ("Rattus_norvegicus"), "Mm" ("Mus_musculus"), "Ce" ("Caenorhabditis_elegans").
the link (url) where the data should be downloaded (in tab2 format). The default link is version 3.1.71 (valid on Dec. 5 2010).
a single character value specifying the directory to store reports. The BioGRID data set will be downloaded and stored in a subdirectory called 'Data' in 'reportDir'.
a single logical value. If TRUE, genetic interactions will be kept; otherwise, they will be removed from the data set.
a single logical value indicating to display detailed messages (when verbose=TRUE) or not (when verbose=FALSE)
This function provides two options to create an interactome for network analysis. The user can either input an interaction matrix including columns 'InteractionType', 'InteractionA' and 'InteractionB', or set 'species', 'link' and 'genetic' to download data set from BioGRID and extract corresponding interactions to build the interactome.
Another way to set up the interactome is to input a graphNEL
object
when the NWA
object is created (i.e. nwa=new("NWA", pvalues, phenotypes,
interactome)).
In the end, this function will return an updated object with slot
'interactome' as an object of class graphNEL
.
Xin Wang xw264@cam.ac.uk
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 | ## Not run:
##example 1, input interactome when initializing an 'NWA' object
##load p-values and phenotypes
data("KcViab_PVals","KcViab_Data4Enrich")
##load BioGRID interactome for Drosophila Melanogaster
data("Biogrid_DM_Interactome")
##create a NWA (NetWork Analysis) object
nwa <- new("NWA",pvalues=KcViab_PVals, phenotypes=KcViab_Data4Enrich,
interactome=Biogrid_DM_Interactome)
##print nwa
nwa
library(BioNet)
##example 2, build an interactome from Biogrid data base
##create a NWA (NetWork Analysis) object
nwa <- new("NWA", pvalues=KcViab_PVals, phenotypes=KcViab_Data4Enrich)
##print nwa
nwa
##download data from BioGRID and build the interactome
nwa <- interactome(nwa, species="Dm", reportDir="NWATest")
##print nwa again
nwa
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.