README.md

CircaN

Nonlinear least squares model for accurate detection of circadian gene expression.

Setup

If you don't already have, download and install the devtools package.

install.packages("devtools") 

Then, install CircaN from github directly to R.

library("devtools")
install_github("AndreaRP/CircaN")

Running Full mode analysis

This will run the specified algorithms for circadian detection from JTK, MetaCycle meta2d and CircaN.

To help you get an idea of the type of data CircaN uses as input, we have included a toy dataset with 200 features, along with it's metadata file in the package. Please be mindful of the format of the data array, we have included the simplest way to convert a typical expression data into data CircaN can analyze by deleting the feature name column.

library("CircaN")

Load expression data and metadata and run circan function.

expression_example <- CircaN::expression_example
rownames(expression_example) <- expression_example$feature
expression_example <- expression_example[,-1]
metadata_example <-CircaN::metadata_example

results <- full_mode_analysis(data=expression_example, s2c=metadata_example)

This will run all three algorithms on your data with default parameters. Depending on your analysis you may want to change those to fit your needs. You can sepcify:

Workflow

This will run each separate algorithm on your data, and then merge the results into a single array for convenience. CircaN will fit each feature in your data to 7 different oscilating patterns and the it will determine which better fits each feature (selecting the minimum AIC). Then it will combine the period and amplitude p.values using Fisher's method and finally will get the corresponding BH q.value. The selection criteria we recommend is using and adjusted p.value < 0.05 combined with a relatively high R (>0.7). For details on JTK (DOI: 10.1177/0748730410379711) and MetaCycle (DOI: 10.1093/bioinformatics/btw405), please refer to: JTK: https://openwetware.org/wiki/HughesLab:JTK_Cycle MetaCycle: https://cran.r-project.org/web/packages/MetaCycle/vignettes/implementation.html



AndreaRP/CircaN documentation built on Jan. 25, 2021, 5:49 a.m.