annotate tools/human_genome_variation/freebayes.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 <?xml version="1.0"?>
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
2 <tool id="freebayes_wrapper" name="Call SNPS with Freebayes" version="0.5.0">
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
3 <requirements>
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
4 <requirement type="package">freebayes</requirement>
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
5 </requirements>
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
6 <description>Bayesian genetic variant detector</description>
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
7 <command>
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
8 ln -s $reference localref.fa;
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
9 ln -s $bamfile localbam.bam;
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
10 samtools faidx localref.fa;
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
11 samtools sort localbam.bam localbam.bam;
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
12 samtools index localbam.bam;
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
13 freebayes --fasta-reference localref.fa localbam.bam --vcf $output
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
14 #if $params.source_select == "full":
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
15 $params.showRefRepeats
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
16 -T $params.theta
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
17 -p $params.ploidy
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
18 $params.pooled
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
19 $params.mnps
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
20 $params.nosnps
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
21 -n $params.bestAlleles
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
22 $params.allAlleles
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
23 $params.duplicateReads
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
24 -M $params.refMapQuality
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
25 $params.ignoreRefAllele
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
26 $params.haploidReference
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
27 -m $params.minMapQuality
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
28 -q $params.minBaseQuality
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
29 $params.noFilters
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
30 -x $params.indelExclusionWindow
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
31 <!-- -D $readDependenceFactor -->
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
32 -V $params.diffusionPriorScalar
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
33 -W $params.postIntegBandwidth
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
34 -Y $params.postIntegBanddepth
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
35 -F $params.minAltFraction
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
36 -C $params.minAltCount
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
37 -G $params.minAltTotal
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
38 --min-coverage $params.minCoverage
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
39 #end if
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
40 </command>
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
41 <inputs>
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
42 <param format="fasta" name="reference" type="data" metadata_name="dbkey" label="Reference File"/>
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
43 <param format="bam" name="bamfile" type="data" label="Bam Alignment File"/>
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
44 <conditional name="params">
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
45 <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">
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
46 <option value="pre_set">Commonly Used</option>
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
47 <option value="full">Full Parameter List</option>
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
48 </param>
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
49 <when value="pre_set"/>
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
50 <when value="full">
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
51 <param name="indels" type="select" label="Include insertion and deletion alleles in the analysis">
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
52 <option value="">No</option>
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
53 <option value="-i -N --report-all-alternates --left-align-indels">Yes</option>
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
54 </param>
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
55 <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"/>
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
56 <param name="showRefRepeats" type="select" label="Show Reference Repeats" help="Calculate and show information about reference repeats in the VCF output">
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
57 <option value="">No</option>
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
58 <option value="-_">Yes</option>
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
59 </param>
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
60 <param name="ploidy" size="5" type="integer" value="2" label="Ploidy" help="Sets the default ploidy for the analysis"/>
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
61 <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">
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
62 <option value="">No</option>
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
63 <option value="-J">Yes</option>
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
64 </param>
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
65 <param name="mnps" type="select" label="Include multi-nuceotide polymorphisms in the analysis">
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
66 <option value="">No</option>
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
67 <option value="--mnps">Yes</option>
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
68 </param>
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
69 <param name="nosnps" type="select" label="Ignore SNP alleles">
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
70 <option value="">No</option>
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
71 <option value="--no-snps">Yes</option>
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
72 </param>
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
73 <param name="duplicateReads" type="select" label="Include duplicate-marked alignments in the analysis">
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
74 <option value="">No</option>
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
75 <option value="--use-duplicate-reads">Yes</option>
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
76 </param>
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
77 <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"/>
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
78 <param name="allAlleles" type="select" label="Evaluate all possible alleles">
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
79 <option value="">No</option>
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
80 <option value="--use-all-alleles">Yes</option>
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
81 </param>
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
82 <param name="refMapQuality" size="5" type="integer" value="100" label="Assign mapping quality of Q to the reference allele at each site"/>
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
83 <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"/>
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
84 <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"/>
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
85 <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"/>
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
86 <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"/>
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
87 <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">
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
88 <option value="">No</option>
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
89 <option value="--ignore-reference-allele">Yes</option>
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
90 </param>
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
91 <param name="haploidReference" type="select" label="Haploid Reference" help="If using the reference sequence as a sample, consider it to be haploid">
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
92 <option value="">No</option>
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
93 <option value="--haploid-reference">Yes</option>
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
94 </param>
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
95 <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">
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
96 <option value="">No</option>
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
97 <option value="--no-filters">Yes</option>
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
98 </param>
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
99 <!-- <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"/> -->
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
100 <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"/>
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
101 <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"/>
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
102 <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"/>
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
103 <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"/>
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
104 <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"/>
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
105 <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"/>
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
106 <param name="minCoverage" size="5" type="integer" value="0" label="Minimum Coverage" help="Require at least this coverage to process a site"/>
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
107 </when>
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
108 </conditional>
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
109 </inputs>
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
110 <outputs>
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
111 <data format="vcf" name="output" metadata_source="reference" />
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
112 </outputs>
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
113 <tests>
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
114 <test>
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
115 <param name="reference" ftype="fasta" value="mosaik_test_ref.fasta"/>
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
116 <param name="bamfile" ftype="bam" value="freebayes_in.bam"/>
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
117 <param name="source_select" value="pre_set"/>
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
118 <output name="output" file="freebayes_out.vcf" lines_diff="4"/>
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
119 </test>
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
120 </tests>
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
121 <help>
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
122 This tool uses Freebayes to call SNPS given a reference sequence and a BAM alignment file.
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
123 </help>
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
124 </tool>