Perform Active Subnetwork Search
active_snw_search(input_for_search, pin_path, snws_file = "active_snws",
dir_for_parallel_run = NULL, score_quan_thr = 0.8,
sig_gene_thr = 10, search_method = "GR", silent_option = TRUE,
use_all_positives = FALSE, geneInitProbs = 0.1, saTemp0 = 1,
saTemp1 = 0.01, saIter = 10000, gaPop = 400, gaIter = 10000,
gaThread = 5, gaMut = 0, grMaxDepth = 1, grSearchDepth = 1,
grOverlap = 0.5, grSubNum = 1000)
input the input data that active subnetwork search uses. The input must be a data frame containing at least these three columns:
HGNC Gene Symbol
p value obtained through a test, e.g. differential expression/methylation
path to the Protein Interaction Network (PIN) file used in the analysis
name for active subnetwork search output data
directory for parallel run iteration. Only used in the wrapper function (see ?run_pathfindR) (Default = NULL)
active subnetwork score quantile threshold (Default = 0.80)
threshold for minimum number of significant genes (Default = 10)
algorithm to use when performing active subnetwork search. Options are greedy search (GR), simulated annealing (SA) or genetic algorithm (GA) for the search (Default = GR).
boolean value indicating whether to print the messages to the console (FALSE) or print to a file (TRUE) during active subnetwork search (default = TRUE). This option was added because during parallel runs, the console messages get mixed up.
if TRUE: in GA, adds an individual with all positive nodes. In SA, initializes candidate solution with all positive nodes. (Default = FALSE)
For SA and GA, probability of adding a gene in initial solution (Default = 0.1)
Initial temperature for SA (Default = 1.0)
Final temperature for SA (Default = 0.01)
Iteration number for SA (Default = 10000)
Population size for GA (Default = 400)
Iteration number for GA (Default = 200)
Number of threads to be used in GA (Default = 5)
For GA, applies mutation with given mutation rate (Default = 0, i.e. mutation off)
Sets max depth in greedy search, 0 for no limit (Default = 1)
Search depth in greedy search (Default = 1)
Overlap threshold for results of greedy search (Default = 0.5)
Number of subnetworks to be presented in the results (Default = 1000)
A list of genes in every identified active subnetwork that has a score greater than the `score_quan_thr`th quantile and that has at least `sig_gene_thr` affected genes.
# NOT RUN {
active_snw_search(input_for_search, pin_path = "path/to/PIN", search_method = "GR")
active_snw_search(input_for_search, pin_path = "path/to/PIN",
search_method = "SA", saTemp0 = 2, saTemp1 = 0.05)
# }
Run the code above in your browser using DataLab