splitFileIntoCollection: 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)
Arguments
filename
the file to split
splitCol
factor column that groups the lines in the file by set