powered by
Based on single-cell gene expression matrix and pseudotime, calculate Granger-causality Test based gene-gene regulatory relationship
run_granger_test( data, ptime, slide_window_size = 20, slide_step_size = 10, pvalue_cutoff = 0.01, order = 1, ... )
adjacency data frame
gene expression matrix (Gene * Cells)
pseudotime matched with the column cells of the gene expression matrix
sliding window size
sliding window step size
cutoff for the pvalue from transfer entropy test
integer specifying the order of lags to include in the auxiliary regression
other parameters for grangertest function in lmtest
example_data <- pGRNDB expression_matrix <- example_data[["expression"]] pseudotime_list <- example_data[["ptime"]]$PseudoTime gt_adj_df <- run_granger_test(expression_matrix, pseudotime_list)
Run the code above in your browser using DataLab