annotate freebayes.xml @ 3:72bdc513a54a

Fixed functional test and added required test files Fixed version number of tool to match supported freebayes version
author Lance Parsons <lparsons@princeton.edu>
date Thu, 22 Dec 2011 14:09:55 -0500
parents c70c9dc2efb7
children 0df882474701
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
0
afb722f09cc1 Version 0.8.9.a
lparsons
parents:
diff changeset
1 <?xml version="1.0"?>
afb722f09cc1 Version 0.8.9.a
lparsons
parents:
diff changeset
2 <tool id="freebayes_wrapper_princeton" name="Call SNPS with Freebayes (beta)" version="0.8.9.a">
afb722f09cc1 Version 0.8.9.a
lparsons
parents:
diff changeset
3 <requirements>
afb722f09cc1 Version 0.8.9.a
lparsons
parents:
diff changeset
4 <requirement type="binary">freebayes</requirement>
afb722f09cc1 Version 0.8.9.a
lparsons
parents:
diff changeset
5 <requirement type="binary">samtools</requirement>
afb722f09cc1 Version 0.8.9.a
lparsons
parents:
diff changeset
6 </requirements>
afb722f09cc1 Version 0.8.9.a
lparsons
parents:
diff changeset
7 <description>Bayesian genetic variant detector</description>
afb722f09cc1 Version 0.8.9.a
lparsons
parents:
diff changeset
8 <version_string>freebayes -h | grep [Vv]ersion</version_string>
afb722f09cc1 Version 0.8.9.a
lparsons
parents:
diff changeset
9 <command>
afb722f09cc1 Version 0.8.9.a
lparsons
parents:
diff changeset
10 if [ "`freebayes -h | grep [Vv]ersion | awk '{print \$2}'`" != "0.9.0" ]; then
afb722f09cc1 Version 0.8.9.a
lparsons
parents:
diff changeset
11 echo "Freebayes version installed is not compatible with this version of the Galaxy wrapper (requires '0.9.0')." >&amp;2;
afb722f09cc1 Version 0.8.9.a
lparsons
parents:
diff changeset
12 exit 2; fi;
afb722f09cc1 Version 0.8.9.a
lparsons
parents:
diff changeset
13
afb722f09cc1 Version 0.8.9.a
lparsons
parents:
diff changeset
14 #if $genomeSource.refGenomeSource == "history":
2
c70c9dc2efb7 Incorporated changes to suppress stderr messages from samtools calls (borrowed style from galaxy-central tool config)
Lance Parsons <lparsons@princeton.edu>
parents: 0
diff changeset
15 ln -s "$genomeSource.ownFile" localref.fa &amp;&amp;
0
afb722f09cc1 Version 0.8.9.a
lparsons
parents:
diff changeset
16 #else:
2
c70c9dc2efb7 Incorporated changes to suppress stderr messages from samtools calls (borrowed style from galaxy-central tool config)
Lance Parsons <lparsons@princeton.edu>
parents: 0
diff changeset
17 ln -s "${ filter( lambda x: str( x[0] ) == str( $genomeSource.index ), $__app__.tool_data_tables[ 'all_fasta' ].get_fields() )[0][-1] }" localref.fa &amp;&amp;
0
afb722f09cc1 Version 0.8.9.a
lparsons
parents:
diff changeset
18 #end if
2
c70c9dc2efb7 Incorporated changes to suppress stderr messages from samtools calls (borrowed style from galaxy-central tool config)
Lance Parsons <lparsons@princeton.edu>
parents: 0
diff changeset
19 samtools faidx localref.fa 2&gt;&amp;1 || echo "Error running samtools faidx for FreeBayes" &gt;&amp;2 &amp;&amp;
0
afb722f09cc1 Version 0.8.9.a
lparsons
parents:
diff changeset
20
afb722f09cc1 Version 0.8.9.a
lparsons
parents:
diff changeset
21 #if ($params.source_select == "full") and (str($params.baqAdjustment) == 'true')
2
c70c9dc2efb7 Incorporated changes to suppress stderr messages from samtools calls (borrowed style from galaxy-central tool config)
Lance Parsons <lparsons@princeton.edu>
parents: 0
diff changeset
22 samtools fillmd -Arb ${bamfile} localref.fa > localbam.bam 2&gt;&amp;1 || echo "Error running samtools fillmd for FreeBayes" &gt;&amp;2 &amp;&amp;
0
afb722f09cc1 Version 0.8.9.a
lparsons
parents:
diff changeset
23 #else
2
c70c9dc2efb7 Incorporated changes to suppress stderr messages from samtools calls (borrowed style from galaxy-central tool config)
Lance Parsons <lparsons@princeton.edu>
parents: 0
diff changeset
24 ln -s ${bamfile} localbam.bam &amp;&amp;
0
afb722f09cc1 Version 0.8.9.a
lparsons
parents:
diff changeset
25 #end if
2
c70c9dc2efb7 Incorporated changes to suppress stderr messages from samtools calls (borrowed style from galaxy-central tool config)
Lance Parsons <lparsons@princeton.edu>
parents: 0
diff changeset
26
c70c9dc2efb7 Incorporated changes to suppress stderr messages from samtools calls (borrowed style from galaxy-central tool config)
Lance Parsons <lparsons@princeton.edu>
parents: 0
diff changeset
27 samtools index localbam.bam 2&gt;&amp;1 || echo "Error running samtools index for FreeBayes" &gt;&amp;2 &amp;&amp;
0
afb722f09cc1 Version 0.8.9.a
lparsons
parents:
diff changeset
28
afb722f09cc1 Version 0.8.9.a
lparsons
parents:
diff changeset
29 #for $i, $b in enumerate($bamfiles)
afb722f09cc1 Version 0.8.9.a
lparsons
parents:
diff changeset
30 #if ($params.source_select == "full") and (str($params.baqAdjustment) == 'true')
2
c70c9dc2efb7 Incorporated changes to suppress stderr messages from samtools calls (borrowed style from galaxy-central tool config)
Lance Parsons <lparsons@princeton.edu>
parents: 0
diff changeset
31 samtools fillmd -Arb ${b.additional_bamfile} localref.fa > localbam_${i}.bam 2&gt;&amp;1 || echo "Error running samtools fillmd for FreeBayes" &gt;&amp;2 &amp;&amp;
0
afb722f09cc1 Version 0.8.9.a
lparsons
parents:
diff changeset
32 #else
2
c70c9dc2efb7 Incorporated changes to suppress stderr messages from samtools calls (borrowed style from galaxy-central tool config)
Lance Parsons <lparsons@princeton.edu>
parents: 0
diff changeset
33 ln -s ${b.additional_bamfile} localbam_${i}.bam &amp;&amp;
0
afb722f09cc1 Version 0.8.9.a
lparsons
parents:
diff changeset
34 #end if
2
c70c9dc2efb7 Incorporated changes to suppress stderr messages from samtools calls (borrowed style from galaxy-central tool config)
Lance Parsons <lparsons@princeton.edu>
parents: 0
diff changeset
35 samtools index localbam_${i}.bam 2&gt;&amp;1 || echo "Error running samtools index for FreeBayes" &gt;&amp;2 &amp;&amp;
0
afb722f09cc1 Version 0.8.9.a
lparsons
parents:
diff changeset
36 #end for
afb722f09cc1 Version 0.8.9.a
lparsons
parents:
diff changeset
37
afb722f09cc1 Version 0.8.9.a
lparsons
parents:
diff changeset
38 freebayes localbam*.bam --fasta-reference localref.fa --vcf $output
afb722f09cc1 Version 0.8.9.a
lparsons
parents:
diff changeset
39 #if $params.source_select == "full":
afb722f09cc1 Version 0.8.9.a
lparsons
parents:
diff changeset
40 -T $params.theta
afb722f09cc1 Version 0.8.9.a
lparsons
parents:
diff changeset
41 -p $params.ploidy
afb722f09cc1 Version 0.8.9.a
lparsons
parents:
diff changeset
42 $params.pooled
afb722f09cc1 Version 0.8.9.a
lparsons
parents:
diff changeset
43 --pvar $params.pvar
afb722f09cc1 Version 0.8.9.a
lparsons
parents:
diff changeset
44 $params.showRefRepeats
afb722f09cc1 Version 0.8.9.a
lparsons
parents:
diff changeset
45 $params.nosnps
afb722f09cc1 Version 0.8.9.a
lparsons
parents:
diff changeset
46 $params.noindels
afb722f09cc1 Version 0.8.9.a
lparsons
parents:
diff changeset
47 $params.nomnps
afb722f09cc1 Version 0.8.9.a
lparsons
parents:
diff changeset
48 $params.nocomplex
afb722f09cc1 Version 0.8.9.a
lparsons
parents:
diff changeset
49 -n $params.bestAlleles
afb722f09cc1 Version 0.8.9.a
lparsons
parents:
diff changeset
50 $params.leftAlignIndels
afb722f09cc1 Version 0.8.9.a
lparsons
parents:
diff changeset
51 $params.useRefAllele
afb722f09cc1 Version 0.8.9.a
lparsons
parents:
diff changeset
52 $params.diploidReference
afb722f09cc1 Version 0.8.9.a
lparsons
parents:
diff changeset
53 --reference-quality $params.refMapQuality,$params.refBaseQuality
afb722f09cc1 Version 0.8.9.a
lparsons
parents:
diff changeset
54 $params.duplicateReads
afb722f09cc1 Version 0.8.9.a
lparsons
parents:
diff changeset
55 -m $params.minMapQuality
afb722f09cc1 Version 0.8.9.a
lparsons
parents:
diff changeset
56 -q $params.minBaseQuality
afb722f09cc1 Version 0.8.9.a
lparsons
parents:
diff changeset
57 $params.noFilters
afb722f09cc1 Version 0.8.9.a
lparsons
parents:
diff changeset
58 -x $params.indelExclusionWindow
afb722f09cc1 Version 0.8.9.a
lparsons
parents:
diff changeset
59 -F $params.minAltFraction
afb722f09cc1 Version 0.8.9.a
lparsons
parents:
diff changeset
60 -C $params.minAltCount
afb722f09cc1 Version 0.8.9.a
lparsons
parents:
diff changeset
61 -G $params.minAltTotal
afb722f09cc1 Version 0.8.9.a
lparsons
parents:
diff changeset
62 --min-coverage $params.minCoverage
afb722f09cc1 Version 0.8.9.a
lparsons
parents:
diff changeset
63 -W $params.postIntegLimitN,$params.postIntegLimitM
afb722f09cc1 Version 0.8.9.a
lparsons
parents:
diff changeset
64 #else
afb722f09cc1 Version 0.8.9.a
lparsons
parents:
diff changeset
65 --left-align-indels
afb722f09cc1 Version 0.8.9.a
lparsons
parents:
diff changeset
66 #end if
afb722f09cc1 Version 0.8.9.a
lparsons
parents:
diff changeset
67 </command>
afb722f09cc1 Version 0.8.9.a
lparsons
parents:
diff changeset
68 <inputs>
afb722f09cc1 Version 0.8.9.a
lparsons
parents:
diff changeset
69 <!-- <param format="fasta" name="reference" type="data" metadata_name="dbkey" label="Reference File"/> -->
afb722f09cc1 Version 0.8.9.a
lparsons
parents:
diff changeset
70 <param format="bam" name="bamfile" type="data" label="Bam Alignment File"
afb722f09cc1 Version 0.8.9.a
lparsons
parents:
diff changeset
71 help="Additional BAM files will be considered to be from the same sample unless they have a different read group assigned. Read groups can be assigned during mapping with BWA (advanced options) or after mapping with Picard tools."/>
afb722f09cc1 Version 0.8.9.a
lparsons
parents:
diff changeset
72 <repeat name="bamfiles" title="Additional BAM Files">
afb722f09cc1 Version 0.8.9.a
lparsons
parents:
diff changeset
73 <param format="bam" name="additional_bamfile" type="data" label="Additional Bam Alignment File"/>
afb722f09cc1 Version 0.8.9.a
lparsons
parents:
diff changeset
74 </repeat>
afb722f09cc1 Version 0.8.9.a
lparsons
parents:
diff changeset
75
afb722f09cc1 Version 0.8.9.a
lparsons
parents:
diff changeset
76 <conditional name="genomeSource">
afb722f09cc1 Version 0.8.9.a
lparsons
parents:
diff changeset
77 <param name="refGenomeSource" type="select" label="Select Reference Genome">
afb722f09cc1 Version 0.8.9.a
lparsons
parents:
diff changeset
78 <option value="default" selected="true">Use the assigned data genome/build</option>
afb722f09cc1 Version 0.8.9.a
lparsons
parents:
diff changeset
79 <option value="indexed">Select a different built-in genome</option>
afb722f09cc1 Version 0.8.9.a
lparsons
parents:
diff changeset
80 <option value="history">Use a genome (fasta format) from my history</option>
afb722f09cc1 Version 0.8.9.a
lparsons
parents:
diff changeset
81 </param>
afb722f09cc1 Version 0.8.9.a
lparsons
parents:
diff changeset
82 <when value="default">
afb722f09cc1 Version 0.8.9.a
lparsons
parents:
diff changeset
83 <param name="index" type="select" label="Check the assigned reference genome" help="Galaxy thinks that the reads in you dataset were aligned against this reference. If this is not correct, use the 'Select a build-in reference genome' option of the 'Select Reference Genome' dropdown to select approprtiate Reference.">
afb722f09cc1 Version 0.8.9.a
lparsons
parents:
diff changeset
84 <options from_data_table="all_fasta">
afb722f09cc1 Version 0.8.9.a
lparsons
parents:
diff changeset
85 <filter type="data_meta" ref="bamfile" key="dbkey" column="dbkey" multiple="True" separator="," />
afb722f09cc1 Version 0.8.9.a
lparsons
parents:
diff changeset
86 <validator type="no_options" message="No reference build available for selected input" />
afb722f09cc1 Version 0.8.9.a
lparsons
parents:
diff changeset
87 </options>
afb722f09cc1 Version 0.8.9.a
lparsons
parents:
diff changeset
88 </param>
afb722f09cc1 Version 0.8.9.a
lparsons
parents:
diff changeset
89 </when>
afb722f09cc1 Version 0.8.9.a
lparsons
parents:
diff changeset
90 <when value="indexed">
afb722f09cc1 Version 0.8.9.a
lparsons
parents:
diff changeset
91 <param name="index" type="select" label="Select a built-in reference genome" help="This list contains genomes cached at this Galaxy instance. If your genome of interest is not present here request it by using 'Help' link at the top of Galaxy interface or use the 'Use a genome (fasta format) from my history' option of the 'Select Reference Genome' dropdown.">
afb722f09cc1 Version 0.8.9.a
lparsons
parents:
diff changeset
92 <options from_data_table="all_fasta">
afb722f09cc1 Version 0.8.9.a
lparsons
parents:
diff changeset
93 </options>
afb722f09cc1 Version 0.8.9.a
lparsons
parents:
diff changeset
94 </param>
afb722f09cc1 Version 0.8.9.a
lparsons
parents:
diff changeset
95 </when>
afb722f09cc1 Version 0.8.9.a
lparsons
parents:
diff changeset
96 <when value="history">
afb722f09cc1 Version 0.8.9.a
lparsons
parents:
diff changeset
97 <param name="ownFile" type="data" format="fasta" metadata_name="dbkey" label="Select a reference genome from history" help="This option works best for relatively small genomes. If you are working with large human-sized genomes, send request to Galaxy team for adding your reference to this Galaxy instance by using 'Help' link at the top of Galaxy interface."/>
afb722f09cc1 Version 0.8.9.a
lparsons
parents:
diff changeset
98 </when>
afb722f09cc1 Version 0.8.9.a
lparsons
parents:
diff changeset
99 </conditional>
afb722f09cc1 Version 0.8.9.a
lparsons
parents:
diff changeset
100
afb722f09cc1 Version 0.8.9.a
lparsons
parents:
diff changeset
101 <conditional name="params">
afb722f09cc1 Version 0.8.9.a
lparsons
parents:
diff changeset
102 <param name="source_select" type="select" label="Freebayes Settings to Use" help="Default settings uses freebayes dafults for options (except that left-align-indels is set). The defaults are generally not recommended, however. For best results use Full Parameter List and set options appropriate to your data.">
afb722f09cc1 Version 0.8.9.a
lparsons
parents:
diff changeset
103 <option value="pre_set">Default Settings</option>
afb722f09cc1 Version 0.8.9.a
lparsons
parents:
diff changeset
104 <option value="full">Full Parameter List</option>
afb722f09cc1 Version 0.8.9.a
lparsons
parents:
diff changeset
105 </param>
afb722f09cc1 Version 0.8.9.a
lparsons
parents:
diff changeset
106 <when value="pre_set"/>
afb722f09cc1 Version 0.8.9.a
lparsons
parents:
diff changeset
107 <when value="full">
afb722f09cc1 Version 0.8.9.a
lparsons
parents:
diff changeset
108
afb722f09cc1 Version 0.8.9.a
lparsons
parents:
diff changeset
109 <!-- Population Model -->
afb722f09cc1 Version 0.8.9.a
lparsons
parents:
diff changeset
110 <param name="theta" size="5" type="float" value="0.01" 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"/>
afb722f09cc1 Version 0.8.9.a
lparsons
parents:
diff changeset
111 <param name="ploidy" size="5" type="integer" value="2" label="Ploidy" help="Sets the default ploidy for the analysis"/>
afb722f09cc1 Version 0.8.9.a
lparsons
parents:
diff changeset
112 <param name="pooled" type="boolean" label="Pooled" help="Assume that samples result from pooled sequencing. When using this flag, set 'Ploidy' to the number of alleles in each sample" truevalue="-J" falsevalue="" />
afb722f09cc1 Version 0.8.9.a
lparsons
parents:
diff changeset
113
afb722f09cc1 Version 0.8.9.a
lparsons
parents:
diff changeset
114 <!-- Reporting -->
afb722f09cc1 Version 0.8.9.a
lparsons
parents:
diff changeset
115 <param name="pvar" type="float" value="0.0001" label="Probability of variant threshold" help="Report sites if the probability that there is a polymorphism at the site is greater than N." />
afb722f09cc1 Version 0.8.9.a
lparsons
parents:
diff changeset
116 <param name="showRefRepeats" type="boolean" label="Show Reference Repeats" help="Calculate and show information about reference repeats in the VCF output" truevalue="--show-reference-repeats" falsevalue="" />
afb722f09cc1 Version 0.8.9.a
lparsons
parents:
diff changeset
117
afb722f09cc1 Version 0.8.9.a
lparsons
parents:
diff changeset
118 <!-- Alelle Scope -->
afb722f09cc1 Version 0.8.9.a
lparsons
parents:
diff changeset
119 <param name="nosnps" type="boolean" label="Ignore SNP alleles" truevalue="--no-snps" falsevalue="" />
afb722f09cc1 Version 0.8.9.a
lparsons
parents:
diff changeset
120 <param name="noindels" type="boolean" label="Ignore insertion and deletion alleles" truevalue="--no-indels" falsevalue="" />
afb722f09cc1 Version 0.8.9.a
lparsons
parents:
diff changeset
121 <param name="nomnps" type="boolean" label="Ingnore multi-nuceotide polymorphisms, MNPs" truevalue="--no-mnps" falsevalue="" />
afb722f09cc1 Version 0.8.9.a
lparsons
parents:
diff changeset
122 <param name="nocomplex" type="boolean" label="Ignore complex events (composites of other classes)" truevalue="--no-complex" falsevalue="" />
afb722f09cc1 Version 0.8.9.a
lparsons
parents:
diff changeset
123 <param name="bestAlleles" size="5" type="integer" value="0" label="Use Best N Alleles" help="Evaluate only the best N alleles, ranked by sum of supporting quality scores. Set to 0 to use all." />
afb722f09cc1 Version 0.8.9.a
lparsons
parents:
diff changeset
124
afb722f09cc1 Version 0.8.9.a
lparsons
parents:
diff changeset
125 <!-- Indel realignment -->
afb722f09cc1 Version 0.8.9.a
lparsons
parents:
diff changeset
126 <param name="leftAlignIndels" type="boolean" label="Left align indels" help="Left-realign and merge gaps embedded in reads, recommended when calling indels" checked="true" truevalue="--left-align-indels" falsevalue="" />
afb722f09cc1 Version 0.8.9.a
lparsons
parents:
diff changeset
127 <param name="baqAdjustment" type="boolean" label="Base alignment quality (BAQ) adjustment" help="A quality smoothing filter which applies a hidden markov model of read genesis to each alignment independently. This is currently implemented by samtools fillmd." />
afb722f09cc1 Version 0.8.9.a
lparsons
parents:
diff changeset
128
afb722f09cc1 Version 0.8.9.a
lparsons
parents:
diff changeset
129 <!-- Reference Allele -->
afb722f09cc1 Version 0.8.9.a
lparsons
parents:
diff changeset
130 <param name="useRefAllele" type="boolean" label="Use Reference Allele" help="Include the reference allele in the analsis as if it is another sample from the same population" truevalue="--use-reference-allele" falsevalue=""/>
afb722f09cc1 Version 0.8.9.a
lparsons
parents:
diff changeset
131 <param name="diploidReference" type="select" label="Reference Ploidy" help="If using the reference sequence as a sample, it can be treated as haploid (default) or diploid.">
afb722f09cc1 Version 0.8.9.a
lparsons
parents:
diff changeset
132 <option value="">Haploid</option>
afb722f09cc1 Version 0.8.9.a
lparsons
parents:
diff changeset
133 <option value="--diploid-reference">Diploid</option>
afb722f09cc1 Version 0.8.9.a
lparsons
parents:
diff changeset
134 </param>
afb722f09cc1 Version 0.8.9.a
lparsons
parents:
diff changeset
135 <param name="refMapQuality" size="5" type="integer" value="100" label="Assign mapping quality of Q to the reference allele at each site"/>
afb722f09cc1 Version 0.8.9.a
lparsons
parents:
diff changeset
136 <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"/>
afb722f09cc1 Version 0.8.9.a
lparsons
parents:
diff changeset
137
afb722f09cc1 Version 0.8.9.a
lparsons
parents:
diff changeset
138 <!-- Input Filters -->
afb722f09cc1 Version 0.8.9.a
lparsons
parents:
diff changeset
139 <param name="duplicateReads" type="boolean" label="Use duplicate reads" help="Include duplicate-marked alignments in the analysis" truevalue="--use-duplicate-reads" falsevalue="" />
afb722f09cc1 Version 0.8.9.a
lparsons
parents:
diff changeset
140 <param name="minMapQuality" size="5" type="integer" value="30" label="Minimum Mapping Quality" help="Exclude alignments from analysis if they have a mapping quality less than Q"/>
afb722f09cc1 Version 0.8.9.a
lparsons
parents:
diff changeset
141 <param name="minBaseQuality" size="5" type="integer" value="20" label="Minimum Base Quality" help="Exclude alleles from analysis if their supporting base quality is less than Q"/>
afb722f09cc1 Version 0.8.9.a
lparsons
parents:
diff changeset
142 <param name="noFilters" type="boolean" label="No Filters" help="Do not use any input base and mapping quality filters. Equivalent to setting Minimum Mapping Quality, Minimum Base Quality, and Minimum Supporting Quality to 0" truevalue="--no-filters" falsevalue="" />
afb722f09cc1 Version 0.8.9.a
lparsons
parents:
diff changeset
143 <param name="indelExclusionWindow" size="5" type="integer" value="-1" label="Indel Exclusion Window" help="Ignore portions of alignments N bases from a putative insertion or deletion allele"/>
afb722f09cc1 Version 0.8.9.a
lparsons
parents:
diff changeset
144 <param name="minAltFraction" size="5" type="float" min="0" max="1" 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"/>
afb722f09cc1 Version 0.8.9.a
lparsons
parents:
diff changeset
145 <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"/>
afb722f09cc1 Version 0.8.9.a
lparsons
parents:
diff changeset
146 <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"/>
afb722f09cc1 Version 0.8.9.a
lparsons
parents:
diff changeset
147 <param name="minCoverage" size="5" type="integer" value="0" label="Minimum Coverage" help="Require at least this coverage to process a site"/>
afb722f09cc1 Version 0.8.9.a
lparsons
parents:
diff changeset
148
afb722f09cc1 Version 0.8.9.a
lparsons
parents:
diff changeset
149 <!-- Algorithmic Features -->
afb722f09cc1 Version 0.8.9.a
lparsons
parents:
diff changeset
150 <!-- <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"/> -->
afb722f09cc1 Version 0.8.9.a
lparsons
parents:
diff changeset
151 <!-- <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"/> -->
afb722f09cc1 Version 0.8.9.a
lparsons
parents:
diff changeset
152 <param name="postIntegLimitN" size="5" type="integer" value="1" label="Posterior Integration Limit N" help="See Limit M below."/>
afb722f09cc1 Version 0.8.9.a
lparsons
parents:
diff changeset
153 <param name="postIntegLimitM" size="5" type="integer" value="3" label="Posterior Integration Limit M" help="Integrate all genotype combinations in our posterior space which include no more than N samples with their Mth best data likelihood."/>
afb722f09cc1 Version 0.8.9.a
lparsons
parents:
diff changeset
154 <!-- <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"/>
afb722f09cc1 Version 0.8.9.a
lparsons
parents:
diff changeset
155 <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"/> -->
afb722f09cc1 Version 0.8.9.a
lparsons
parents:
diff changeset
156 </when>
afb722f09cc1 Version 0.8.9.a
lparsons
parents:
diff changeset
157 </conditional>
afb722f09cc1 Version 0.8.9.a
lparsons
parents:
diff changeset
158 </inputs>
afb722f09cc1 Version 0.8.9.a
lparsons
parents:
diff changeset
159 <outputs>
afb722f09cc1 Version 0.8.9.a
lparsons
parents:
diff changeset
160 <data format="vcf" name="output" metadata_source="bamfile" />
afb722f09cc1 Version 0.8.9.a
lparsons
parents:
diff changeset
161 </outputs>
afb722f09cc1 Version 0.8.9.a
lparsons
parents:
diff changeset
162 <tests>
afb722f09cc1 Version 0.8.9.a
lparsons
parents:
diff changeset
163 <test>
3
72bdc513a54a Fixed functional test and added required test files
Lance Parsons <lparsons@princeton.edu>
parents: 2
diff changeset
164 <param name="refGenomeSource" value="history"/>
72bdc513a54a Fixed functional test and added required test files
Lance Parsons <lparsons@princeton.edu>
parents: 2
diff changeset
165 <param name="ownFile" ftype="fasta" value="mosaik_test_ref.fasta"/>
0
afb722f09cc1 Version 0.8.9.a
lparsons
parents:
diff changeset
166 <param name="bamfile" ftype="bam" value="freebayes_in.bam"/>
afb722f09cc1 Version 0.8.9.a
lparsons
parents:
diff changeset
167 <param name="source_select" value="pre_set"/>
3
72bdc513a54a Fixed functional test and added required test files
Lance Parsons <lparsons@princeton.edu>
parents: 2
diff changeset
168 <output name="output" file="freebayes_princeton_out.vcf" lines_diff="4"/>
0
afb722f09cc1 Version 0.8.9.a
lparsons
parents:
diff changeset
169 </test>
afb722f09cc1 Version 0.8.9.a
lparsons
parents:
diff changeset
170 </tests>
afb722f09cc1 Version 0.8.9.a
lparsons
parents:
diff changeset
171 <help>
afb722f09cc1 Version 0.8.9.a
lparsons
parents:
diff changeset
172 This tool uses `Freebayes`__ to call SNPS given a reference sequence and a BAM alignment file.
afb722f09cc1 Version 0.8.9.a
lparsons
parents:
diff changeset
173
afb722f09cc1 Version 0.8.9.a
lparsons
parents:
diff changeset
174 Base alignment quality (BAQ) adjustment is a quality smoothing filter which applies a hidden
afb722f09cc1 Version 0.8.9.a
lparsons
parents:
diff changeset
175 markov model of read genesis to each alignment independently. This is currently implemented
afb722f09cc1 Version 0.8.9.a
lparsons
parents:
diff changeset
176 by samtools fillmd. (See Biological Sequence Analysis Probabilistic Models of Proteins and
afb722f09cc1 Version 0.8.9.a
lparsons
parents:
diff changeset
177 Nucleic Acids by Durbin et. al. for more details.)
afb722f09cc1 Version 0.8.9.a
lparsons
parents:
diff changeset
178
afb722f09cc1 Version 0.8.9.a
lparsons
parents:
diff changeset
179 Requires a coordinate-sorted BAM file. Galaxy currently coordinate-sorts all BAM files.
afb722f09cc1 Version 0.8.9.a
lparsons
parents:
diff changeset
180
afb722f09cc1 Version 0.8.9.a
lparsons
parents:
diff changeset
181 .. __: http://bioinformatics.bc.edu/marthlab/FreeBayes
afb722f09cc1 Version 0.8.9.a
lparsons
parents:
diff changeset
182 </help>
afb722f09cc1 Version 0.8.9.a
lparsons
parents:
diff changeset
183 </tool>