annotate cgatools/tools/cgatools_1.5/snpdiff.xml @ 0:182426b32995 draft default tip

Uploaded
author completegenomics
date Mon, 18 Jun 2012 20:15:00 -0400
parents
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
0
182426b32995 Uploaded
completegenomics
parents:
diff changeset
1 <tool id="cg_snpdiff" name="snpdiff 1.5" version="1.0.0">
182426b32995 Uploaded
completegenomics
parents:
diff changeset
2 <!--
182426b32995 Uploaded
completegenomics
parents:
diff changeset
3 This tool creates a GUI for the snpdiff function of cgatools from Complete Genomics, Inc.
182426b32995 Uploaded
completegenomics
parents:
diff changeset
4 written 6-18-2012 by bcrain@completegenomics.com
182426b32995 Uploaded
completegenomics
parents:
diff changeset
5 -->
182426b32995 Uploaded
completegenomics
parents:
diff changeset
6
182426b32995 Uploaded
completegenomics
parents:
diff changeset
7 <description>compares snp calls to a Complete Genomics variant file.</description> <!--adds description in toolbar-->
182426b32995 Uploaded
completegenomics
parents:
diff changeset
8
182426b32995 Uploaded
completegenomics
parents:
diff changeset
9 <requirements>
182426b32995 Uploaded
completegenomics
parents:
diff changeset
10 <requirement type="binary">cgatools</requirement>
182426b32995 Uploaded
completegenomics
parents:
diff changeset
11 </requirements>
182426b32995 Uploaded
completegenomics
parents:
diff changeset
12
182426b32995 Uploaded
completegenomics
parents:
diff changeset
13 <command> <!--run executable-->
182426b32995 Uploaded
completegenomics
parents:
diff changeset
14 cgatools | head -1;
182426b32995 Uploaded
completegenomics
parents:
diff changeset
15 cgatools snpdiff
182426b32995 Uploaded
completegenomics
parents:
diff changeset
16 --reference $crr.fields.path
182426b32995 Uploaded
completegenomics
parents:
diff changeset
17 --variants $varfile
182426b32995 Uploaded
completegenomics
parents:
diff changeset
18 --genotypes $genotype
182426b32995 Uploaded
completegenomics
parents:
diff changeset
19 --output-prefix cg_
182426b32995 Uploaded
completegenomics
parents:
diff changeset
20 --reports `echo ${report1} ${report2} ${report3} | sed 's/ */,/g'`
182426b32995 Uploaded
completegenomics
parents:
diff changeset
21 </command>
182426b32995 Uploaded
completegenomics
parents:
diff changeset
22
182426b32995 Uploaded
completegenomics
parents:
diff changeset
23 <outputs>
182426b32995 Uploaded
completegenomics
parents:
diff changeset
24 <data format="tabular" name="output1" from_work_dir="cg_Output.tsv" label="${tool.name} on ${on_string}: Output">
182426b32995 Uploaded
completegenomics
parents:
diff changeset
25 <filter>(report1 == 'Output')</filter>
182426b32995 Uploaded
completegenomics
parents:
diff changeset
26 </data>
182426b32995 Uploaded
completegenomics
parents:
diff changeset
27 <data format="tabular" name="output2" from_work_dir="cg_Verbose.tsv" label="${tool.name} on ${on_string}: Verbose">
182426b32995 Uploaded
completegenomics
parents:
diff changeset
28 <filter>(report2 == 'Verbose')</filter>
182426b32995 Uploaded
completegenomics
parents:
diff changeset
29 </data>
182426b32995 Uploaded
completegenomics
parents:
diff changeset
30 <data format="tabular" name="output3" from_work_dir="cg_Stats.tsv" label="${tool.name} on ${on_string}: Stats">
182426b32995 Uploaded
completegenomics
parents:
diff changeset
31 <filter>(report3 == 'Stats')</filter>
182426b32995 Uploaded
completegenomics
parents:
diff changeset
32 </data>
182426b32995 Uploaded
completegenomics
parents:
diff changeset
33 </outputs>
182426b32995 Uploaded
completegenomics
parents:
diff changeset
34
182426b32995 Uploaded
completegenomics
parents:
diff changeset
35 <inputs>
182426b32995 Uploaded
completegenomics
parents:
diff changeset
36 <!--form field to select crr file-->
182426b32995 Uploaded
completegenomics
parents:
diff changeset
37 <param name="crr" type="select" label="Reference genome (.crr file)">
182426b32995 Uploaded
completegenomics
parents:
diff changeset
38 <options from_data_table="cg_crr_files" />
182426b32995 Uploaded
completegenomics
parents:
diff changeset
39 </param>
182426b32995 Uploaded
completegenomics
parents:
diff changeset
40
182426b32995 Uploaded
completegenomics
parents:
diff changeset
41 <!--conditional to select variant file input-->
182426b32995 Uploaded
completegenomics
parents:
diff changeset
42 <conditional name="data_sources">
182426b32995 Uploaded
completegenomics
parents:
diff changeset
43 <param name="data_source" type="select" label="Where is the input varfile?">
182426b32995 Uploaded
completegenomics
parents:
diff changeset
44 <option value="in" selected="true">imported into Galaxy</option>
182426b32995 Uploaded
completegenomics
parents:
diff changeset
45 <option value="out">located outside Galaxy (available only for local Galaxy instances)</option>
182426b32995 Uploaded
completegenomics
parents:
diff changeset
46 </param>
182426b32995 Uploaded
completegenomics
parents:
diff changeset
47 <when value="in">
182426b32995 Uploaded
completegenomics
parents:
diff changeset
48 <!--form field to select variant files-->
182426b32995 Uploaded
completegenomics
parents:
diff changeset
49 <param name="varfile" type="data" format="cg_var" label="Var file">
182426b32995 Uploaded
completegenomics
parents:
diff changeset
50 <validator type="unspecified_build" />
182426b32995 Uploaded
completegenomics
parents:
diff changeset
51 <validator type="dataset_metadata_in_file" filename="cg_crr_files.loc"
182426b32995 Uploaded
completegenomics
parents:
diff changeset
52 metadata_name="dbkey" metadata_column="1"
182426b32995 Uploaded
completegenomics
parents:
diff changeset
53 message="cgatools is not currently available for this build."/>
182426b32995 Uploaded
completegenomics
parents:
diff changeset
54 </param>
182426b32995 Uploaded
completegenomics
parents:
diff changeset
55 </when>
182426b32995 Uploaded
completegenomics
parents:
diff changeset
56 <when value="out">
182426b32995 Uploaded
completegenomics
parents:
diff changeset
57 <!--form field to select crr file-->
182426b32995 Uploaded
completegenomics
parents:
diff changeset
58 <param name="varfile" type="text" label="Variant file (/path/varfile)" size="40" help="Variant file can be compressed (gz, bz2), e.g. /harddrive/GS00000XXXX-DID/GS00000YYYY-ASM/GS00123-DNA_G01_2000/ASM/var-GS00000YYYY-ASM.tsv.bz2"/>
182426b32995 Uploaded
completegenomics
parents:
diff changeset
59 </when>
182426b32995 Uploaded
completegenomics
parents:
diff changeset
60 </conditional>
182426b32995 Uploaded
completegenomics
parents:
diff changeset
61
182426b32995 Uploaded
completegenomics
parents:
diff changeset
62 <!--conditional to select genotypes file input-->
182426b32995 Uploaded
completegenomics
parents:
diff changeset
63 <param name="genotype" type="data" format="tabular" label="Genotypes file with SNP calls" help="The genotypes file is a tab-delimited file with at
182426b32995 Uploaded
completegenomics
parents:
diff changeset
64 least the following columns (additional columns may be given): Chromosome (Required), Offset0Based (Required), GenotypesStrand (Optional), Genotypes (Optional)">
182426b32995 Uploaded
completegenomics
parents:
diff changeset
65 <validator type="unspecified_build" />
182426b32995 Uploaded
completegenomics
parents:
diff changeset
66 <validator type="dataset_metadata_in_file" filename="cg_crr_files.loc"
182426b32995 Uploaded
completegenomics
parents:
diff changeset
67 metadata_name="dbkey" metadata_column="1"
182426b32995 Uploaded
completegenomics
parents:
diff changeset
68 message="cgatools is not currently available for this build."/>
182426b32995 Uploaded
completegenomics
parents:
diff changeset
69 </param>
182426b32995 Uploaded
completegenomics
parents:
diff changeset
70
182426b32995 Uploaded
completegenomics
parents:
diff changeset
71 <param name="report1" type="select" label="Create report Output">
182426b32995 Uploaded
completegenomics
parents:
diff changeset
72 <option value="">no</option>
182426b32995 Uploaded
completegenomics
parents:
diff changeset
73 <option value="Output">yes</option>
182426b32995 Uploaded
completegenomics
parents:
diff changeset
74 </param>
182426b32995 Uploaded
completegenomics
parents:
diff changeset
75 <param name="report2" type="select" label="Create report Verbose">
182426b32995 Uploaded
completegenomics
parents:
diff changeset
76 <option value="">no</option>
182426b32995 Uploaded
completegenomics
parents:
diff changeset
77 <option value="Verbose">yes</option>
182426b32995 Uploaded
completegenomics
parents:
diff changeset
78 </param>
182426b32995 Uploaded
completegenomics
parents:
diff changeset
79 <param name="report3" type="select" label="Create report Stats">
182426b32995 Uploaded
completegenomics
parents:
diff changeset
80 <option value="">no</option>
182426b32995 Uploaded
completegenomics
parents:
diff changeset
81 <option value="Stats">yes</option>
182426b32995 Uploaded
completegenomics
parents:
diff changeset
82 </param>
182426b32995 Uploaded
completegenomics
parents:
diff changeset
83
182426b32995 Uploaded
completegenomics
parents:
diff changeset
84 </inputs>
182426b32995 Uploaded
completegenomics
parents:
diff changeset
85
182426b32995 Uploaded
completegenomics
parents:
diff changeset
86 <help>
182426b32995 Uploaded
completegenomics
parents:
diff changeset
87
182426b32995 Uploaded
completegenomics
parents:
diff changeset
88 **What it does**
182426b32995 Uploaded
completegenomics
parents:
diff changeset
89
182426b32995 Uploaded
completegenomics
parents:
diff changeset
90 This tool ompares snp calls to a Complete Genomics variant file.
182426b32995 Uploaded
completegenomics
parents:
diff changeset
91
182426b32995 Uploaded
completegenomics
parents:
diff changeset
92 **cgatools 1.5.0 Documentation**
182426b32995 Uploaded
completegenomics
parents:
diff changeset
93
182426b32995 Uploaded
completegenomics
parents:
diff changeset
94 Userguide: http://cgatools.sourceforge.net/docs/1.5.0/cgatools-user-guide.pdf
182426b32995 Uploaded
completegenomics
parents:
diff changeset
95
182426b32995 Uploaded
completegenomics
parents:
diff changeset
96 Release notes: http://cgatools.sourceforge.net/docs/1.5.0/cgatools-release-notes.pdf
182426b32995 Uploaded
completegenomics
parents:
diff changeset
97
182426b32995 Uploaded
completegenomics
parents:
diff changeset
98 **Command line reference**::
182426b32995 Uploaded
completegenomics
parents:
diff changeset
99
182426b32995 Uploaded
completegenomics
parents:
diff changeset
100 COMMAND NAME
182426b32995 Uploaded
completegenomics
parents:
diff changeset
101 snpdiff - Compares snp calls to a Complete Genomics variant file.
182426b32995 Uploaded
completegenomics
parents:
diff changeset
102
182426b32995 Uploaded
completegenomics
parents:
diff changeset
103 DESCRIPTION
182426b32995 Uploaded
completegenomics
parents:
diff changeset
104 Compares the snp calls in the "genotypes" file to the calls in a Complete
182426b32995 Uploaded
completegenomics
parents:
diff changeset
105 Genomics variant file. The genotypes file is a tab-delimited file with at
182426b32995 Uploaded
completegenomics
parents:
diff changeset
106 least the following columns (additional columns may be given):
182426b32995 Uploaded
completegenomics
parents:
diff changeset
107
182426b32995 Uploaded
completegenomics
parents:
diff changeset
108 Chromosome (Required) The name of the chromosome.
182426b32995 Uploaded
completegenomics
parents:
diff changeset
109 Offset0Based (Required) The 0-based offset in the chromosome.
182426b32995 Uploaded
completegenomics
parents:
diff changeset
110 GenotypesStrand (Optional) The strand of the calls in the Genotypes
182426b32995 Uploaded
completegenomics
parents:
diff changeset
111 column (+ or -, defaults to +).
182426b32995 Uploaded
completegenomics
parents:
diff changeset
112 Genotypes (Optional) The calls, one per allele. The following
182426b32995 Uploaded
completegenomics
parents:
diff changeset
113 calls are recognized:
182426b32995 Uploaded
completegenomics
parents:
diff changeset
114 A,C,G,T A called base.
182426b32995 Uploaded
completegenomics
parents:
diff changeset
115 N A no-call.
182426b32995 Uploaded
completegenomics
parents:
diff changeset
116 - A deleted base.
182426b32995 Uploaded
completegenomics
parents:
diff changeset
117 . A non-snp variation.
182426b32995 Uploaded
completegenomics
parents:
diff changeset
118
182426b32995 Uploaded
completegenomics
parents:
diff changeset
119 The output is a tab-delimited file consisting of the columns of the
182426b32995 Uploaded
completegenomics
parents:
diff changeset
120 original genotypes file, plus the following additional columns:
182426b32995 Uploaded
completegenomics
parents:
diff changeset
121
182426b32995 Uploaded
completegenomics
parents:
diff changeset
122 Reference The reference base at the given position.
182426b32995 Uploaded
completegenomics
parents:
diff changeset
123 VariantFile The calls made by the variant file, one per allele.
182426b32995 Uploaded
completegenomics
parents:
diff changeset
124 The character codes are the same as is described for
182426b32995 Uploaded
completegenomics
parents:
diff changeset
125 the Genotypes column.
182426b32995 Uploaded
completegenomics
parents:
diff changeset
126 DiscordantAlleles (Only if Genotypes is present) The number of
182426b32995 Uploaded
completegenomics
parents:
diff changeset
127 Genotypes alleles that are discordant with calls in
182426b32995 Uploaded
completegenomics
parents:
diff changeset
128 the VariantFile. If the VariantFile is described as
182426b32995 Uploaded
completegenomics
parents:
diff changeset
129 haploid at the given position but the Genotypes is
182426b32995 Uploaded
completegenomics
parents:
diff changeset
130 diploid, then each genotype allele is compared
182426b32995 Uploaded
completegenomics
parents:
diff changeset
131 against the haploid call of the VariantFile.
182426b32995 Uploaded
completegenomics
parents:
diff changeset
132 NoCallAlleles (Only if Genotypes is present) The number of
182426b32995 Uploaded
completegenomics
parents:
diff changeset
133 Genotypes alleles that were no-called by the
182426b32995 Uploaded
completegenomics
parents:
diff changeset
134 VariantFile. If the VariantFile is described as
182426b32995 Uploaded
completegenomics
parents:
diff changeset
135 haploid at the given position but the Genotypes is
182426b32995 Uploaded
completegenomics
parents:
diff changeset
136 diploid, then a VariantFile no-call is counted twice.
182426b32995 Uploaded
completegenomics
parents:
diff changeset
137
182426b32995 Uploaded
completegenomics
parents:
diff changeset
138 The verbose output is a tab-delimited file consisting of the columns of the
182426b32995 Uploaded
completegenomics
parents:
diff changeset
139 original genotypes file, plus the following additional columns:
182426b32995 Uploaded
completegenomics
parents:
diff changeset
140
182426b32995 Uploaded
completegenomics
parents:
diff changeset
141 Reference The reference base at the given position.
182426b32995 Uploaded
completegenomics
parents:
diff changeset
142 VariantFile The call made by the variant file for one allele (there is
182426b32995 Uploaded
completegenomics
parents:
diff changeset
143 a line in this file for each allele). The character codes
182426b32995 Uploaded
completegenomics
parents:
diff changeset
144 are the same as is described for the Genotypes column.
182426b32995 Uploaded
completegenomics
parents:
diff changeset
145 [CALLS] The rest of the columns are pasted in from the VariantFile,
182426b32995 Uploaded
completegenomics
parents:
diff changeset
146 describing the variant file line used to make the call.
182426b32995 Uploaded
completegenomics
parents:
diff changeset
147
182426b32995 Uploaded
completegenomics
parents:
diff changeset
148 The stats output is a comma-separated file with several tables describing
182426b32995 Uploaded
completegenomics
parents:
diff changeset
149 the results of the snp comparison, for each diploid genotype. The tables
182426b32995 Uploaded
completegenomics
parents:
diff changeset
150 all describe the comparison result (column headers) versus the genotype
182426b32995 Uploaded
completegenomics
parents:
diff changeset
151 classification (row labels) in different ways. The "Locus classification"
182426b32995 Uploaded
completegenomics
parents:
diff changeset
152 tables have the most detailed match classifications, while the "Locus
182426b32995 Uploaded
completegenomics
parents:
diff changeset
153 concordance" tables roll these match classifications up into "discordance"
182426b32995 Uploaded
completegenomics
parents:
diff changeset
154 and "no-call". A locus is considered discordant if it is discordant for
182426b32995 Uploaded
completegenomics
parents:
diff changeset
155 either allele. A locus is considered no-call if it is concordant for both
182426b32995 Uploaded
completegenomics
parents:
diff changeset
156 alleles but has a no-call on either allele. The "Allele concordance"
182426b32995 Uploaded
completegenomics
parents:
diff changeset
157 describes the comparison result on a per-allele basis.
182426b32995 Uploaded
completegenomics
parents:
diff changeset
158
182426b32995 Uploaded
completegenomics
parents:
diff changeset
159 OPTIONS
182426b32995 Uploaded
completegenomics
parents:
diff changeset
160 -h [ --help ]
182426b32995 Uploaded
completegenomics
parents:
diff changeset
161 Print this help message.
182426b32995 Uploaded
completegenomics
parents:
diff changeset
162
182426b32995 Uploaded
completegenomics
parents:
diff changeset
163 --reference arg
182426b32995 Uploaded
completegenomics
parents:
diff changeset
164 The input crr file.
182426b32995 Uploaded
completegenomics
parents:
diff changeset
165
182426b32995 Uploaded
completegenomics
parents:
diff changeset
166 --variants arg
182426b32995 Uploaded
completegenomics
parents:
diff changeset
167 The input variant file.
182426b32995 Uploaded
completegenomics
parents:
diff changeset
168
182426b32995 Uploaded
completegenomics
parents:
diff changeset
169 --genotypes arg
182426b32995 Uploaded
completegenomics
parents:
diff changeset
170 The input genotypes file.
182426b32995 Uploaded
completegenomics
parents:
diff changeset
171
182426b32995 Uploaded
completegenomics
parents:
diff changeset
172 --output-prefix arg
182426b32995 Uploaded
completegenomics
parents:
diff changeset
173 The path prefix for all output reports.
182426b32995 Uploaded
completegenomics
parents:
diff changeset
174
182426b32995 Uploaded
completegenomics
parents:
diff changeset
175 --reports arg (=Output,Verbose,Stats)
182426b32995 Uploaded
completegenomics
parents:
diff changeset
176 Comma-separated list of reports to generate. A report is one of:
182426b32995 Uploaded
completegenomics
parents:
diff changeset
177 Output The output genotypes file.
182426b32995 Uploaded
completegenomics
parents:
diff changeset
178 Verbose The verbose output file.
182426b32995 Uploaded
completegenomics
parents:
diff changeset
179 Stats The stats output file.
182426b32995 Uploaded
completegenomics
parents:
diff changeset
180
182426b32995 Uploaded
completegenomics
parents:
diff changeset
181 SUPPORTED FORMAT_VERSION
182426b32995 Uploaded
completegenomics
parents:
diff changeset
182 0.3 or later
182426b32995 Uploaded
completegenomics
parents:
diff changeset
183 </help>
182426b32995 Uploaded
completegenomics
parents:
diff changeset
184 </tool>