Mercurial > repos > bgruening > deeptools
diff bamFingerprint.xml @ 30:5231f398d784 draft
planemo upload for repository https://github.com/fidelram/deepTools/tree/master/galaxy/wrapper/ commit 3bc1d1c6f4e28ac7ff8df79fe4e3f00a195938e6-dirty
author | bgruening |
---|---|
date | Tue, 20 Oct 2015 14:43:12 -0400 |
parents | 3a2aab18a217 |
children |
line wrap: on
line diff
--- a/bamFingerprint.xml Tue Sep 16 13:46:05 2014 -0400 +++ b/bamFingerprint.xml Tue Oct 20 14:43:12 2015 -0400 @@ -1,62 +1,61 @@ <tool id="deeptools_bamFingerprint" name="bamFingerprint" version="@WRAPPER_VERSION@.0"> <description>plots profiles of BAM files; useful for assesing ChIP signal strength</description> - <expand macro="requirements" /> - <expand macro="stdio" /> <macros> <token name="@BINARY@">bamFingerprint</token> <import>deepTools_macros.xml</import> </macros> + <expand macro="requirements" /> <command> +<![CDATA[ @multiple_input_bams@ - bamFingerprint + bamFingerprint + + @THREADS@ - @THREADS@ + --bamfiles #echo " ".join($files) + --labels #echo " ".join($labels) + + --fragmentLength $fragmentLength - --bamfiles #echo " ".join($files) - --labels #echo " ".join($labels) + --plotFile $outFileName - --fragmentLength $fragmentLength - - #set newoutFileName=str($outFileName)+".png" - --plotFile $newoutFileName + #if $output.showOutputSettings == "yes" + --plotFileFormat $output.outFileFormat + #if $output.saveRawCounts: + --outRawCounts '$outFileRawCounts' + #end if + #else + --plotFileFormat 'png' + #end if - #if $output.showOutputSettings == "yes" - --plotFileFormat $output.outFileFormat - #if $output.saveRawCounts: - --outRawCounts '$outFileRawCounts' - #end if - #else - --plotFileFormat 'png' - #end if + #if str($region).strip() != '': + --region '$region' + #end if - #if str($region).strip() != '': - --region '$region' - #end if + #if $advancedOpt.showAdvancedOpt == "yes": + --binSize '$advancedOpt.binSize' + --numberOfSamples '$advancedOpt.numberOfSamples' - #if $advancedOpt.showAdvancedOpt == "yes": - --binSize '$advancedOpt.binSize' - --numberOfSamples '$advancedOpt.numberOfSamples' + $advancedOpt.doNotExtendPairedEnds + $advancedOpt.ignoreDuplicates + $advancedOpt.skipZeros - $advancedOpt.doNotExtendPairedEnds - $advancedOpt.ignoreDuplicates - $advancedOpt.skipZeros + #if $advancedOpt.minMappingQuality: + --minMappingQuality '$advancedOpt.minMappingQuality' + #end if - #if $advancedOpt.minMappingQuality: - --minMappingQuality '$advancedOpt.minMappingQuality' - #end if - #end if - ; mv $newoutFileName $outFileName - ; rm $temp_dir -rf + #if $advancedOpt.plotTitle and str($advancedOpt.plotTitle.value) != "": + --plotTitle '$advancedOpt.plotTitle' + #end if + + #end if +]]> </command> <inputs> <expand macro="multiple_input_bams" /> - - - <param name="fragmentLength" type="integer" value="200" min="1" - label="Length of the average fragment size"/> - + <expand macro="fragmentLength" /> <expand macro="region_limit_operation" /> <conditional name="advancedOpt"> @@ -66,32 +65,19 @@ </param> <when value="no" /> <when value="yes"> - <param name="binSize" type="integer" value="10000" min="1" + <param name="binSize" type="integer" value="500" min="1" label="Bin size in bp" help="Length in base pairs for a window used to sample the genome."/> - <param name="numberOfSamples" type="integer" value="100000" min="1" label="Number of samples" - help="Number of samples taken from the genome to compute the scaling factors"/> - - <param name="doNotExtendPairedEnds" type="boolean" truevalue="--doNotExtendPairedEnds" falsevalue="" - label="Do not extend paired ends" - help="If set, reads are not extended to match the fragment length reported in the BAM file, instead they will be extended to match the fragment length. Default is to extend the reads if paired end information is available."/> - - <param name="ignoreDuplicates" type="boolean" truevalue="--ignoreDuplicates" falsevalue="" - label="Ignore duplicates" - help="If set, reads that have the same orientation and start position will be considered only once. If reads are paired, the mate position also has to coincide to ignore a read." /> - - <param name="minMappingQuality" type="integer" optional="true" value="1" min="1" - label="Minimum mapping quality" - help= "If set, only reads that have a mapping quality score higher than the given value are considered. *Note* Bowtie's Mapping quality is related to uniqueness: the higher the score, the more unique is a read. A mapping quality defined by Bowtie of 10 or less indicates that there is at least a 1 in 10 chance that the read truly originated elsewhere."/> - - <param name="skipZeros" type="boolean" truevalue="--skipZeros" falsevalue="" - label ="Include zeros" - help ="If set, then zero counts that happen for *all* BAM files given are ignored. This might have the effect that fewer regions are considered than indicated in the option where the number of samples is defined." /> + help="Number of samples taken from the genome to compute the scaling factors. (--numberOfSamples)"/> + <expand macro="doNotExtendPairedEnds" /> + <expand macro="ignoreDuplicates" /> + <expand macro="minMappingQuality" /> + <expand macro="skipZeros" /> + <expand macro="plotTitle" /> </when> </conditional> - <conditional name="output"> <param name="showOutputSettings" type="select" label="Show advanced output settings"> <option value="no" selected="true">no</option> @@ -100,10 +86,9 @@ <when value="no" /> <when value="yes"> <expand macro="input_image_file_format" /> - <param name="saveRawCounts" type="boolean" label="Save the bin counts"/> + <param name="saveRawCounts" type="boolean" label="Save the bin counts" help="(--outRawCounts)"/> </when> </conditional> - </inputs> <outputs> <expand macro="output_image_file_format" /> @@ -116,8 +101,22 @@ </filter> </data> </outputs> + <tests> + <test> + <repeat name="input_files"> + <param name="bamfile" value="bowtie2-test1.bam" ftype="bam" /> + </repeat> + <repeat name="input_files"> + <param name="bamfile" value="bowtie2-test1.bam" ftype="bam" /> + </repeat> + <param name="fragmentLength" value="200" /> + <param name="showAdvancedOpt" value="no" /> + <param name="showOutputSettings" value="no" /> + <output name="outFileName" file="bamFingerprint_result1.png" ftype="png" compare="sim_size" /> + </test> + </tests> <help> - +<![CDATA[ **What it does** This tool is useful to assess the strength of a ChIP (i.e. how clearly the enrichment signal can be separated from the background signal) @@ -146,7 +145,7 @@ ----- @REFERENCES@ - +]]> </help> <expand macro="citations" /> </tool>