Skip to contents

This function gets the average correlation rna seq counts and region effect on genes for genes which are only associated with 1 chromatin region

Usage

Get_1region_ATAC_correlation(counts, atacseq_data, region2gene)

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

Value

the correlation value

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