splitFileIntoCollection: This function will take a single large bed file that is...

Description Usage Arguments Value Examples

View source: R/splitFileIntoCollection.R

Description

This function will take a single large bed file that is annotated with a column grouping different sets of similar regions, and split it into separate files for use with the LOLA collection format.

Usage

1
2
3
4
5
6
splitFileIntoCollection(
  filename,
  splitCol,
  collectionFolder = NULL,
  filenamePrepend = ""
)

Arguments

filename

the file to split

splitCol

factor column that groups the lines in the file by set. It should be an integer.

collectionFolder

name of folder to place the new split files.

filenamePrepend

string to prepend to the filenames. Defaults to blank.

Value

No return value.

Examples

1
2
combFile = system.file("extdata", "examples/combined_regions.bed", package="LOLA")
splitFileIntoCollection(combFile, 4)

sheffien/LOLA documentation built on Sept. 3, 2020, 8:29 p.m.