import_bedgraph: Import bedgraph files

View source: R/import_bedgraph.R

import_bedgraphR Documentation

Import bedgraph files

Description

Import bedgraph files

Usage

import_bedgraph(
  filename,
  filter_negative_coverages = TRUE,
  keep_standard_chromosomes = TRUE,
  genome = NULL
)

Arguments

filename

Paths to a valid bedGraph file.

filter_negative_coverages

Convert negative coverage values to 0? (Default: TRUE)

keep_standard_chromosomes

Remove alternative chromosomes? (Default: TRUE)

genome

The name of the genome (i.e.: "hg38", "mm10", etc...)

Value

A list of GRanges (one element per file).

Examples

filenames <- get_demo_bdg()
cov <- import_bedgraph(filenames)


CharlesJB/HeatmapsTools documentation built on Nov. 5, 2023, 9:46 a.m.