filterGRNAndConnectGenes | R Documentation |
This is one of the main integrative functions of the GRN
package. It has two main functions: Filtering the TF-peak and peak-gene connections that have been identified before, and combining the 3 major elements (TFs, peaks, genes) into one data frame, with one row per connection. Here, a connection can either be a TF-peak, peak-gene or TF-peak-gene link, depending on the parameters.
Internally, first, the TF-peak are filtered before the peak-gene connections are added for reasons of memory and computational efficacy: It takes a lot of time and particularly space to connect the full GRN with all peak-gene connections - as most of the links have weak support (i.e., high FDR), first filtering out unwanted links dramatically reduces the memory needed for the combined GRN
filterGRNAndConnectGenes( GRN, TF_peak.fdr.threshold = 0.2, TF_peak.connectionTypes = "all", peak_gene.p_raw.threshold = NULL, peak_gene.fdr.threshold = 0.2, peak_gene.fdr.method = "BH", peak_gene.IHW.covariate = NULL, peak_gene.IHW.nbins = 5, gene.types = c("protein_coding", "lincRNA"), allowMissingTFs = FALSE, allowMissingGenes = TRUE, peak_gene.r_range = c(0, 1), peak_gene.selection = "all", peak_gene.maxDistance = NULL, filterTFs = NULL, filterGenes = NULL, filterPeaks = NULL, TF_peak_FDR_selectViaCorBins = FALSE, filterLoops = TRUE, outputFolder = NULL, silent = FALSE )
GRN |
Object of class |
TF_peak.fdr.threshold |
Numeric[0,1]. Default 0.2. Maximum FDR for the TF-peak links. Set to 1 or NULL to disable this filter. |
TF_peak.connectionTypes |
Character vector. Default |
peak_gene.p_raw.threshold |
Numeric[0,1]. Default NULL. Threshold for the peak-gene connections, based on the raw p-value. All peak-gene connections with a larger raw p-value will be filtered out. |
peak_gene.fdr.threshold |
Numeric[0,1]. Default 0.2. Threshold for the peak-gene connections, based on the FDR. All peak-gene connections with a larger FDR will be filtered out. |
peak_gene.fdr.method |
Character. Default "BH". One of: "holm", "hochberg", "hommel", "bonferroni", "BH", "BY", "fdr", "none", "IHW". Method for adjusting p-values for multiple testing. If set to "IHW", independent hypothesis weighting will be performed, and a suitable covariate has to be specified for the parameter |
peak_gene.IHW.covariate |
Character. Default NULL. Name of the covariate to use for IHW (column name from the table thatis returned with the function |
peak_gene.IHW.nbins |
Integer or "auto". Default 5. Number of bins for IHW. Only relevant if |
gene.types |
Character vector of supported gene types. Default |
allowMissingTFs |
|
allowMissingGenes |
|
peak_gene.r_range |
Numeric(2). Default |
peak_gene.selection |
|
peak_gene.maxDistance |
Integer >0. Default |
filterTFs |
Character vector. Default |
filterGenes |
Character vector. Default |
filterPeaks |
Character vector. Default |
TF_peak_FDR_selectViaCorBins |
|
filterLoops |
|
outputFolder |
Character or |
silent |
|
The same GRN
object, with the filtered and merged TF-peak and peak-gene connections in the slot connections$all.filtered.
visualizeGRN
addConnections_TF_peak
addConnections_peak_gene
# See the Workflow vignette on the GRaNIE website for examples GRN = loadExampleObject() GRN = filterGRNAndConnectGenes(GRN)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.