annotate tools/rgenetics/rgPedSub.xml @ 0:9071e359b9a3

Uploaded
author xuebing
date Fri, 09 Mar 2012 19:37:19 -0500
parents
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
0
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
1 <tool id="rgPedSub1" name="Subset markers:">
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
2
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
3 <description>region or rs list</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 rgPedSub.py $script_file
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
7 </command>
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
8
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
9 <inputs>
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
10 <page>
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
11 <param name="title" type="text" size="80" label="Title for output files"
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
12 help="Descriptive title for new genotype/map files" value="Genotype_Subset" />
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
13 <param name="input1" type="data" format="lped"
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
14 label="Current history lPed format data" optional="false"
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
15 size="120" help="Choose a Linkage Ped format data from your current history" />
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
16 <param name='relfilter' label = "Filter out family relatedness" type="select"
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
17 optional="false" size="132"
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
18 help="Optionally remove related subjects if pedigree identifies founders and their offspring">
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
19 <option value="all" selected='true'>No filter on relatedness - all subjects passed through</option>
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
20 <option value="fo" >Founders only (pedigree mother and father ID = "0")</option>
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
21 <option value="oo" >Offspring only (one randomly chosen if >1 sibs in family)</option>
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
22 </param>
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
23
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
24 </page><page>
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
25 <conditional name="m">
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
26 <param name="mtype" type="select" label="Markers in a genomic interval,or as an rs list?" refresh_on_change='true'
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
27 help="Indicate the markers to be saved - as a list or as genomic region coordinates">
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
28 <option value="grslist" >Cut and paste a list of marker ids as rs numbers</option>
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
29 <option value="gregion" selected='true'>Supply genomic coordinates for a region (as UCSC location)</option>
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
30 </param>
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
31 <when value="gregion">
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
32 <param name="region" type="text" label="Genomic refseq coordinates - chromosome:start-end"
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
33 size="120" help="Region to be saved as chr9:119,506,000-119,518,000"/>
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
34 <param name="rslist" type="hidden" value='' />
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
35 </when>
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
36 <when value="grslist">
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
37 <param name="region" value="" type="hidden"/>
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
38 <param name="rslist" type="text" area='true' size='15x20' label="marker id (rs) list"
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
39 help="Cut and paste, or type a list of marker ids separated by spaces" />
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
40 </when>
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
41 </conditional>
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
42 </page>
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
43 </inputs>
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
44
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
45 <outputs>
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
46 <data format="lped" name="output1" metadata_source="input1" label="${title}.lped"/>
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
47 </outputs>
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
48
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
49 <configfiles>
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
50 <configfile name="script_file">
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
51 title~~~~$title
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
52 output1~~~~$output1
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
53 userId~~~~$userId
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
54 outformat~~~~lped
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
55 basename~~~~$input1.metadata.base_name
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
56 inped~~~~$input1.extra_files_path/$input1.metadata.base_name
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
57 outdir~~~~$output1.files_path
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
58 relfilter~~~~$relfilter
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
59 #if $m.mtype=='grslist'
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
60 rslist~~~~$m.rslist
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
61 region~~~~
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
62 #else
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
63 rslist~~~~
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
64 region~~~~$m.region
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
65 #end if
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
66 </configfile>
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
67 </configfiles>
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
68
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
69 <tests>
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
70 <test>
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
71 <param name='input1' value='tinywga' ftype='lped' >
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
72 <metadata name='base_name' value='tinywga' />
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
73 <composite_data value='tinywga.ped' />
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
74 <composite_data value='tinywga.map' />
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
75 <edit_attributes type='name' value='tinywga' />
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
76 </param>
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
77 <param name='title' value='rgPedSubtest1' />
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
78 <param name="mtype" value="grslist" />
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
79 <param name="region" value="" />
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
80 <param name="rslist" value="rs2283802Xrs2267000Xrs16997606Xrs4820537Xrs3788347Xrs756632Xrs4820539Xrs2283804Xrs2267006Xrs4822363X" />
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
81 <param name="relfilter" value="all" />
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
82 <output name='output1' file='rgtestouts/rgPedSub/rgPedSubtest1.lped' ftype='lped' linesDiff='7'/>
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
83 </test>
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
84 </tests>
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
85
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
86 <help>
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
87
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
88 .. class:: infomark
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
89
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
90 **Note**
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
91
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
92 There are 2 forms to complete before the job is ready to be run
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
93
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
94 **Page 1**
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
95
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
96 give the job a mnemonic descriptive title and select the output format.
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
97
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
98 Choose a file containing genotypes and a pedigree from your current history
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
99
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
100 The input file must be in linkage ped format.
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
101
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
102 If the data are not yet in your history, import from one of the system libraries or upload from your computer using the get data tool
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
103
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
104 **Page 2**
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
105
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
106 Define the markers to be used. You can supply a UCSC style location as chr:start_offset-end_offset
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
107
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
108 or a list of marker ids - rs numbers. You can flip between marker input style by changing the select box.
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
109
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
110 If you supply a list, the markers must all be from the same chromosome or region for sensible results.
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
111
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
112 Run the job and the subset file will eventually appear in your history ready to be used with other tools.
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
113
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
114 -----
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
115
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
116 **Syntax**
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
117
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
118 - **Library Linkage Ped** is a linkage format pedigree file chosen from the system file Library
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
119 - **History Linkage Ped** is a linkage format pedigree file chosen from your current Galaxy History
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
120 - **Region** is the genomic region cut and paste from a UCSC browser location window
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
121 - **Genome Build** is the version of the genome your markers are from - use hg18 for CAMP illumina data
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
122
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
123 -----
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
124
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
125 .. class:: infomark
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
126
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
127 **Summary**
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
128
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
129 This tool is a special purpose tool to extract genotypes from genotype data in linkage
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
130 pedigree format (separate map file) over a specified genomic region
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
131 The region to be extracted can be described as UCSC browser location, or as a list of
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
132 markers.
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
133
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
134 It is possible to retain ALL markers by leaving the rslist and region empty if you just want to remove
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
135 all offspring from a pedigree for example
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
136
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
137 The extracted data will appear in your current history as a new lped data set
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
138
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
139 Copyright, Ross Lazarus, March 2008 for the Rgenetics project
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
140 Released under the LGPL. See http://www.gnu.org/licenses/lgpl.html for license terms.
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
141
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
142 </help>
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
143 </tool>