Fit statistical models to infer gene regulatory relationships
fit_models(
object,
regulators = NULL,
targets = NULL,
network_name = paste0(method, "_network"),
peak_to_gene_method = c("Signac", "GREAT"),
upstream = 1e+05,
downstream = 0,
extend = 1e+06,
only_tss = FALSE,
peak_to_gene_domains = NULL,
gene_cor_threshold = 0.1,
peak_cor_threshold = 0.1,
aggregate_rna_col = NULL,
aggregate_peaks_col = NULL,
method = c("srm", "glm", "glmnet", "cv.glmnet", "xgb", "susie"),
interaction_term = ":",
adjust_method = "fdr",
scale = FALSE,
verbose = TRUE,
cores = 1,
celltype = NULL,
...
)
# S4 method for class 'CSNObject'
fit_models(
object,
regulators = NULL,
targets = NULL,
network_name = paste0(method, "_network"),
peak_to_gene_method = c("Signac", "GREAT"),
upstream = 1e+05,
downstream = 0,
extend = 1e+06,
only_tss = FALSE,
peak_to_gene_domains = NULL,
gene_cor_threshold = 0.1,
peak_cor_threshold = 0.1,
aggregate_rna_col = NULL,
aggregate_peaks_col = NULL,
method = c("srm", "glm", "glmnet", "cv.glmnet", "xgb", "susie"),
interaction_term = ":",
adjust_method = "fdr",
scale = FALSE,
verbose = TRUE,
cores = 1,
celltype = NULL,
...
)
# S4 method for class 'matrix'
fit_models(
object,
regulators = NULL,
targets = NULL,
network_name = paste0(method, "_network"),
peak_to_gene_method = c("Signac", "GREAT"),
upstream = 1e+05,
downstream = 0,
extend = 1e+06,
only_tss = FALSE,
peak_to_gene_domains = NULL,
gene_cor_threshold = 0.1,
peak_cor_threshold = 0.1,
aggregate_rna_col = NULL,
aggregate_peaks_col = NULL,
method = c("srm", "glm", "glmnet", "cv.glmnet", "xgb", "susie"),
interaction_term = ":",
adjust_method = "fdr",
scale = FALSE,
verbose = TRUE,
cores = 1,
celltype = NULL,
...
)
The input data for model fitting
A character vector of regulators
A character vector of target genes
Name for the inferred network
Method to link peaks to genes ("Signac" or "GREAT")
Distance upstream of TSS to consider
Distance downstream of TSS to consider
Extension distance for GREAT method
Whether to measure distance from TSS only
Custom regulatory domains
Correlation threshold for TFs
Correlation threshold for peaks
Column name for RNA aggregation
Column name for peaks aggregation
Statistical method for model fitting
Type of interaction variable
Method for p-value adjustment
Whether to scale the data
Whether to show progress messages
Number of cores for parallel processing
Current cell type being processed
Additional arguments passed to methods
A list containing model coefficients and fit statistics