readBamAsBed {DEScan2} | R Documentation

## readBamAsBed

### Description

read a bam file into a bed like format. forcing UCSC format for chromosomes names.

### Usage

    readBamAsBed(file)

### Arguments

`file` | Character indicating path to bam file.

### Value

GRanges object.

### Examples

    files <- list.files(system.file("extdata/bam", package="DEScan2"),
                        full.names=TRUE)
    gr <- readBamAsBed(files[1])

[Package DEScan2 version 1.4.0 Index]