import_peaks: Import peak files

Description Usage Arguments Value Examples

View source: R/import.R

Description

Only works for .narrowPeak or .broadPeak file formats.

Usage

1
import_peaks(filename, genome = NULL, keep_standard_chromosomes = TRUE)

Arguments

filename

Path to the peak file.

genome

Add seqinfo from genome (see ?fetchExtendedChromInfoFromUCSC for the list of available genomes). Value must be NULL or a character string (i.e.: "hg38").

keep_standard_chromosomes

Remove alternative chromosomes? (Default: TRUE)

Value

A GRanges corresponding the regions in the peak file.

Examples

1
2
peaks_file <- get_demo_peaks_file()
peaks <- import_peaks(peaks_file)

CharlesJB/hmwrap documentation built on March 19, 2018, 4:08 a.m.