Mercurial > repos > crs4 > exomedepth
diff exomedepth.xml @ 7:45af4a9748cf draft
"planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/exomedepth commit 91a0182476a7fc26be7bef1677790518c4e88348"
author | iuc |
---|---|
date | Fri, 08 Nov 2019 13:25:44 -0500 |
parents | 165732ee5a48 |
children | 5d60331757d3 |
line wrap: on
line diff
--- a/exomedepth.xml Mon Jun 11 09:34:25 2018 -0400 +++ b/exomedepth.xml Fri Nov 08 13:25:44 2019 -0500 @@ -1,31 +1,17 @@ -<tool id="exomedepth" name="ExomeDepth" version="1.0.0"> - <description>cnv caller</description> - <requirements> - <requirement type="package" version="1.1.10">r-exomedepth</requirement> - </requirements> - <command> - R CMD BATCH --no-save --no-restore '--args mypars="$args_file"' $__tool_directory__/exomedepth.R - </command> - <inputs> - <param format="bed" name="targetFile" type="data" label="Target regions (BED)"> - <validator type="unspecified_build" /> - </param> - <param name="test_vs_ref" type="boolean" truevalue="TRUE" falsevalue="FALSE" checked="false" label="Call CNVs using 1st sample as test" help="If checked, the tool will call CNVs in the first sample vs all the others. If unchecked, an all vs all CNV call will be performed" /> - <repeat name="inputs" title="BAM" min="2" help="Need to add more files? Use controls below."> - <param format="bam" name="input" type="data" label="BAM file"> - <options> - <filter type="data_meta" ref="targetFile" key="dbkey"/> - </options> - </param> - <param name="label" type="text" size="30" value="" label="Label" help="Label to use in the output. If not given, the dataset name will be used instead"> - <validator type="regex" message="Spaces are not allowed">^\S*$</validator> - </param> - </repeat> - <param name="transition_probability" size="10" type="float" value="0.0001" label="Transition probability" help="Transition probability of the hidden Markov Chain from the normal copy number state to either a deletion or a duplication. The default value (0.0001) expects approximately 20 CNVs genome-wide" /> - </inputs> - - <configfiles> - <configfile name="args_file">target=$targetFile +<tool id="exomedepth" name="ExomeDepth" version="1.1.0"> + <description>Calls copy number variants (CNVs) from targeted sequence data</description> + <requirements> + <requirement type="package" version="1.1.10">r-exomedepth</requirement> + </requirements> + <version_command><![CDATA[ +echo $(R --version | grep version | grep -v GNU)", ExomeDepth version" $(R --vanilla --slave -e "library(ExomeDepth); cat(sessionInfo()\$otherPkgs\$ExomeDepth\$Version)") + ]]></version_command> + <command detect_errors="exit_code"><![CDATA[ + Rscript '${__tool_directory__}/exomedepth.R' '$args_file' + ]]></command> + <configfiles> + <configfile name="args_file"><![CDATA[ +target=$targetFile test_vs_ref=$test_vs_ref #for $i in $inputs bam=${i.input} @@ -38,13 +24,51 @@ #end for trans_prob=$transition_probability output=$output -</configfile> - </configfiles> - <outputs> - <data format="tabular" name="output" label="${tool.name} on ${on_string}" /> - </outputs> - <help> - + ]]></configfile> + </configfiles> + <inputs> + <param name="targetFile" type="data" format="bed" label="Target regions (BED)"> + <validator type="unspecified_build" /> + </param> + <param name="test_vs_ref" type="boolean" truevalue="TRUE" falsevalue="FALSE" checked="false" label="Call CNVs using 1st sample as test" help="If checked, the tool will call CNVs in the first sample vs all the others. If unchecked, an all vs all CNV call will be performed" /> + <repeat name="inputs" title="BAM" min="2" help="Need to add more files? Use controls below."> + <param name="input" type="data" format="bam" label="BAM file"> + <options> + <filter type="data_meta" ref="targetFile" key="dbkey"/> + </options> + </param> + <param name="label" type="text" size="30" value="" label="Label" help="Label to use in the output. If not given, the dataset name will be used instead"> + <validator type="regex" message="Spaces are not allowed">^\S*$</validator> + </param> + </repeat> + <param name="transition_probability" size="10" type="float" value="0.0001" label="Transition probability" help="Transition probability of the hidden Markov Chain from the normal copy number state to either a deletion or a duplication. The default value (0.0001) expects approximately 20 CNVs genome-wide" /> + </inputs> + <outputs> + <data name="output" format="tabular" label="${tool.name} on ${on_string}" /> + </outputs> + <tests> + <test> + <param name="targetFile" value="CNV_TruSeq_Chr2.bed" dbkey="hg19" ftype="bed"/> + <param name="test_vs_ref" value="True"/> + <repeat name="inputs"> + <param name="input" value="CNV_case_small.bam"/> + </repeat> + <repeat name="inputs"> + <param name="input" value="CNV_control_small.bam"/> + </repeat> + <param name="transition_probability" value="0.5"/> + <output name="output"> + <assert_contents> + <has_text text="chr2" /> + <has_text text="97890544" /> + <has_text text="97890616" /> + <has_text text="deletion" /> + <has_text text="CNV_case_small" /> + </assert_contents> + </output> + </test> + </tests> + <help><![CDATA[ .. class:: warningmark **Warning about counts for chromosome X** @@ -92,30 +116,9 @@ (at least 20 genes, say, but probably more would be useful). Also note that PCR based enrichment studies are often not well suited for this type of read depth analysis. The reason is that as the number of cycles is often set to a high number in order to equalize the representation of each amplicon, which can discard the CNV information. - -**License and citation** - -This Galaxy tool is Copyright © 2014 `CRS4 Srl.`_ and is released under the `MIT license`_. - -.. _CRS4 Srl.: http://www.crs4.it/ -.. _MIT license: http://opensource.org/licenses/MIT - -You can use this tool only if you agree to the license terms of: `ExomeDepth`_. - -.. _ExomeDepth: http://cran.r-project.org/web/packages/ExomeDepth/ - -If you use this tool, please cite: - -- |Cuccuru2014|_ -- |Plagnol2012|_. - -.. |Cuccuru2014| replace:: Cuccuru, G., Orsini, M., Pinna, A., Sbardellati, A., Soranzo, N., Travaglione, A., Uva, P., Zanetti, G., Fotia, G. (2014) Orione, a web-based framework for NGS analysis in microbiology. *Bioinformatics* 30(13), 1928-1929 -.. _Cuccuru2014: http://bioinformatics.oxfordjournals.org/content/30/13/1928 -.. |Plagnol2012| replace:: Plagnol, V., *et al.* (2012) A robust model for read count data in exome sequencing experiments and implications for copy number variant calling. *Bioinformatics* 28(21), 2747-2754 -.. _Plagnol2012: http://bioinformatics.oxfordjournals.org/content/28/21/2747 - </help> + ]]></help> <citations> - <citation type="doi">10.1093/bioinformatics/btu135</citation> - <citation type="doi">10.1093/bioinformatics/bts526</citation> - </citations> + <citation type="doi">10.1093/bioinformatics/btu135</citation> + <citation type="doi">10.1093/bioinformatics/bts526</citation> + </citations> </tool>