annotate freebayes.xml @ 0:33a0e6aca936 draft default tip

Imported from capsule None
author devteam
date Mon, 27 Jan 2014 09:27:37 -0500
parents
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
0
33a0e6aca936 Imported from capsule None
devteam
parents:
diff changeset
1 <?xml version="1.0"?>
33a0e6aca936 Imported from capsule None
devteam
parents:
diff changeset
2 <tool id="freebayes_wrapper" name="Call SNPS with Freebayes" version="0.5.0">
33a0e6aca936 Imported from capsule None
devteam
parents:
diff changeset
3 <requirements>
33a0e6aca936 Imported from capsule None
devteam
parents:
diff changeset
4 <requirement type="package" version="0.9.6_9608597d12e127c847ae03aa03440ab63992fedf">freebayes</requirement>
33a0e6aca936 Imported from capsule None
devteam
parents:
diff changeset
5 <requirement type="package" version="0.1.16">samtools</requirement>
33a0e6aca936 Imported from capsule None
devteam
parents:
diff changeset
6 </requirements>
33a0e6aca936 Imported from capsule None
devteam
parents:
diff changeset
7 <description>Bayesian genetic variant detector</description>
33a0e6aca936 Imported from capsule None
devteam
parents:
diff changeset
8 <command>
33a0e6aca936 Imported from capsule None
devteam
parents:
diff changeset
9 ln -s $reference localref.fa &amp;&amp;
33a0e6aca936 Imported from capsule None
devteam
parents:
diff changeset
10 ln -s $bamfile localbam.bam &amp;&amp;
33a0e6aca936 Imported from capsule None
devteam
parents:
diff changeset
11 samtools faidx localref.fa 2&gt;&amp;1 || echo "Error running samtools faidx for FreeBayes" &gt;&amp;2 &amp;&amp;
33a0e6aca936 Imported from capsule None
devteam
parents:
diff changeset
12 samtools sort localbam.bam localbam.bam 2&gt;&amp;1 || echo "Error running samtools sort for FreeBayes" &gt;&amp;2 &amp;&amp;
33a0e6aca936 Imported from capsule None
devteam
parents:
diff changeset
13 samtools index localbam.bam 2&gt;&amp;1 || echo "Error running samtools index for FreeBayes" &gt;&amp;2 &amp;&amp;
33a0e6aca936 Imported from capsule None
devteam
parents:
diff changeset
14 freebayes --fasta-reference localref.fa localbam.bam --vcf $output
33a0e6aca936 Imported from capsule None
devteam
parents:
diff changeset
15 #if $params.source_select == "full":
33a0e6aca936 Imported from capsule None
devteam
parents:
diff changeset
16 $params.showRefRepeats
33a0e6aca936 Imported from capsule None
devteam
parents:
diff changeset
17 -T $params.theta
33a0e6aca936 Imported from capsule None
devteam
parents:
diff changeset
18 -p $params.ploidy
33a0e6aca936 Imported from capsule None
devteam
parents:
diff changeset
19 $params.pooled
33a0e6aca936 Imported from capsule None
devteam
parents:
diff changeset
20 $params.mnps
33a0e6aca936 Imported from capsule None
devteam
parents:
diff changeset
21 $params.nosnps
33a0e6aca936 Imported from capsule None
devteam
parents:
diff changeset
22 -n $params.bestAlleles
33a0e6aca936 Imported from capsule None
devteam
parents:
diff changeset
23 $params.allAlleles
33a0e6aca936 Imported from capsule None
devteam
parents:
diff changeset
24 $params.duplicateReads
33a0e6aca936 Imported from capsule None
devteam
parents:
diff changeset
25 -M $params.refMapQuality
33a0e6aca936 Imported from capsule None
devteam
parents:
diff changeset
26 $params.ignoreRefAllele
33a0e6aca936 Imported from capsule None
devteam
parents:
diff changeset
27 $params.haploidReference
33a0e6aca936 Imported from capsule None
devteam
parents:
diff changeset
28 -m $params.minMapQuality
33a0e6aca936 Imported from capsule None
devteam
parents:
diff changeset
29 -q $params.minBaseQuality
33a0e6aca936 Imported from capsule None
devteam
parents:
diff changeset
30 $params.noFilters
33a0e6aca936 Imported from capsule None
devteam
parents:
diff changeset
31 -x $params.indelExclusionWindow
33a0e6aca936 Imported from capsule None
devteam
parents:
diff changeset
32 <!-- -D $readDependenceFactor -->
33a0e6aca936 Imported from capsule None
devteam
parents:
diff changeset
33 -V $params.diffusionPriorScalar
33a0e6aca936 Imported from capsule None
devteam
parents:
diff changeset
34 -W $params.postIntegBandwidth
33a0e6aca936 Imported from capsule None
devteam
parents:
diff changeset
35 -Y $params.postIntegBanddepth
33a0e6aca936 Imported from capsule None
devteam
parents:
diff changeset
36 -F $params.minAltFraction
33a0e6aca936 Imported from capsule None
devteam
parents:
diff changeset
37 -C $params.minAltCount
33a0e6aca936 Imported from capsule None
devteam
parents:
diff changeset
38 -G $params.minAltTotal
33a0e6aca936 Imported from capsule None
devteam
parents:
diff changeset
39 --min-coverage $params.minCoverage
33a0e6aca936 Imported from capsule None
devteam
parents:
diff changeset
40 #end if
33a0e6aca936 Imported from capsule None
devteam
parents:
diff changeset
41 </command>
33a0e6aca936 Imported from capsule None
devteam
parents:
diff changeset
42 <inputs>
33a0e6aca936 Imported from capsule None
devteam
parents:
diff changeset
43 <param format="fasta" name="reference" type="data" metadata_name="dbkey" label="Reference File"/>
33a0e6aca936 Imported from capsule None
devteam
parents:
diff changeset
44 <param format="bam" name="bamfile" type="data" label="Bam Alignment File"/>
33a0e6aca936 Imported from capsule None
devteam
parents:
diff changeset
45 <conditional name="params">
33a0e6aca936 Imported from capsule None
devteam
parents:
diff changeset
46 <param name="source_select" type="select" label="Freebayes Settings to Use" help="For straight forward mapping needs use Commonly Used settings. If you want full control use Full Parameter List">
33a0e6aca936 Imported from capsule None
devteam
parents:
diff changeset
47 <option value="pre_set">Commonly Used</option>
33a0e6aca936 Imported from capsule None
devteam
parents:
diff changeset
48 <option value="full">Full Parameter List</option>
33a0e6aca936 Imported from capsule None
devteam
parents:
diff changeset
49 </param>
33a0e6aca936 Imported from capsule None
devteam
parents:
diff changeset
50 <when value="pre_set"/>
33a0e6aca936 Imported from capsule None
devteam
parents:
diff changeset
51 <when value="full">
33a0e6aca936 Imported from capsule None
devteam
parents:
diff changeset
52 <param name="indels" type="select" label="Include insertion and deletion alleles in the analysis">
33a0e6aca936 Imported from capsule None
devteam
parents:
diff changeset
53 <option value="">No</option>
33a0e6aca936 Imported from capsule None
devteam
parents:
diff changeset
54 <option value="-i -N --report-all-alternates --left-align-indels">Yes</option>
33a0e6aca936 Imported from capsule None
devteam
parents:
diff changeset
55 </param>
33a0e6aca936 Imported from capsule None
devteam
parents:
diff changeset
56 <param name="theta" size="5" type="float" value="0.001" label="Theta" help="The expected mutation rate or pairwise nucleotide diversity among the population under analysis. This serves as the single parameter to the Ewens Sampling Formula prior model"/>
33a0e6aca936 Imported from capsule None
devteam
parents:
diff changeset
57 <param name="showRefRepeats" type="select" label="Show Reference Repeats" help="Calculate and show information about reference repeats in the VCF output">
33a0e6aca936 Imported from capsule None
devteam
parents:
diff changeset
58 <option value="">No</option>
33a0e6aca936 Imported from capsule None
devteam
parents:
diff changeset
59 <option value="-_">Yes</option>
33a0e6aca936 Imported from capsule None
devteam
parents:
diff changeset
60 </param>
33a0e6aca936 Imported from capsule None
devteam
parents:
diff changeset
61 <param name="ploidy" size="5" type="integer" value="2" label="Ploidy" help="Sets the default ploidy for the analysis"/>
33a0e6aca936 Imported from capsule None
devteam
parents:
diff changeset
62 <param name="pooled" type="select" label="Pooled" help="Assume that samples result from pooled sequencing. When using this flag, set --ploidy to the number of alleles in each sample">
33a0e6aca936 Imported from capsule None
devteam
parents:
diff changeset
63 <option value="">No</option>
33a0e6aca936 Imported from capsule None
devteam
parents:
diff changeset
64 <option value="-J">Yes</option>
33a0e6aca936 Imported from capsule None
devteam
parents:
diff changeset
65 </param>
33a0e6aca936 Imported from capsule None
devteam
parents:
diff changeset
66 <param name="mnps" type="select" label="Include multi-nuceotide polymorphisms in the analysis">
33a0e6aca936 Imported from capsule None
devteam
parents:
diff changeset
67 <option value="">No</option>
33a0e6aca936 Imported from capsule None
devteam
parents:
diff changeset
68 <option value="--mnps">Yes</option>
33a0e6aca936 Imported from capsule None
devteam
parents:
diff changeset
69 </param>
33a0e6aca936 Imported from capsule None
devteam
parents:
diff changeset
70 <param name="nosnps" type="select" label="Ignore SNP alleles">
33a0e6aca936 Imported from capsule None
devteam
parents:
diff changeset
71 <option value="">No</option>
33a0e6aca936 Imported from capsule None
devteam
parents:
diff changeset
72 <option value="--no-snps">Yes</option>
33a0e6aca936 Imported from capsule None
devteam
parents:
diff changeset
73 </param>
33a0e6aca936 Imported from capsule None
devteam
parents:
diff changeset
74 <param name="duplicateReads" type="select" label="Include duplicate-marked alignments in the analysis">
33a0e6aca936 Imported from capsule None
devteam
parents:
diff changeset
75 <option value="">No</option>
33a0e6aca936 Imported from capsule None
devteam
parents:
diff changeset
76 <option value="--use-duplicate-reads">Yes</option>
33a0e6aca936 Imported from capsule None
devteam
parents:
diff changeset
77 </param>
33a0e6aca936 Imported from capsule None
devteam
parents:
diff changeset
78 <param name="bestAlleles" size="5" type="integer" value="2" label="Use Best N Alleles" help="Evaluate only the best N alleles, ranked by sum of supporting quality scores"/>
33a0e6aca936 Imported from capsule None
devteam
parents:
diff changeset
79 <param name="allAlleles" type="select" label="Evaluate all possible alleles">
33a0e6aca936 Imported from capsule None
devteam
parents:
diff changeset
80 <option value="">No</option>
33a0e6aca936 Imported from capsule None
devteam
parents:
diff changeset
81 <option value="--use-all-alleles">Yes</option>
33a0e6aca936 Imported from capsule None
devteam
parents:
diff changeset
82 </param>
33a0e6aca936 Imported from capsule None
devteam
parents:
diff changeset
83 <param name="refMapQuality" size="5" type="integer" value="100" label="Assign mapping quality of Q to the reference allele at each site"/>
33a0e6aca936 Imported from capsule None
devteam
parents:
diff changeset
84 <param name="refBaseQuality" size="5" type="integer" value="60" label="Reference Base Quality" help="Assign a base quality of Q to the reference allele at each site"/>
33a0e6aca936 Imported from capsule None
devteam
parents:
diff changeset
85 <param name="minMapQuality" size="5" type="integer" value="10" label="Minimum Mapping Quality" help="Exclude alignments from analysis if they have a mapping quality less than Q"/>
33a0e6aca936 Imported from capsule None
devteam
parents:
diff changeset
86 <param name="minBaseQuality" size="5" type="integer" value="5" label="Minimum Base Quality" help="Exclude alleles from analysis if their supporting base quality is less than Q"/>
33a0e6aca936 Imported from capsule None
devteam
parents:
diff changeset
87 <param name="indelExclusionWindow" size="5" type="integer" value="0" label="Indel Exclusion Window" help="Ignore portions of alignments N bases from a putative insertion or deletion allele"/>
33a0e6aca936 Imported from capsule None
devteam
parents:
diff changeset
88 <param name="ignoreRefAllele" type="select" label="Ignore Reference Allele" help="By default, the reference allele is considered as another sample. This flag excludes it from the analysis">
33a0e6aca936 Imported from capsule None
devteam
parents:
diff changeset
89 <option value="">No</option>
33a0e6aca936 Imported from capsule None
devteam
parents:
diff changeset
90 <option value="--ignore-reference-allele">Yes</option>
33a0e6aca936 Imported from capsule None
devteam
parents:
diff changeset
91 </param>
33a0e6aca936 Imported from capsule None
devteam
parents:
diff changeset
92 <param name="haploidReference" type="select" label="Haploid Reference" help="If using the reference sequence as a sample, consider it to be haploid">
33a0e6aca936 Imported from capsule None
devteam
parents:
diff changeset
93 <option value="">No</option>
33a0e6aca936 Imported from capsule None
devteam
parents:
diff changeset
94 <option value="--haploid-reference">Yes</option>
33a0e6aca936 Imported from capsule None
devteam
parents:
diff changeset
95 </param>
33a0e6aca936 Imported from capsule None
devteam
parents:
diff changeset
96 <param name="noFilters" type="select" label="No Filters" help="Do not use any input base and mapping quality filters. Equivalent to -m 0 -q 0 -R 0 -S 0">
33a0e6aca936 Imported from capsule None
devteam
parents:
diff changeset
97 <option value="">No</option>
33a0e6aca936 Imported from capsule None
devteam
parents:
diff changeset
98 <option value="--no-filters">Yes</option>
33a0e6aca936 Imported from capsule None
devteam
parents:
diff changeset
99 </param>
33a0e6aca936 Imported from capsule None
devteam
parents:
diff changeset
100 <!-- <param name="readDependenceFactor" size="5" type="float" value="0.9" label="Read Dependence Factor" help="Incorporate non-independence of reads by scaling successive observations by this factor during data likelihood calculations"/> -->
33a0e6aca936 Imported from capsule None
devteam
parents:
diff changeset
101 <param name="diffusionPriorScalar" size="5" type="float" value="1" label="Diffusion Prior Scalar" help="Downgrade the significance of P(genotype combo | allele frequency) by taking the Nth root of this component of the prior"/>
33a0e6aca936 Imported from capsule None
devteam
parents:
diff changeset
102 <param name="postIntegBandwidth" size="5" type="integer" value="2" label="Posterior Integratoin Bandwidth" help="Integrate all genotype combinations in our posterior space which lie no more than N steps from the most likely combination in terms of data likelihoods, taking the N steps from the most to least likely genotype for each individual"/>
33a0e6aca936 Imported from capsule None
devteam
parents:
diff changeset
103 <param name="postIntegBanddepth" size="5" type="integer" value="2" label="Posterior Integratoin Banddepth" help="Generate all genotype combinations for which up to this number of samples have up to their -W'th worst genotype according to data likelihood"/>
33a0e6aca936 Imported from capsule None
devteam
parents:
diff changeset
104 <param name="minAltFraction" size="5" type="integer" value="0" label="Minimum Alternative Fraction" help="Require at least this fraction of observations supporting an alternate allele within a single individual in the in order to evaluate the position"/>
33a0e6aca936 Imported from capsule None
devteam
parents:
diff changeset
105 <param name="minAltCount" size="5" type="integer" value="1" label="Minimum Alternative Count" help="Require at least this count of observations supporting an alternate allele within a single individual in order to evaluate the position"/>
33a0e6aca936 Imported from capsule None
devteam
parents:
diff changeset
106 <param name="minAltTotal" size="5" type="integer" value="1" label="Minimum Alternative Total" help="Require at least this count of observations supporting an alternate allele within the total population in order to use the allele in analysis"/>
33a0e6aca936 Imported from capsule None
devteam
parents:
diff changeset
107 <param name="minCoverage" size="5" type="integer" value="0" label="Minimum Coverage" help="Require at least this coverage to process a site"/>
33a0e6aca936 Imported from capsule None
devteam
parents:
diff changeset
108 </when>
33a0e6aca936 Imported from capsule None
devteam
parents:
diff changeset
109 </conditional>
33a0e6aca936 Imported from capsule None
devteam
parents:
diff changeset
110 </inputs>
33a0e6aca936 Imported from capsule None
devteam
parents:
diff changeset
111 <outputs>
33a0e6aca936 Imported from capsule None
devteam
parents:
diff changeset
112 <data format="vcf" name="output" metadata_source="reference" />
33a0e6aca936 Imported from capsule None
devteam
parents:
diff changeset
113 </outputs>
33a0e6aca936 Imported from capsule None
devteam
parents:
diff changeset
114 <tests>
33a0e6aca936 Imported from capsule None
devteam
parents:
diff changeset
115 <test>
33a0e6aca936 Imported from capsule None
devteam
parents:
diff changeset
116 <param name="reference" ftype="fasta" value="mosaik_test_ref.fasta"/>
33a0e6aca936 Imported from capsule None
devteam
parents:
diff changeset
117 <param name="bamfile" ftype="bam" value="freebayes_in.bam"/>
33a0e6aca936 Imported from capsule None
devteam
parents:
diff changeset
118 <param name="source_select" value="pre_set"/>
33a0e6aca936 Imported from capsule None
devteam
parents:
diff changeset
119 <output name="output" file="freebayes_out.vcf" lines_diff="4"/>
33a0e6aca936 Imported from capsule None
devteam
parents:
diff changeset
120 </test>
33a0e6aca936 Imported from capsule None
devteam
parents:
diff changeset
121 </tests>
33a0e6aca936 Imported from capsule None
devteam
parents:
diff changeset
122 <help>
33a0e6aca936 Imported from capsule None
devteam
parents:
diff changeset
123 This tool uses Freebayes to call SNPS given a reference sequence and a BAM alignment file.
33a0e6aca936 Imported from capsule None
devteam
parents:
diff changeset
124 </help>
33a0e6aca936 Imported from capsule None
devteam
parents:
diff changeset
125 </tool>