load_bw_set: LoadBigWigSet

Description Usage Arguments Details Value Examples

View source: R/rtracklayer.R

Description

Loads a specified range from specified bigwigs files.

Usage

1
load_bw_set(files, region)

Arguments

region

named list with a chr, start, end and strand slot

file

files to load in dataframe with metadata and factors for grouping.

Details

Loads the values from the region from the file(s) and collects everything in a tidy dataframe. Files are a dataframe or named list containing at a minimum these slots: 'path' 'filename' and named category levels

Value

A tidy data.frame with columns for chr start end strand and all levels specified the files.

Examples

1
2
3
4
5
path <- '/Users/schmidm/Documents/other_people_to_and_from/ClaudiaI/bw'
files <- create_bw_file_set(path, c('rep3', '.bw$'), c('_N20', '_3D12'), c('siRNA', 'ab', 'rep'), '_')
region <- list(chr='chr1', start=1000000, end=1001000, strand='+')
set <- load_bw_set(files, region)
ggplot(set, aes(x=starts, y=scores, color=rep)) + geom_line() + facet_grid(siRNA~ab)

manschmi/RMetaTools documentation built on Dec. 14, 2021, 4:33 a.m.