Description Usage Arguments Value
View source: R/paired_sine_model.R
Following the paired-sine model, as described in Leng et al. 2015, section Oscope: paired-sine model, this function estimates the optimal phase shift for all gene pairs by minimising the squared epsilon error term, i.e., ε_{1,2}^2.
1 2 3 4 5 6 7 | paired_sine_analysis(
m,
verbose = FALSE,
sort_by_score = FALSE,
parallel = FALSE,
cores = parallel::detectCores() - 2L
)
|
m |
Matrix of gene expression values. Rows are genes and columns are samples. |
verbose |
Whether to be chatty. |
sort_by_score |
Whether to descending sort the final dataframe by the
score column, i.e., by -log10(sq_epsilon). If |
parallel |
Whether to split the computation across the virtual cores. |
cores |
The number of virtual cores (vCPUs) to use if |
A dataframe with the optimal phase estimates. Each row corresponds to a gene pair combination. Columns:
Name of gene 1.
Name of gene 2.
Optimal phase shift.
Squared epsilon (ε_{1,2}^2).
Score defined as -log10(ε_{1,2}^2). This metric can be used to sort the table of results, and select candidate oscillatory genes as those in the top gene pairs.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.