Difference between revisions of "METAL CUSTOMVARIABLE"
From Genome Analysis Wiki
Jump to navigationJump to search (Created page with 'METAL '''CustomVariables''' are user specified columns whose contents are tracked across multiple files. New variables are created with the CUSTOMVARIABLE command. For example,…') |
|||
Line 10: | Line 10: | ||
specific columns in each input file with the LABEL command. For example: | specific columns in each input file with the LABEL command. For example: | ||
+ | <source lang="text"> | ||
LABEL MENDEL_ERRORS AS bad_transmissions | LABEL MENDEL_ERRORS AS bad_transmissions | ||
PROCESS input_file1.txt | PROCESS input_file1.txt | ||
Line 15: | Line 16: | ||
LABEL MENDEL_ERRORS AS non_mendelian_events | LABEL MENDEL_ERRORS AS non_mendelian_events | ||
PROCESS input_file2.txt | PROCESS input_file2.txt | ||
+ | </source> | ||
In the example above, the column "bad_transmissions" in "input_file1.txt" and | In the example above, the column "bad_transmissions" in "input_file1.txt" and | ||
"non_mendelian_events" in "input_file2.txt" would be linked to the MENDEL_ERRORS | "non_mendelian_events" in "input_file2.txt" would be linked to the MENDEL_ERRORS | ||
column. Metal would report the sum of these two columns in each row of output. | column. Metal would report the sum of these two columns in each row of output. |
Revision as of 00:24, 6 April 2010
METAL CustomVariables are user specified columns whose contents are tracked across multiple files. New variables are created with the CUSTOMVARIABLE command.
For example, the command:
CUSTOMVARIABLE MENDEL_ERRORS
Creates a custom variable called MENDEL_ERRORS. This variable must next be linked to specific columns in each input file with the LABEL command. For example:
LABEL MENDEL_ERRORS AS bad_transmissions
PROCESS input_file1.txt
LABEL MENDEL_ERRORS AS non_mendelian_events
PROCESS input_file2.txt
In the example above, the column "bad_transmissions" in "input_file1.txt" and "non_mendelian_events" in "input_file2.txt" would be linked to the MENDEL_ERRORS column. Metal would report the sum of these two columns in each row of output.