splitFileIntoCollection {LOLA} | R Documentation

## 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.

### 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

    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

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

[Package LOLA version 1.18.1 Index]