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