Mercurial > repos > rnateam > piranha
diff piranha.xml @ 0:6cc0388e95f0 draft
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/piranha commit 166d11fb413387248aa45639601da8bb929d43fb-dirty
| author | rnateam |
|---|---|
| date | Wed, 15 Jul 2015 11:57:07 -0400 |
| parents | |
| children | b2dbc72b50d4 |
line wrap: on
line diff
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/piranha.xml Wed Jul 15 11:57:07 2015 -0400 @@ -0,0 +1,169 @@ +<tool id="piranha" name="Piranha" version="0.1.0"> + <description>peak-caller for CLIP- and RIP-Seq data</description> + <requirements> + <requirement type="package" version="1.2.1">piranha</requirement> + </requirements> + <stdio> + <exit_code range="1:" /> + </stdio> + <command><![CDATA[ + ln -s $input ./foo.$input.ext && + + Piranha + $sort + #if $p_threshold: + -p $p_threshold + #end if + $no_pval_correct + #if $background_thresh: + -a $background_thresh + #end if + #if $bin_size_reponse: + -b $bin_size_reponse + #end if + #if $bin_size_covars: + -i $bin_size_covars + #end if + #if $bin_size_both: + -z $bin_size_both + #end if + #if $merge_bins.merge=="yes": + -u $merge_bins.cluster_dist + #else: + -u $merge_bins.merge + #end if + $suppress_covars + $fit + #if $dist: + -d $dist + #end if + $fitMethod + #if $use_model.model_select=="yes": + -m $use_model.model + #end if + $unstranded + $no_normalisation + $log_covars + ./foo.$input.ext + #for $covariate in $covariates: + $covariate.covariate_file + #end for + + -o ./piranha.out + ]]></command> + <inputs> + <param name="input" type="data" format="bed,bam" label="Choose input BED or BAM file"/> + <repeat name="covariates" title="Choose covariate"> + <param name="covariate_file" type="data" format="bed" label="Choose covariate BED file"/> + </repeat> + <param name="sort" type="boolean" label="Is your input file already sorted?" checked="False" falsevalue="-s" truevalue=""/> + <param name="p_threshold" type="float" min="0" max="1" value="1" label="Significance threshold for sites"/> + <param name="no_pval_correct" type="boolean" checked="False" falsevalue="" truevalue="-c" + label="Disable p-values correction for multiple hypothesis testing?" help="We correct by default using B & H."/> + <param name="background_thresh" type="float" optional="true" + label="Indicates that this proportion of the lowest scores should be considered the background"/> + <param name="bin_size_reponse" type="integer" optional="true" + label="Indicates that input is raw reads and should be binned into bins of this size"/> + <param name="bin_size_covars" type="integer" optional="true" + label="Indicates that the covariates are raw reads and should be binned into bins of this size"/> + <param name="bin_size_both" type="integer" optional="true" label="Synonymous with -b x -i x for any x"/> + <conditional name="merge_bins"> + <param name="merge" type="select" label="Merge significant bins within certain distance?"> + <option value="yes">Yes</option> + <option value="0" selected="true">No</option> + </param> + <when value="yes"> + <param name="cluster_dist" type="integer" value="1" label="Merge significant bins within this distance" + help="Default is 1 (merge adjacent)"/> + </when> + </conditional> + <param name="suppress_covars" type="boolean" checked="False" truevalue="-r" falsevalue="" label="Don't print covariate values in output" /> + <param name="fit" type="boolean" checked="False" truevalue="-f" falsevalue="" label="Fit only" /> + <param name="dist" type="select" label="Select distribution type"> + <option value="">None</option> + <option value="Poisson">Poisson</option> + <option value="NegativeBinomial">NegativeBinomial</option> + <option value="ZeroTruncatedPoisson">ZeroTruncatedPoisson</option> + <option value="ZeroTruncatedNegativeBinomial">ZeroTruncatedNegativeBinomial</option> + <option value="PoissonRegression">PoissonRegression</option> + <option value="NegativeBinomialRegression">NegativeBinomialRegression</option> + <option value="ZeroTruncatedPoissonRegression">ZeroTruncatedPoissonRegression</option> + <option value="ZeroTruncatedNegativeBinomialRegression">ZeroTruncatedNegativeBinomialRegression</option> + </param> + <param name="fitMethod" type="boolean" checked="False" truevalue="-t" + falsevalue="" label="Component fitting method" help=""/> + <conditional name="use_model"> + <param name="model_select" type="select" label="Use the specified model file instead of fitting to input data?"> + <option value="yes">Yes</option> + <option value="no" selected="true">No</option> + </param> + <when value="yes"> + <param name="model" type="data" multiple="false" format="xml" label="Select the model file"/> + </when> + </conditional> + + <param name="unstranded" type="boolean" checked="False" truevalue="-x" + falsevalue="" label="Don't preserve strand (puts all the peaks in positive strand)"/> + <param name="no_normalisation" type="boolean" checked="yes" falsevalue="-n" + truevalue="" label="Normalise covariates?"/> + <param name="log_covars" type="boolean" checked="False" truevalue="-l" + falsevalue="" label="Convert covariates to log scale?"/> + </inputs> + <outputs> + <data format="tabular" name="output_bed" from_work_dir="piranha.out" + label="${tool.name} on ${on_string}: BED with p-values"> + <filter>fit is False</filter> + </data> + <data format="xml" name="output_xml" from_work_dir="piranha.out" + label="${tool.name} on ${on_string}: Model file"> + <filter>fit is True</filter> + </data> + </outputs> + <tests> + <test> + <param name="input" value="zntbr_unbinned_response.bed" ftype="bed"/> + <repeat name="covariates"> + <param name="covariate_file" value="ztnbr_binning_cov1.bed" ftype="bed"/> + </repeat> + <repeat name="covariates"> + <param name="covariate_file" value="ztnbr_binning_cov2.bed" ftype="bed"/> + </repeat> + <param name="fit" value="True"/> + <param name="bin_size_reponse" value="1"/> + <param name="background_thresh" value="1"/> + <output name="output_xml" file="ztnbrBinningTestModelOutput.expected.xml" ftype="xml"/> + </test> + <test> + <param name="input" value="testPrianha_zntb_unbinned.bam" ftype="bam"/> + <param name="fit" value="True"/> + <param name="bin_size_reponse" value="1"/> + <param name="background_thresh" value="1"/> + <output name="output_xml" file="ztnbBinningTestModelOutput.expected.xml" ftype="xml"/> + </test> + <test> + <param name="input" value="ztnbSimpleTest_response.bed" ftype="bed"/> + <param name="no_pval_correct" value="True"/> + <param name="p_threshold" value="1"/> + <param name="background_thresh" value="1"/> + <param name="-" value="ZeroTruncatedNegativeBinomial"/> + <output name="output_xml" file="ztnbSimpleTest_output.expected.bed" ftype="tabular"/> + </test> + </tests> + <help><![CDATA[ +**What it does** + +`Piranha <http://smithlabresearch.org/software/piranha/>`_ is a peak-caller for CLIP- and RIP-Seq data. It takes input in BED or BAM format and identifies regions of statistically significant read enrichment. Additional covariates may optionally be provided to further inform the peak-calling process. + + + ]]></help> + <citations> + <citation type="bibtex"> + @ARTICLE{bgruening_galaxytools, + Author = {Björn Grüning, Cameron Smith, Torsten Houwaart, Nicola Soranzo, Eric Rasche}, + keywords = {bioinformatics, ngs, galaxy, cheminformatics, rna}, + title = {{Galaxy Tools - A collection of bioinformatics and cheminformatics tools for the Galaxy environment}}, + url = {https://github.com/bgruening/galaxytools} + } + </citation> + </citations> +</tool>
