- rna
A Seurat object or a matrix containing single-cell RNA expression data.
- sender
Cell type designated as the ligand sender (character).
- receiver
Cell type designated as the receptor receiver (character).
- lr_database
A data frame of ligand-receptor pairs with columns "ligand_gene_symbol" and "receptor_gene_symbol".
- sample_col
Metadata column name (character) for sample identifiers in Seurat mode; Matrix mode uses column index (numeric).
- cell_type_col
Metadata column name (character) for cell type in Seurat mode; Matrix mode uses column index (numeric).
- id_sep
Separator used in matrix column names to split sample and cell type (e.g., -- for "Cardiac--sample1"). Only used in Matrix mode.
- min_cells
Minimum number of cells per sample for both sender and receiver (numeric, default 50). Only used in Seurat mode.
- min_samples
Minimum number of valid samples to proceed (numeric, default 10).
- min_cell_ratio
Minimum ratio of cells expressing ligand and receptor genes in sender or receiver cells (numeric, default 0.1). Only used in Seurat mode.
- min_sample_ratio
Minimum ratio of samples in which both the ligand and receptor genes must be expressed (numeric, default 0.1).
- cor_method
Correlation method: "spearman" (default), "pearson", or "kendall".
- adjust_method
P-value adjustment method (default "BH" for Benjamini-Hochberg).
Options: "holm", "hochberg", "hommel", "bonferroni", "BH", "BY", "fdr", "none".
- min_adjust_p
Adjusted p-value threshold for significance (numeric, default 0.05).
- min_cor
Minimum correlation coefficient threshold (numeric, default 0). Must be \(\ge\) 0.
- min_r2
Minimum R-squared threshold for the linear regression model (numeric, default 0). Must be \(\ge\) 0.
- min_fstat
Minimum F-statistic threshold for the linear regression model (numeric, default 0). Must be \(\ge\) 0.
- num_cores
Number of CPU cores for parallel processing (numeric, default 10). Automatically capped at (system cores - 1).
- verbose
Logical indicating whether to print progress messages (logical, default: TRUE).