Mercurial > repos > bgruening > deeptools_bam_pe_fragmentsize
diff bamPEFragmentSize.xml @ 17:68932756bf49 draft
planemo upload for repository https://github.com/deeptools/deepTools/tree/master/galaxy/wrapper/ commit b1f975422b307927bbbe245d57609e9464d5d5c8-dirty
| author | bgruening |
|---|---|
| date | Thu, 15 Feb 2018 05:20:11 -0500 |
| parents | 4885b33dba09 |
| children | f011488450e6 |
line wrap: on
line diff
--- a/bamPEFragmentSize.xml Mon Feb 05 11:39:35 2018 -0500 +++ b/bamPEFragmentSize.xml Thu Feb 15 05:20:11 2018 -0500 @@ -1,5 +1,5 @@ <tool id="deeptools_bam_pe_fragmentsize" name="bamPEFragmentSize" version="@WRAPPER_VERSION@.0"> - <description>Estimate the predominant cDNA fragment length from paired-end sequenced BAM files</description> + <description>Estimate the predominant cDNA fragment length from paired-end sequenced BAM/CRAM files</description> <macros> <token name="@BINARY@">bamPEFragmentSize</token> <import>deepTools_macros.xml</import> @@ -17,7 +17,8 @@ --samplesLabel #echo " ".join($labels) #end if #if $histogram: - --histogram ./hist.png + --histogram '$histogram_outfile' + --plotFileFormat '$outFileFormat' #end if --plotTitle "$plotTitle" #if $advancedOpt.showAdvancedOpt == 'yes' @@ -26,15 +27,22 @@ $advancedOpt.logScale --maxFragmentLength '$advancedOpt.maxFragmentLength' @blacklist@ + #if $advancedOpt.table + --table '$table' + #end if + #if $advancedOpt.outRawFragmentLengths + --outRawFragmentLengths '$fragLengths' + #end if #end if - > $outfile + > '$outfile' ]]> </command> <inputs> <expand macro="multiple_input_bams" MIN="1" /> <param argument="--histogram" type="boolean" truevalue="--histogram" falsevalue="" - label="Get the distribution of fragment lengths as a histogram" + label="Get the distribution of read/fragment lengths as a histogram" help=""/> + <expand macro="input_image_file_format" /> <param argument="--samplesLabel" type="text" size="30" label="Labels for the samples (each BAM file) plotted" help="The default is to use the file name of the sample. The sample labels should be separated by @@ -57,6 +65,12 @@ <param argument="--distanceBetweenBins" type="integer" value="1000000" min="0" optional="true" label="bin spacing, in bases" help="To reduce the computation time, not every possible genomic bin is sampled. This option allows you to set the distance between bins actually sampled from. Larger numbers are sufficient for high coverage samples, while smaller values are useful for lower coverage samples. Note that if you specify a value that results in too few (<1000) reads sampled, the value will be decreased. (--distanceBetweenBins)"/> + <param argument="--table" type="boolean" truevalue="--table" falsevalue="" + label="Write metrics to a tab-separated file?" + help="Write the read/fragment metrics to a tab-separated file, which is primarily useful for more automated downstream processing." /> + <param argument="--outRawFragmentLengths" type="boolean" truevalue="--outRawFragmentLengths" falsevalue="" + label="Write a file containing the read/fragment length information?" + help="Write the read/fragment length distribution underlying the (optional) plot to a file. This can then be processed in R or other downstream applications." /> <param argument="--logScale" type="boolean" truevalue="--logScale" falsevalue="" label="Plot log frequencies" help="Plot the frequencies on the log10 scale" /> @@ -70,9 +84,21 @@ </inputs> <outputs> - <data name="outfile" format="txt"/> - <data name="histogram_outfile" from_work_dir="hist.png" format="png"> + <data name="outfile" format="txt" label="${tool.name} on ${on_string}: Read/Fragment metrics"/> + <data name="histogram_outfile" format="png" label="${tool.name} on ${on_string}: Read/Fragment histogram"> <filter>histogram is True</filter> + <change_format> + <when input="outFileFormat" value="pdf" format="pdf" /> + <when input="outFileFormat" value="svg" format="svg" /> + <when input="outFileFormat" value="eps" format="eps" /> + <when input="outFileFormat" value="plotly" format="html" /> + </change_format> + </data> + <data name="table" format="tabular" label="${tool.name} on ${on_string}: Read/Fragment metrics in tabular format"> + <filter>table is True</filter> + </data> + <data name="fragLengths" format="tabular" label="${tool.name} on ${on_string}: Raw Read/Fragment lengths occurrences"> + <filter>outRawFragmentLengths is True</filter> </data> </outputs> <tests> @@ -83,6 +109,14 @@ <output name="outfile" file="bamPEFragmentSize_result1.txt" ftype="txt" /> <output name="histogram_outfile" file="bamPEFragmentSize_histogram_result1.png" ftype="png" compare="sim_size" /> </test> + <test> + <param name="bamfiles" value="bowtie2 test1.bam" ftype="bam" /> + <param name="showAdvancedOpt" value="yes" /> + <param name="table" value="True" /> + <param name="outRawFragmentLengths" value="yes" /> + <output name="table" file="bamPEFragmentSize_table1.txt" ftype="tabular" /> + <output name="fragLengths" file="bamPEFragmentSize_lengths1.txt" ftype="tabular" /> + </test> </tests> <help> <