Galaxy | Tool Preview

Split by group (version 0.6)
Include the first line (the assumed header line) to all split files.

Synopsis

Given a single input dataset this tool splits the file on unique values from a specified column.

Description

This tool splits a file into a collection based on unique values of a speific column. It performs a grouping operation with every group saved as a separate collection element. You have the option to include the header (first line) to all splits. If you have a header and don't want keep it, please remove it before you use this tool. For example with the "Remove beginning of a file" tool.


Example

Splitting this file on column 1:

chr1 10 20
chr1 30 40
chr2 40 70
chr4 60 80

will produce a collection with 3 elements:

chr1 10 20
chr1 30 40

chr2 40 70

chr4 60 80

Split by group