annotate tools/rgenetics/rgHaploView.xml @ 1:cdcb0ce84a1b

Uploaded
author xuebing
date Fri, 09 Mar 2012 19:45:15 -0500
parents 9071e359b9a3
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
0
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
1 <tool id="rgHaploView1" name="LD plots:" version="0.3">
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
2
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
3 <description>and comparisons with HapMap data</description>
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
4
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
5 <command interpreter="python">
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
6 rgHaploView.py "$ucsc_region" "$rslist" "$title" "$out_file1"
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
7 "$lhistIn.extra_files_path" "$lhistIn.metadata.base_name"
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
8 "$minmaf" "$maxdist" "$ldtype" "$hires" "$memsize" "$out_file1.files_path"
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
9 "$infoTrack" "$tagr2" "$hmpanel" ${GALAXY_DATA_INDEX_DIR}/shared/jars/haploview.jar
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
10 </command>
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
11
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
12 <inputs>
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
13
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
14 <param name="lhistIn" type="data" format="lped"
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
15 label="Current history lPed format data"
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
16 size="80" help="Linkage Ped format data from your current history" />
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
17
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
18 <param name="ucsc_region" type="text" label="Optional subset region (blank=ALL. WARNING: doing this will fail if >1 chromosome in input data!)"
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
19 size="80" optional="true"
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
20 help="Region eg: chr9:119,506,000-119,518,000 Leave blank for all or to extract the rs list supplied below."/>
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
21
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
22 <param name="rslist" type="text" area='true' size='5x20' label="rs list" optional="true"
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
23 help="List of rs numbers to select - cut and paste or type, use space delimiters. Leave blank to extract region supplied above." />
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
24
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
25 <param name="title" type="text" size="80" label="Title for output files" optional="true"
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
26 help="Descriptive title for new genotype/map files" value="LD Plots" />
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
27
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
28 <param name="ldtype" type="select" label="Type of LD measure to estimate and plot"
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
29 size="80" help="" >
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
30 <option value="RSQ" selected="True">rsquared (default)</option>
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
31 <option value="DEFAULT">D prime</option>
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
32 <option value="DPALT">D prime alternative</option>
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
33 <option value="GAB">Gabriel</option>
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
34 <option value="GAM">4 Gamete test</option>
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
35 </param>
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
36
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
37 <param name="minmaf" type="float" label = "Minimum minor allele frequency to use" value="0.05"
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
38 help="If &gt; 0.0, markers below this MAF will be ignored for calculations"/>
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
39
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
40 <param name="maxdist" type="integer" label = "Maximum distance (kbp) between markers for LD estimate"
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
41 value="200" help="If &lt; &gt; 0, only marker pairs at or below this distance will have LD calculated"/>
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
42
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
43 <param name="hmpanel" type="select" multiple="true" label="Hapmap panels to compare"
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
44 size="40" help="HapMap data LD plots will also be produced for each selected population panel" >
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
45 <option value='CEU' selected="True">CEPH (European) (default)</option>
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
46 <option value='YRI'>Yoruba (African)</option>
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
47 <option value='CHB+JPT'>Chinese + Japanese</option>
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
48 <option value="">(None - no comparison)</option>
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
49 </param>
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
50 <param name="tagr2" type="float" label = "rsquared threshold for tagging outputs" value="0.8"
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
51 help="Tagging output will use this value as the minimum rsquared threshold"/>
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
52
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
53 <param name="infoTrack" type="select" label="Add Hapmap information track to image"
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
54 help="Refseq genes and snp density can be added to the plot if desired for orientation" >
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
55 <option value="info">Add Information track (DISABLED! Awaiting bug fix from Haploview authors since reported in October 2009)</option>
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
56 <option value="noinfo" selected="True">No Information track</option>
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
57 </param>
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
58
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
59 <param name="hires" type="select" label="High resolution plots"
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
60 help="A high resolution plot file may be possible but only for small regions - not reliable &gt;100's of snps">
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
61 <option value="hi">High resolution - only a few (hundreds of) markers</option>
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
62 <option value="lo" selected="True">Low resolution - large number of markers</option>
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
63 </param>
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
64
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
65 <param name="memsize" type="select" label="System RAM to allocate"
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
66 size="80" help="Very large files will need extra memory (java is a bit of a pig)" >
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
67 <option value="1024">1GB</option>
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
68 <option value="2048" selected="True">2GB (default)</option>
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
69 <option value="4096">4GB</option>
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
70 <option value="6144">6GB</option>
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
71 <option value="8192">8GB</option>
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
72 </param>
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
73
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
74 </inputs>
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
75
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
76 <outputs>
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
77 <data format="html" name="out_file1" label="${title}.html" />
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
78 </outputs>
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
79
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
80 <!-- python $TOOLPATH/$TOOL.py "" "rs2283802Xrs2267000Xrs16997606Xrs4820537Xrs3788347Xrs756632Xrs4820539Xrs2283804Xrs2267006Xrs4822363X" \
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
81 "$NPRE" $OUTPATH/${NPRE}.html "test" "" "$INPATH" "tinywga" 0.0 200000 "RSQ" "lo" "2048" "$OUTPATH" "hg18" "noinfo" "0.8" \
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
82 "['CEU','YRI','CHB+JPT']" $BINPATH/haploview.jar -->
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
83 <tests>
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
84 <test>
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
85 <param name='lhistIn' value='tinywga' ftype='lped' >
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
86 <metadata name='base_name' value='tinywga' />
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
87 <composite_data value='tinywga.ped' />
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
88 <composite_data value='tinywga.map' />
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
89 <edit_attributes type='name' value='tinywga' />
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
90 </param>
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
91 <param name='ucsc_region' value='' />
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
92 <param name='title' value='rgHaploViewtest1' />
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
93 <param name='rslist' value="rs2283802 rs2267000 rs16997606 rs4820537 rs3788347 rs756632Xrs4820539 rs2283804 rs2267006 rs4822363" />
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
94 <param name='ldtype' value='RSQ' />
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
95 <param name='minmaf' value='0.0' />
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
96 <param name='maxdist' value='200000' />
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
97 <param name='tagr2' value='0.8' />
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
98 <param name='hmpanel' value="YRI" />
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
99 <param name='infoTrack' value='noinfo' />
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
100 <param name='hires' value='lo' />
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
101 <param name='memsize' value='2048' />
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
102 <output name='out_file1' file='rgtestouts/rgHaploView/rgHaploViewtest1.html' ftype='html' lines_diff="60">
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
103 <extra_files type="file" name='alljoin.pdf' value="rgtestouts/rgHaploView/alljoin.pdf" compare="sim_size" delta="50000"/>
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
104 <extra_files type="file" name='allnup.pdf' value="rgtestouts/rgHaploView/allnup.pdf" compare="sim_size" delta="50000" />
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
105 <extra_files type="file" name='Log_rgHaploViewtest1.txt' value="rgtestouts/rgHaploView/Log_rgHaploViewtest1.txt" compare="diff" lines_diff="50"/>
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
106 <extra_files type="file" name='rgHaploViewtest1.ped.TESTS' value="rgtestouts/rgHaploView/rgHaploViewtest1.ped.TESTS" compare="diff"
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
107 lines_diff="20"/>
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
108 <extra_files type="file" name='rgHaploViewtest1.ped.TAGS' value="rgtestouts/rgHaploView/rgHaploViewtest1.ped.TAGS" compare="diff"
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
109 lines_diff="20" />
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
110 </output>
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
111 </test>
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
112 </tests>
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
113
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
114 <help>
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
115
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
116 .. class:: infomark
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
117
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
118 **Note**
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
119
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
120 The input file must be in linkage ped format. A suitable file can be chosen from the system library,
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
121 or from the files already imported into your current history. Use either one of the selection boxes to
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
122 make your choice.
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
123
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
124 -----
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
125
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
126 **Syntax**
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
127
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
128 - **Library Linkage Ped** is a linkage format pedigree file chosen from the system file Library
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
129 - **History Linkage Ped** is a linkage format pedigree file chosen from your current Galaxy History
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
130 - **Region** is the genomic region cut and paste from a UCSC browser location window
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
131 - **Genome Build** is the version of the genome your markers are from - use hg18 for CAMP illumina data
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
132
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
133 -----
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
134
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
135 **Summary**
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
136
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
137 This tool is a special purpose tool to estimate and plot linkage disequilibrium estimated
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
138 from genotype data in linkage pedigree format (separate map file). All markers in the input file
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
139 are used as the default. To limit the calculations to a subset of the input data, supply
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
140 a specified genomic region in UCSC browser location format or a list of specific marker IDs.
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
141
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
142 Note that you can choose either a file of the correct type (linkage pedigree - lped) from
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
143 your current history **or** from the system library
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
144
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
145 This tool currently calls Haploview for estimation and plots. For full attribution, source code and documentation, see
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
146 http://www.broad.mit.edu/mpg/haploview/index.php
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
147
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
148 Copyright, Ross Lazarus, April 2008 for the Rgenetics project
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
149 Released under the LGPL. See http://www.gnu.org/licenses/lgpl.html for license terms.
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
150
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
151 </help>
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
152 </tool>