Skip to contents

Retrieve peak-to-gene links

Usage

get_peak2gene_links(proj, ...)

# S3 method for class 'MarchRProject'
get_peak2gene_links(
  proj,
  cor_cutoff = 0.45,
  fdr_cutoff = 1e-04,
  var_cutoff_atac = 0.25,
  var_cutoff_rna = 0.25,
  resolution = 1L,
  return_loops = TRUE,
  ...
)

Arguments

proj

(MarchRProject) Project with peak2gene_links computed.

...

Additional arguments passed to methods.

cor_cutoff

(numeric) Minimum correlation to keep; sign-aware (negative values keep correlations <= cor_cutoff instead). Default 0.45.

fdr_cutoff

(numeric) Maximum FDR to keep. Default 1e-4.

var_cutoff_atac

(numeric) Minimum ATAC variance quantile (strict >). Default 0.25.

var_cutoff_rna

(numeric) Minimum RNA variance quantile (strict >). Default 0.25.

resolution

(integer) Coordinate bin size for loops, bp. Default 1L.

return_loops

(logical) Return a GRanges of arcs instead of a data.frame. Default TRUE.

Value

If return_loops is FALSE, the filtered peak2gene_links data.frame. Otherwise a GRanges of arcs spanning each linked peak summit and gene TSS, with value holding the correlation and FDR the false discovery rate.

Details

Reproduces ArchR's getPeak2GeneLinks().