Skip to contents

make a data frame that links peak to a given gene as input to Signac::LinkPlot()

Usage

make_gene_to_peak_link(df, gene, obj, peak_assay = "peak")

Arguments

df

A data frame of peak-gene associations results, containing columns of gene, peak, and pvar (see below).

gene

Character, gene of interest.

obj

Seurat object that contains the data on the gene and the peaks.

peak_assay

Name for peak assay. Default to 'peak'.

Value

A grange object with genomic ranges corresponding to the gene and the peak, and with the following metadata:

score

correlation from the peak-gene association results

gene

gene name

peak

peak name

test_stat

test statistics from the peak-gene association results`

pval

p-value from the peak-gene association results