From d418956bf9dfba61ffabe60e8d70d033710d5a96 Mon Sep 17 00:00:00 2001 From: Yi Zhang Date: Wed, 17 Jan 2007 18:55:46 +0000 Subject: [PATCH] old changes copied to trunk: description of tool 'Compute' --- tools/stats/column_maker.xml | 18 ++++++++++++++---- 1 file changed, 14 insertions(+), 4 deletions(-) diff --git a/tools/stats/column_maker.xml b/tools/stats/column_maker.xml index 78b40e825f9..de6fc9bbb55 100644 --- a/tools/stats/column_maker.xml +++ b/tools/stats/column_maker.xml @@ -29,15 +29,25 @@ **Syntax** -This tool allows to compute an expression for every row of a query and add result as a new column (field) +This tool allows to compute an expression for every row of a query and add result as a new column (field). -Columns are referenced with **c** and a **number**. For example, **c1** refers to the first column of a tab-delimited file +- Columns are referenced with **c** and a **number**. For example, **c1** refers to the first column of a tab-delimited file + +- **c3-c2** will add a length column to the query if **c2** and **c3** are start and end position ----- **Example** -- **c3-c2** will add a length column to the query if **c2** and **c3** are start and end position +- Input file:: + + chr1 151077881 151077918 2 200 - + chr1 151081985 151082078 3 500 + + +- Compute "c4*c5" of the above file. The result is:: + + chr1 151077881 151077918 2 200 - 400.0 + chr1 151081985 151082078 3 500 + 1500.0 - \ No newline at end of file +