comparison dropletBarcodePlot.xml @ 0:04f32429dcf2 draft

planemo upload for repository https://github.com/ebi-gene-expression-group/container-galaxy-sc-tertiary/tree/develop/tools/droplet-rank-plot/.shed.yml commit a785b79f2b5689aba87c0f7072897bb23f6bda76
author ebi-gxa
date Fri, 08 Nov 2019 09:08:14 -0500
parents
children 0e985680e67d
comparison
equal deleted inserted replaced
-1:000000000000 0:04f32429dcf2
1 <tool id="_dropletBarcodePlot" name="Droplet barcode rank plot" version="1.6.1+galaxy0">
2 <description>Creates a barcode rank plot for quality control of droplet single-cell RNA-seq data</description>
3 <requirements>
4 <requirement type="package" version="1.6.1">bioconductor-dropletutils</requirement>
5 <requirement type="package">openblas</requirement>
6 <requirement type="package">r-matrix</requirement>
7 <requirement type="package">r-ggplot2</requirement>
8 <requirement type="package">r-optparse</requirement>
9 <requirement type="package">r-gridextra</requirement>
10 <requirement type="package">bioconductor-delayedarray</requirement>
11 </requirements>
12 <command detect_errors="exit_code"><![CDATA[
13 $__tool_directory__/dropletBarcodePlot.R --output-plot "${plot_file}" --output-thresholds "${thresholds_file}" --label "${label}" --density-bins "${density_bins}" --roryk-multiplier "${roryk_multiplier}"
14 #if $input.type == 'mtx_matrix'
15 --mtx-matrix ${input.mtx_matrix}
16 #if $input.cellsbyrow
17 --cells-by-row
18 #end if
19 #end if
20 #if $input.type == 'barcode_freqs'
21 --barcode-frequencies ${input.barcode_frequencies}
22 #end if
23 ]]></command>
24
25 <inputs>
26 <conditional name="input">
27 <param name="type" type="boolean" truevalue='mtx_matrix' falsevalue='barcode_freqs' checked="true" label="Input MTX-format matrix?" help="Barcode frequencies will be calculated for you. The alternative is to provide barcode frequencies directly"/>
28 <when value="mtx_matrix">
29 <param name="mtx_matrix" type="data" format="mtx" label="Matrix-market format matrix file, with cells by column (overrides --barcode-frequencies if supplied)" />
30 <param name="cellsbyrow" type="boolean" checked="false" label="For use with --mtx-matrix: force interpretation of matrix to assume cells are by row, rather than by column (default)"/>
31 </when>
32 <when value="barcode_freqs">
33 <param name="barcode_frequencies" type="data" format="txt" label="A two-column tab-delimited file, with barcodes in the first column and frequencies in the second" />
34 </when>
35 </conditional>
36 <param name="label" type="text" optional='true' value="" label="Label to place in plot title"/>
37 <param name="density_bins" type="integer" value="50" label="Number of bins used in barcode count frequency distribution"/>
38 <param name="roryk_multiplier" type="float" value="1.5" label="Above-baseline multiplier to calculate roryk threshold"/>
39 </inputs>
40
41 <outputs>
42 <data name="plot_file" format="png" label="${tool.name} on ${on_string}: barcode rank plot"/>
43 <data name="thresholds_file" format="txt" label="${tool.name} on ${on_string}: barcode thresholds"/>
44 </outputs>
45
46 <tests>
47 <test>
48 <conditional name='input'>
49 <param name="type" value="barcode_freqs"/>
50 <param name="barcode_frequencies" ftype="txt" value="raw_cb_frequency.txt"/>
51 </conditional>
52 <output name="plot_file" file="barcode_plot.png"/>
53 </test>
54 </tests>
55
56 <help><![CDATA[
57 .. class:: infomark
58
59 **What it does**
60
61 Given a barcode freqeuncy table or an MTX-format matrix from which one can be calculated, produces a barcode rank plot to assess distinctness of droplets with cells over those without (a key mark of good-quality droplet single-cell RNA-seq data).
62
63 Thresholds are calculated and plotted, either with DropletUtils or by custom method discussed at https://github.com/COMBINE-lab/salmon/issues/362#issuecomment-490160480.
64
65 **Inputs**
66
67 * two-column tab-delimted text file with barcode frequencies OR an MTX-format matrix file
68
69 -----
70
71 **Outputs**
72
73 * PNG-format plot file.
74 ]]></help>
75 <citations>
76 <citation type="bibtex">
77 @misc{github-hinxton-single-cell,
78 author = {Jonathan Manning, EBI Gene Expression Team},
79 year = {2019},
80 title = {Hinxton Single Cell Anlysis Environment},
81 publisher = {GitHub},
82 journal = {GitHub repository},
83 url = {https://github.com/ebi-gene-expression-group/container-galaxy-sc-tertiary},
84 }</citation>
85 </citations>
86 </tool>