Galaxy | Tool Preview

Cut (version 1.0.2)

WARNING: This tool breaks column assignments. To re-establish column assignments run the tools and click on the pencil icon in the latest history item.

The output of this tool is always in tabular format (e.g., if your original delimiters are commas, they will be replaced with tabs). For example:

Cutting columns 1 and 3 from:

apple,is,good
windows,is,bad

will give:

apple   good
windows bad

What it does

This tool selects (cuts out) specified columns from the dataset.


Example

Input dataset (six columns: c1, c2, c3, c4, c5, and c6):

chr1 10   1000  gene1 0 +
chr2 100  1500  gene2 0 +

cut on columns "c1,c4,c6" will return:

chr1 gene1 +
chr2 gene2 +

cut on columns "c6,c5,c4,c1" will return:

+ 0 gene1 chr1
+ 0 gene2 chr2

cut on columns "c1-c3" will return:

chr1 10   1000
chr2 100  1500

cut on columns "c8,c7,c4" will return:

. . gene1
. . gene2