create_bw_file_set: CreateBigWigSampleSet

Description Usage Arguments Details Value Examples

View source: R/rtracklayer.R

Description

Creates a dataframe holding information on bigwig files.

Usage

1
create_bw_file_set(path, regex, junk_list, split_to, split_by)

Arguments

path

path where the .bw files are located.

regex

a regular expression (or list of) for selection files in path, default = '.bw'

junk_list

a list of substrings to be removed before splitting to levels.

split_to

split filenames into levels

split_by

delimiter for splitting, default='_'

Details

Creates a data frame with path, filename. Uses the substrings in junk to clean-up the filename and the simplified filename is used with split_to create levels using tidyr::separate function and split_by is the separator used. By default regex is always also removed from filename during simplification.

Value

A tidy data.frame with columns for path filename and all levels.

Examples

1
2
path <- '/Users/schmidm/Documents/other_people_to_and_from/ClaudiaI/bw'
create_bw_file_set(path, c('_rep[3,4]', '.bw$'), c('_N20', '_3D12'), c('siRNA', 'ab', 'rep'), '_')

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