Mercurial > repos > gregory-minevich > snp_mapping_using_wgs
comparison SNP_Mapping.xml @ 18:9b401db6f9ea draft
Uploaded
author | gregory-minevich |
---|---|
date | Mon, 25 Jun 2012 16:05:36 -0400 |
parents | |
children |
comparison
equal
deleted
inserted
replaced
17:3a3548a51a5a | 18:9b401db6f9ea |
---|---|
1 <tool id="snp_mapping_using_wgs" name="CloudMap: SNP mapping with WGS data"> | |
2 <description>Map a mutation by plotting recombination frequencies resulting from crossing to a highly polymorphic strain</description> | |
3 <command interpreter="python"> | |
4 #if $source.source_select=="elegans" #SNP_Mapping.py --sample_pileup $sample_pileup --haw_vcf $haw_vcf --loess_span $loess_span --d_yaxis $d_yaxis --h_yaxis $h_yaxis --points_color "$points_color" --loess_color "$loess_color" --output $output --location_plot_output $location_plot_output --standardize $standardize --normalize_bins $normalize_bins --break_file $source.Celegans | |
5 #else if $source.source_select=="arabadopsis" #SNP_Mapping.py --sample_pileup $sample_pileup --haw_vcf $haw_vcf --loess_span $loess_span --d_yaxis $d_yaxis --h_yaxis $h_yaxis --points_color "$points_color" --loess_color "$loess_color" --output $output --location_plot_output $location_plot_output --standardize $standardize --normalize_bins $normalize_bins --break_file $source.Arabadop | |
6 #else if $source.source_select=="other" #SNP_Mapping.py --sample_pileup $sample_pileup --haw_vcf $haw_vcf --loess_span $loess_span --d_yaxis $d_yaxis --h_yaxis $h_yaxis --points_color "$points_color" --loess_color "$loess_color" --output $output --location_plot_output $location_plot_output --standardize $standardize --normalize_bins $normalize_bins --break_file $source.Other | |
7 #end if | |
8 </command> | |
9 | |
10 <inputs> | |
11 <conditional name="source"> | |
12 <param name="source_select" type="select" label="Please select the species"> | |
13 <option value="elegans">C. elegans</option> | |
14 <option value="arabadopsis">Arabadopsis</option> | |
15 <option value="other">Other</option> | |
16 </param> | |
17 <when value="elegans"> | |
18 <param name="Celegans" type="hidden" value="C.elegans" label="The C.elegans configuration file by default" help="C.elegans help" /> | |
19 </when> | |
20 <when value="arabadopsis"> | |
21 <param name="Arabadop" type="hidden" value="Arabadopsis" label="The Arabadopsis configuration file by default" help="Arabadopsis help" /> | |
22 </when> | |
23 <when value="other"> | |
24 <param name="Other" type="data" format="tabular" label="Please select your 'Other species' configuration file from your history" help="Tabular configuration file for Other species support" /> | |
25 </when> | |
26 </conditional> | |
27 <param name="sample_pileup" size = "125" type="data" format="pileup" label="WGS Mutant Pileup File" help="WGS pileup file from pooled F2 mutants that have been crossed to a mapping strain. The pileup should contain data from only mapping strain (e.g. Hawaiian) SNP positions" /> | |
28 <param name="haw_vcf" size = "125" type="data" format="vcf" label="VCF of mapping strain (e.g. Hawaiian) SNPs" help="A VCF reference file that contains mapping strain SNP positions and reference base pairs at each position"/> | |
29 <param name="loess_span" size = "15" type="float" value=".1" label="Loess span" help="Parameter that controls the degree of data smoothing."/> | |
30 <param name="d_yaxis" size = "15" type="float" value=".7" label="Y-axis upper limit for scatter plot" /> | |
31 <param name="h_yaxis" size = "15" type="integer" value="500" label="Y-axis upper limit for frequency plot" /> | |
32 <param name="points_color" size = "15" type="text" value="gray27" label="Color for data points" help="See below for list of supported colors"/> | |
33 <param name="loess_color" size = "15" type="text" value="red" label="Color for loess regression line" help="See below for list of supported colors"/> | |
34 <param name="standardize" type="boolean" truevalue="true" falsevalue="false" checked="true" label="Standardize X-axis" help="Scatter plots and frequency plots from separate chromosomes will have uniform X-axis spacing for comparison"/> | |
35 <param name="normalize_bins" type="boolean" truevalue="true" falsevalue="false" checked="true" label="Normalize frequency plots" help="Frequency plots of pure parental allele counts will be normalized according to the equation in Fig.7B of the CloudMap paper"/> | |
36 </inputs> | |
37 <outputs> | |
38 <data name="output" type="text" format="tabular" /> | |
39 <data name="location_plot_output" format="pdf" /> | |
40 </outputs> | |
41 <requirements> | |
42 <requirement type="python-module">sys</requirement> | |
43 <requirement type="python-module">optparse</requirement> | |
44 <requirement type="python-module">csv</requirement> | |
45 <requirement type="python-module">re</requirement> | |
46 <requirement type="python-module">decimal</requirement> | |
47 <requirement type="python-module">rpy</requirement> | |
48 </requirements> | |
49 <tests> | |
50 <param name="sample_pileup" value="" /> | |
51 <param name="haw_vcf" value="" /> | |
52 <output name="output" file="" /> | |
53 <output name="plot_output" file="" /> | |
54 </tests> | |
55 <help> | |
56 **What it does:** | |
57 | |
58 This tool is part of the CloudMap pipeline for analysis of mutant genome sequences. For further details, please see `Gregory Minevich, Danny Park, Richard J. Poole, Daniel Blankenberg, Anton Nekrutenko, and Oliver Hobert. CloudMap: A Cloud-based Pipeline for Analysis of Mutant Genome Sequences. (2012 In Preparation)`__ | |
59 | |
60 .. __: http://biochemistry.hs.columbia.edu/labs/hobert/literature.html | |
61 | |
62 CloudMap workflows, shared histories and reference datasets are available at the `CloudMap Galaxy page`__ | |
63 | |
64 .. __: https://test.g2.bx.psu.edu/u/gal40/p/cloudmap | |
65 | |
66 This tool improves upon the method described in Doitsidou et al., PLoS One 2010 for mapping causal mutations using whole genome sequencing data. | |
67 | |
68 Sample output for a linked chromosome: | |
69 | |
70 .. image:: http://biochemistry.hs.columbia.edu/labs/hobert/CloudMap/Linked_LG_500px.png | |
71 | |
72 | |
73 The polymorphic Hawaiian strain CB4856 is used as a mapping strain in most cases but in principle any sequenced nematode strain that is significantly different from the mutant strain can be used for mapping. The tool plots the ratio of mapping strain (Hawaiian)/mutant strain (N2) nucleotides at all SNP positions, reflecting the number of recombinants in the sequenced pool of animals. Chromosomes which contain regions of linkage to the causal mutation will have regions where the ratio of mapping strain (Hawaiian)/total reads will be equal to 0. The scatter plots for such linked regions will have a high number of data points lying exactly on the X axis. A loess regression line is plotted through all the points on a given chromosome giving further accuracy to the linked region. | |
74 | |
75 Each scatter plot has a corresponding frequency plot that displays regions of linked chromosome where 0 ratio SNP positions are concentrated. 1Mb bins for the 0 ratio SNP positions are colored gray by default and .5Mb bins are colored in red. | |
76 | |
77 | |
78 The experimental design required to generate data for the plots is described in Doitsidou et al., PLoS One 2010 Figure 1: | |
79 | |
80 .. image:: http://biochemistry.hs.columbia.edu/labs/hobert/CloudMap/Doitsidou_2010_PLoS_Fig.1_500px.png | |
81 | |
82 | |
83 ------ | |
84 | |
85 **Input:** | |
86 | |
87 | |
88 The input pileup files are generated by the SAMTools mpileup tool. Default SAMTools mpileup (and Samtools filter pileup) parameters for mapping quality, base quality and coverage at each SNP position typically yield good results, though users may experiment with filtering SNP data by adjusting these parameters. In our testing, low threshold filtering on base pair quality has been useful in improving accuracy of plots while high threshold filtering on coverage has skewed plot accuracy. | |
89 | |
90 This tool requires a pileup that has been created at each SNP position using SAMTools mpileup (http://samtools.sourceforge.net/samtools.shtml) and a BED file of all Hawaiian SNP positions. Download Hawaiian SNP positions BED file here: | |
91 http://biochemistry.hs.columbia.edu/labs/hobert/protocols.html | |
92 | |
93 The required VCF of mapping strain (e.g. Hawaiian) SNPs is a reference file that contains mapping strain SNP positions and reference base pairs at each position. | |
94 (download Hawaiian SNPs VCF from: http://biochemistry.hs.columbia.edu/labs/hobert/protocols.html). You may also make your own VCF of SNP positions following the steps described in the CloudMAP paper. | |
95 | |
96 | |
97 **Output:** | |
98 | |
99 The tool also provides a tabular output file that contains a count of the number of reference and alternate SNPs at each mapping strain SNP position as well as the ratio of reference/alternate SNPs. The position of each mapping strain SNP in map units and physical coordinates is also provided in the output file. | |
100 | |
101 | |
102 ------ | |
103 | |
104 **Settings:** | |
105 | |
106 .. class:: infomark | |
107 | |
108 Information on loess regression and the loess span parameter: | |
109 http://en.wikipedia.org/wiki/Local_regression | |
110 | |
111 .. class:: infomark | |
112 | |
113 Based on our testing, we've settled on .1 as a loess span default. Larger values result in smoothing of the line to reflect trends at a more macro level. Smaller values result in loess lines that more closely reflect local data fluctuations. | |
114 | |
115 .. class:: infomark | |
116 | |
117 Supported colors for data points and loess regression line: | |
118 | |
119 http://www.stat.columbia.edu/~tzheng/files/Rcolor.pdf | |
120 | |
121 http://research.stowers-institute.org/efg/R/Color/Chart/ColorChart.pdf | |
122 | |
123 | |
124 | |
125 .. class:: warningmark | |
126 | |
127 This tool requires that the statistical programming environment R has been installed on the system hosting Galaxy (http://www.r-project.org/). If you are accessing this tool on Galaxy via the Cloud, this does not apply to you. | |
128 | |
129 | |
130 ------ | |
131 | |
132 **Citation:** | |
133 | |
134 This tool is part of the CloudMap package from the Hobert Lab. If you use this tool, please cite `Gregory Minevich, Danny Park, Richard J. Poole, Daniel Blankenberg, Anton Nekrutenko, and Oliver Hobert. CloudMap: A Cloud-based Pipeline for Analysis of Mutant Genome Sequences. (2012 In Preparation)`__ | |
135 | |
136 .. __: http://biochemistry.hs.columbia.edu/labs/hobert/literature.html | |
137 | |
138 Correspondence to gm2123@columbia.edu (G.M.) or or38@columbia.edu (O.H.) | |
139 | |
140 </help> | |
141 </tool> |