## 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)
Run the code above in your browser using DataLab