Mercurial > repos > iuc > raceid_diffgene
comparison raceid_diffgenes.xml @ 0:d6a18fea319f draft default tip
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/raceid commit 39918bfdb08f06862ca395ce58a6f5e4f6dd1a5e
| author | iuc |
|---|---|
| date | Sat, 03 Mar 2018 17:33:01 -0500 |
| parents | |
| children |
comparison
equal
deleted
inserted
replaced
| -1:000000000000 | 0:d6a18fea319f |
|---|---|
| 1 <tool id="raceid_diffgene" name="RaceID differential gene expression analysis" version="@VERSION@.0"> | |
| 2 <description>Identify differentially regulated genes</description> | |
| 3 <macros> | |
| 4 <import>macros.xml</import> | |
| 5 </macros> | |
| 6 <expand macro="requirements" /> | |
| 7 <command detect_errors="exit_code"><![CDATA[ | |
| 8 Rscript '@SCRIPT_DIR@/raceID_diffgenes.R' '@SCRIPT_DIR@' '$rconf_source' | |
| 9 | |
| 10 #if $compare_clusters_select.do_compare_clusters.value == "T": | |
| 11 && | |
| 12 mkdir '${out_html.files_path}' && | |
| 13 mv plot_*.svg '${out_html.files_path}' && | |
| 14 | |
| 15 echo '<html><head></head> | |
| 16 <body> | |
| 17 <h1>RaceID Differential Gene Analysis</h1> | |
| 18 <br /><h3>Expression of ${compare_clusters_select.gene} between ${compare_clusters_select.cl1} and ${compare_clusters_select.cl2}</h3> | |
| 19 <img src="plot_diffgenes.svg" ><br /> | |
| 20 </body> | |
| 21 </html>' > '$out_html' | |
| 22 #end if | |
| 23 | |
| 24 ]]></command> | |
| 25 | |
| 26 <configfiles> | |
| 27 <configfile name="rconf_source" > | |
| 28 sc = readRDS( '$inp_rdat' ) | |
| 29 | |
| 30 c_pval = as.numeric( '$pval' ) | |
| 31 generate_extable = as.logical( '$gen_gexpr_table.value' ) | |
| 32 outtable_dir = 'tables' | |
| 33 compare_clusters = as.logical( '$compare_clusters_select.do_compare_clusters.value' ) | |
| 34 | |
| 35 #if $compare_clusters_select.do_compare_clusters.value == "T": | |
| 36 gene_name = '$compare_clusters_select.gene' | |
| 37 clust1 = '$compare_clusters_select.cl1' | |
| 38 clust2 = '$compare_clusters_select.cl2' | |
| 39 mcount = as.integer( '$compare_clusters_select.mincount' ) | |
| 40 #end if | |
| 41 </configfile> | |
| 42 </configfiles> | |
| 43 | |
| 44 <inputs> | |
| 45 <param name="inp_rdat" type="data" format="rdata" label="Count matrix with clusters" help="This file is the output of the RaceID pipeline." /> | |
| 46 <param name="pval" type="float" value="0.01" min="1e-10" max="0.5" label="Retain genes with p-value smaller than threshold" help="The p-value for observing the difference in mean expression between the cluster and all cells based on binomial counting statistics." /> | |
| 47 <param name="gen_gexpr_table" type="boolean" checked="true" truevalue="T" falsevalue="F" label="Generate table of all differentially expressed genes?" /> | |
| 48 <conditional name="compare_clusters_select"> | |
| 49 <param name="do_compare_clusters" type="select" label="Compare the expression of a specific gene between two sets of clusters?" > | |
| 50 <option value="T" >Yes</option> | |
| 51 <option value="F" selected="true" >No</option> | |
| 52 </param> | |
| 53 <when value="F" /> | |
| 54 <when value="T" > | |
| 55 <param name="gene" type="text" label="Gene name of interest" > | |
| 56 <sanitizer invalid_char="" > | |
| 57 <valid initial="string.letters,string.digits"> | |
| 58 <add value="_"/><add value="+" /><add value="-" /> | |
| 59 </valid> | |
| 60 </sanitizer> | |
| 61 </param> | |
| 62 <param name="cl1" type="text" value="1" label="Cluster set 1" help="e.g. if you wish to compare cluster 2 to clusters 1 and 3, then type '2' here and '1,3' in the next input." > | |
| 63 <sanitizer invalid_char="" > | |
| 64 <valid initial="string.digits"><add value="," /></valid> | |
| 65 </sanitizer> | |
| 66 </param> | |
| 67 <param name="cl2" type="text" value="2" label="Cluster set 2" help="You can also compare sets of clusters to one another: e.g. 1,4,5 against 2,3." > | |
| 68 <sanitizer invalid_char="" > | |
| 69 <valid initial="string.digits"><add value="," /></valid> | |
| 70 </sanitizer> | |
| 71 </param> | |
| 72 <param name="mincount" type="integer" value="5" min="1" label="Only count genes with more than this number of transcripts in at least one cell within Cluster set 1 or Cluster set 2" /> | |
| 73 </when> | |
| 74 </conditional> | |
| 75 </inputs> | |
| 76 | |
| 77 <outputs> | |
| 78 <data name="out_html" format="html" label="${tool.name} on ${on_string}: Web Report" /> | |
| 79 <data format="tsv" name="out_tables" label="${tool.name} on ${on_string}: DiffExpr Tables" > | |
| 80 <discover_datasets pattern="__designation_and_ext__" directory="tables" visible="true" /> | |
| 81 </data> | |
| 82 </outputs> | |
| 83 | |
| 84 <tests> | |
| 85 <test> | |
| 86 <param name="inp_rdat" value="in_diffgene.rdat" /> | |
| 87 <output name="out_html" value="out_diffgene1.html" /> | |
| 88 <!-- verify just two of the outputs --> | |
| 89 <output name="out_tables" > | |
| 90 <!-- Problems here... help appreciated --> | |
| 91 <discovered_dataset designation="gdiff_cl.1" ftype="tsv" file="gdiff_cl.1.tsv" /> | |
| 92 <discovered_dataset designation="gdiff_cl.2" ftype="tsv" file="gdiff_cl.2.tsv" /> | |
| 93 </output> | |
| 94 </test> | |
| 95 <test> | |
| 96 <!-- Diff Cluster plot only --> | |
| 97 <param name="inp_rdat" value="in_diffgene.rdat" /> | |
| 98 <param name="pval" value="0.05" /> | |
| 99 <param name="gen_gexpr_table" value="F" /> | |
| 100 <param name="do_compare_clusters" value="T" /> | |
| 101 <param name="gene" value="1110038F14Rik__chr15" /> | |
| 102 <param name="cl1" value="1" /> | |
| 103 <param name="cl2" value="2,3" /> | |
| 104 <param name="mincount" value="2" /> | |
| 105 <output name="out_html" value="out_diffgene2.html" /> | |
| 106 </test> | |
| 107 </tests> | |
| 108 <help><![CDATA[ | |
| 109 ***************** | |
| 110 RaceID Diff Genes | |
| 111 ***************** | |
| 112 | |
| 113 Generates a table of all differentially expressed genes, and a plot representing the expression of a specific gene of interest between different clusters. | |
| 114 | |
| 115 The RaceID pipeline must be run prior to using this tool, as the input of this tool is generated from the output of the pipeline. | |
| 116 | |
| 117 | |
| 118 ]]></help> | |
| 119 <expand macro="citations" /> | |
| 120 </tool> |
