# HG changeset patch # User rico # Date 1333653399 14400 # Node ID d82a83653e1468c58534784cf57fe8fd5dad566f # Parent ea6353a54fdade8b6b0dd9708db136c65cf427c8 Uploaded diff -r ea6353a54fda -r d82a83653e14 modify_snp_table.xml --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/modify_snp_table.xml Thu Apr 05 15:16:39 2012 -0400 @@ -0,0 +1,67 @@ + + a SNP table + + + modify_snp_table.py "$input" "$p1_input" "$output" + #if $limit_coverage.choice == "0" + "-1" "-1" "-1" "-1" + #else + "${limit_coverage.lo_coverage}" "${limit_coverage.hi_coverage}" "${limit_coverage.low_ind_cov}" "${limit_coverage.lo_quality}" + #end if + #for $individual, $individual_col in zip($input.dataset.metadata.individual_names, $input.dataset.metadata.individual_columns) + #set $arg = '%s:%s' % ($individual_col, $individual) + "$arg" + #end for + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +**What it does** + +The user specifies that some of the individuals in the selected SNP table are +form a "population" that has been previously defined using the Galaxy tool to +select individuals from a SNP table. One option is for the program to append +four columns to the table, giving the total counts for the two alleles, the +"genotype" for the population and the maximum quality value, taken over all +individuals in the population. If all defined genotypes in the population +are 2 (agree with the reference), the population's genotype is 2; similarly +for 0; otherwise the genotype is 1 (unless all individuals have undefined +genotype, in which case it is -1. The other option is to remove rows from +the table for which the total coverage for the population is either too low +or too high, and/or if the individual coverage or quality value is too low. + +