# HG changeset patch # User kellrott # Date 1351727416 14400 # Node ID 01454ded89074145b4b40350977b4e070e2687c3 Uploaded diff -r 000000000000 -r 01454ded8907 tabular_edit.xml --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/tabular_edit.xml Wed Oct 31 19:50:16 2012 -0400 @@ -0,0 +1,115 @@ + + Edit the contents and row/column labels of a tabular file using python statements + $script_file + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +This is a utility to perform editing operations on the contents and column/row labels of a tabular file. + + - The 'Column Eval Code' operations occur on the first line. + - The 'Row Eval Code' operations occur on the first cell of every line + - The 'Cell Eval Code' operations occur on every non-label cell + - If any of the code blocks are empty, the operation is skipped + +Example + +Remove the '.CEL' string from sample names:: + + re.sub(r'.CEL$', '', value) + +Log Transform the matrix cells:: + + math.log(float(value)) + + + +