direct_targets {target} | R Documentation

## Predict direct targets

### Description

This function selects overlapping peaks and regions, calculates the distance between them, score each peak and region and calculate rank products of the regions.

### Usage

    direct_targets(peaks, regions, regions_col, stats_col, base = 1e+05)

### Arguments

`peaks` | A GRanges object
`regions` | A GRanges object
`regions_col` | A character string
`stats_col` | A character string
`base` | An integer to calculate distances relative to.

### Value

A GRanges object. A similar object to regions with several added metadata columns.

### Examples

    # load peaks and transcripts data
    data("real_peaks")
    data("real_transcripts")

    # direct targets
    dt <- direct_targets(real_peaks, real_transcripts, 'name2', 't')

[Package target version 1.1.0 Index]