.readBam {GenomicInteractions} | R Documentation

## Function to read in interaction-data stored in a BAM file

### Description

Reads in interactions stored in a BAM file. Assumes that each interaction is represented by pair of PETs with the same qname. The function reads in and determines which anchor is which by examining the isFirstMateRead and isSecondMateRead fields in the BAM file.

### Usage

    .readBam(fn)

### Arguments

`fn` | name of BAM file containing interaction information

### Value

list of GRanges - storing the anchor information for each interaction

[Package GenomicInteractions version 1.26.0 Index]