annotate cfsan_snp_pipeline_call_consensus_snps.xml @ 2:d2ac1f5c05ed draft default tip

Uploaded
author greg
date Thu, 23 Nov 2023 22:11:08 +0000
parents 0fd0a757072c
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
0
3275d4866650 Uploaded
greg
parents:
diff changeset
1 <tool id="cfsan_snp_pipeline_call_consensus_snps" name="CFSAN SNP Pipeline: call consensus SNPs" version="@TOOL_VERSION@+galaxy@VERSION_SUFFIX@" profile="@PROFILE@">
3275d4866650 Uploaded
greg
parents:
diff changeset
2 <description></description>
3275d4866650 Uploaded
greg
parents:
diff changeset
3 <macros>
3275d4866650 Uploaded
greg
parents:
diff changeset
4 <import>macros.xml</import>
3275d4866650 Uploaded
greg
parents:
diff changeset
5 </macros>
3275d4866650 Uploaded
greg
parents:
diff changeset
6 <expand macro="requirements"/>
3275d4866650 Uploaded
greg
parents:
diff changeset
7 <command detect_errors="exit_code"><![CDATA[
2
d2ac1f5c05ed Uploaded
greg
parents: 1
diff changeset
8 #set identifier = $input_call_pileup.element_identifier
d2ac1f5c05ed Uploaded
greg
parents: 1
diff changeset
9 mkdir -p ./'$identifier'/ &&
1
0fd0a757072c Uploaded
greg
parents: 0
diff changeset
10 cp '$input_call_pileup' ./'$identifier'/reads.all.pileup &&
0fd0a757072c Uploaded
greg
parents: 0
diff changeset
11 cfsan_snp_pipeline call_consensus -v 4 -l '$input_merged_snp_sites' --vcfFileName 'consensus.vcf' ./'$identifier'/reads.all.pileup 1>&2 &&
0
3275d4866650 Uploaded
greg
parents:
diff changeset
12 mv ./consensus.fasta '$output_fasta' &&
3275d4866650 Uploaded
greg
parents:
diff changeset
13 mv ./consensus.vcf '$output_vcf'
3275d4866650 Uploaded
greg
parents:
diff changeset
14 ]]></command>
3275d4866650 Uploaded
greg
parents:
diff changeset
15 <inputs>
3275d4866650 Uploaded
greg
parents:
diff changeset
16 <param type="data" name="input_merged_snp_sites" format="tabular" label="Merged SNP sites tabular file"/>
3275d4866650 Uploaded
greg
parents:
diff changeset
17 <param type="data" name="input_snp_sites" format="vcf" label="SNP sites vcf file"/>
3275d4866650 Uploaded
greg
parents:
diff changeset
18 <param type="data" name="input_call_pileup" format="pileup" label="SNP sites pileup file"/>
3275d4866650 Uploaded
greg
parents:
diff changeset
19 </inputs>
3275d4866650 Uploaded
greg
parents:
diff changeset
20 <outputs>
3275d4866650 Uploaded
greg
parents:
diff changeset
21 <data name="output_vcf" format="vcf" label="Consensus SNPs (vcf)"/>
3275d4866650 Uploaded
greg
parents:
diff changeset
22 <data name="output_fasta" format="fasta" label="Consensus SNPs (fasta)"/>
3275d4866650 Uploaded
greg
parents:
diff changeset
23 </outputs>
3275d4866650 Uploaded
greg
parents:
diff changeset
24 <tests>
3275d4866650 Uploaded
greg
parents:
diff changeset
25 <test>
3275d4866650 Uploaded
greg
parents:
diff changeset
26 <param name="input_merged_snp_sites" value="input_merged_snp_sites.tabular"/>
3275d4866650 Uploaded
greg
parents:
diff changeset
27 <param name="input_snp_sites" value="input_snp_sites.vcf"/>
3275d4866650 Uploaded
greg
parents:
diff changeset
28 <param name="input_call_pileup" value="input_call_pileup.pileup"/>
3275d4866650 Uploaded
greg
parents:
diff changeset
29 <output name="output_vcf" value="output.vcf" lines_diff="20"/>
3275d4866650 Uploaded
greg
parents:
diff changeset
30 <output name="output_fasta" value="output.fasta" lines_diff="2"/>
3275d4866650 Uploaded
greg
parents:
diff changeset
31 </test>
3275d4866650 Uploaded
greg
parents:
diff changeset
32 </tests>
3275d4866650 Uploaded
greg
parents:
diff changeset
33 <help><![CDATA[
3275d4866650 Uploaded
greg
parents:
diff changeset
34 **What it does**
3275d4866650 Uploaded
greg
parents:
diff changeset
35
3275d4866650 Uploaded
greg
parents:
diff changeset
36 Call the consensus base for a sample at the specified positions where high-
3275d4866650 Uploaded
greg
parents:
diff changeset
37 confidence SNPs were previously called in any of the samples. Generates a
3275d4866650 Uploaded
greg
parents:
diff changeset
38 single-sequence fasta file with one base per specified position.
3275d4866650 Uploaded
greg
parents:
diff changeset
39
3275d4866650 Uploaded
greg
parents:
diff changeset
40 **Optional parameters**
3275d4866650 Uploaded
greg
parents:
diff changeset
41
3275d4866650 Uploaded
greg
parents:
diff changeset
42 * **force** - Force processing even when result file already exists and is newer than inputs (default: False)
3275d4866650 Uploaded
greg
parents:
diff changeset
43 * **snpListFile** - Relative or absolute path to the SNP list file across all samples (default: snplist.txt)
3275d4866650 Uploaded
greg
parents:
diff changeset
44 * **excludeFile** - VCF file of positions to exclude (default: None)
3275d4866650 Uploaded
greg
parents:
diff changeset
45 * **minBaseQual** - Mimimum base quality score to count a read - all other snp filters take effect after the low-quality reads are discarded (default: 0)
3275d4866650 Uploaded
greg
parents:
diff changeset
46 * **minConsFreq** - Consensus frequency. Mimimum fraction of high-quality reads supporting the consensus to make a call (default: 0.6)
3275d4866650 Uploaded
greg
parents:
diff changeset
47 * **minConsFreq** - Consensus frequency. Mimimum fraction of high-quality reads supporting the consensus to make a call (default: 0.6)
3275d4866650 Uploaded
greg
parents:
diff changeset
48 * **minConsDpth** - Consensus depth - minimum number of high-quality reads supporting the consensus to make a call (default: 1)
3275d4866650 Uploaded
greg
parents:
diff changeset
49 * **minConsStrdDpth** - Consensus strand depth - minimum number of high-quality reads supporting the consensus which must be present on both the forward and reverse strands to make a call (default: 0)
3275d4866650 Uploaded
greg
parents:
diff changeset
50 * **minConsStrdBias** - Strand bias - minimum fraction of the high-quality consensus-supporting reads which must be present on both the forward and reverse strands to make a call. The numerator of this fraction is the number of high-quality consensus-supporting reads on one strand. The denominator is the total number of high-quality consensus-supporting reads on both strands combined. (default: 0)
3275d4866650 Uploaded
greg
parents:
diff changeset
51 * **vcfRefName** - Name of the reference file. This is only used in the generated VCF file header. (default: Unknown reference)
3275d4866650 Uploaded
greg
parents:
diff changeset
52 * **vcfAllPos** - Flag to cause VCF file generation at all positions, not just the snp positions. This has no effect on the consensus fasta file, it only affects the VCF file. This capability is intended primarily as a diagnostic tool and enabling this flag will greatly increase execution time. (default: False)
3275d4866650 Uploaded
greg
parents:
diff changeset
53 * **vcfPreserveRefCase** - Flag to cause the VCF file generator to emit each reference base in uppercase/lowercase as it appears in the reference sequence file. If not specified, the reference base is emitted in uppercase. (default: False)
3275d4866650 Uploaded
greg
parents:
diff changeset
54 * **vcfFailedSnpGt** - Controls the VCF file GT data element when a snp fails filters. Possible values: .) The GT element will be a dot, indicating unable to make a call. 0) The GT element will be 0, indicating the reference base. 1) The GT element will be the ALT index of the most commonly occuring base, usually 1. (default: .)
3275d4866650 Uploaded
greg
parents:
diff changeset
55
3275d4866650 Uploaded
greg
parents:
diff changeset
56 **More information**
3275d4866650 Uploaded
greg
parents:
diff changeset
57
3275d4866650 Uploaded
greg
parents:
diff changeset
58 CFSAN SNP Pipeline `call consensus documentation <https://snp-pipeline.readthedocs.io/en/latest/cmd_ref.html#call-consensus>`_
3275d4866650 Uploaded
greg
parents:
diff changeset
59 ]]></help>
3275d4866650 Uploaded
greg
parents:
diff changeset
60 <expand macro="citations"/>
3275d4866650 Uploaded
greg
parents:
diff changeset
61 </tool>
3275d4866650 Uploaded
greg
parents:
diff changeset
62