This function gets the average correlation rna seq counts and region effect on genes for genes which are only associated with 1 chromatin region
Source:R/7_benchmark.R
Get_1region_ATAC_correlation.Rd
This function gets the average correlation rna seq counts and region effect on genes for genes which are only associated with 1 chromatin region
Arguments
- counts
rna seq counts
- atacseq_data
atac seq data
- region2gene
a 0 1 coupling matrix between regions and genes of shape (nregions) x (num_genes), where a value of 1 indicates the gene is affected by a particular region
Examples
results <- sim_example_200_cells()
#> Time spent: 0.02 mins
Get_1region_ATAC_correlation(results$counts, results$atacseq_data, results$region_to_gene)
#> [1] 0.211397