GRN
object.add_TF_gene_correlation.Rd
The information is currently stored in GRN@connections$TF_genes.filtered
. Note that raw p-values are not adjusted.
add_TF_gene_correlation(
GRN,
corMethod = "pearson",
nCores = 1,
forceRerun = FALSE
)
Object of class GRN
Character. One of pearson
, spearman
or bicor
. Default pearson
. Method for calculating the correlation coefficient.
For pearson
and spearman
, see cor for details. bicor
denotes the *biweight midcorrelation*, a correlation measure based on medians as
calculated by WGCNA::bicorAndPvalue
. Both spearman
and bicor
are considered more robust measures that are less prone to be affected by outliers.
Integer >0. Default 1. Number of cores to use.
A value >1 requires the BiocParallel
package (as it is listed under Suggests
, it may not be installed yet).
TRUE
or FALSE
. Default FALSE
. Force execution, even if the GRN object already contains the result. Overwrites the old results.
An updated GRN
object, with additional information added from this function.
# See the Workflow vignette on the GRaNIE website for examples
GRN = loadExampleObject()
#> Downloading GRaNIE example object from https://git.embl.de/grp-zaugg/GRaNIE/-/raw/master/data/GRN.rds
#> Finished successfully. You may explore the example object. Start by typing the object name to the console to see a summaty. Happy GRaNIE'ing!
GRN = add_TF_gene_correlation(GRN, forceRerun = FALSE)
#> INFO [2024-04-04 17:34:36] Data already exists in object or the specified file already exists. Set forceRerun = TRUE to regenerate and overwrite.
#> INFO [2024-04-04 17:34:36] Finished successfully. Execution time: 0 secs