get.single.base.score.bw: Single base bigWig score selector

View source: R/get.single.base.score.bw.R

get.single.base.score.bwR Documentation

Single base bigWig score selector

Description

Function to get the score from a bigWig for each base in a given genomic region.

Usage

get.single.base.score.bw(
  region,
  bigWig,
  missing.data.as.zero = TRUE,
  reverse.score = FALSE
)

Arguments

region

An atomic string indicating the genomic region into which restrict the final plot in the format 'chr1:1234-5678'.

bigWig

Full path to a bigWig file.

missing.data.as.zero

A logical value to define whether missing data (NAs) should be treated as zeros. By default TRUE.

reverse.score

A logical value to indicate whether the score order should be inverted. Default TRUE.

Value

The output is a numeric vector containing the score for each base at a given position.


sebastian-gregoricchio/Rseb documentation built on May 15, 2024, 5:45 a.m.