comparison ct_downsample_cells.xml @ 0:51816af2f7ac draft default tip

"planemo upload for repository https://github.com/ebi-gene-expression-group/container-galaxy-sc-tertiary/ commit a1ad1ddd9b8e4db5bb82c3accae8311e0e488b19"
author ebi-gxa
date Fri, 27 Nov 2020 13:37:59 +0000
parents
children
comparison
equal deleted inserted replaced
-1:000000000000 0:51816af2f7ac
1 <tool id="ct_downsample_cells" name="Cell types - Downsample Cells" version="@TOOL_VERSION@+galaxy0" profile="@PROFILE@">
2 <description>to avoid memory issues</description>
3 <macros>
4 <import>ct_macros.xml</import>
5 </macros>
6 <expand macro="requirements" />
7 <command detect_errors="exit_code"><![CDATA[
8 ln -s "${matrix}" matrix.mtx &&
9 ln -s "${genes}" genes.tsv &&
10 ln -s "${barcodes}" barcodes.tsv &&
11 downsample_cells.R --expression-data . --metadata "${metadata}" --cell-id-field "${cell_id_field}" --cell-type-field "${cell_type_field}" --array-size-limit "${array_size_limit}" --output-dir "${output_dir}" --metadata-upd "${metadata_upd}"
12
13 #if $exclusions
14 --exclusions "${exclusions}"
15 #end if
16
17 ]]></command>
18 <inputs>
19 <param name="matrix" type="data" format="txt" label="Expression matrix in sparse matrix format (.mtx)"/>
20 <param name="genes" type="data" format="tsv,tabular" label="Gene table"/>
21 <param name="barcodes" type="data" format="tsv,tabular" label="Barcode/cell table"/>
22 <param type="data" name="metadata" format="txt" label="Metadata Table" help="Metadata file mapping cells to cell types" />
23 <param type="text" name="cell_id_field" label="Cell ID Field" optional="true" value="id" help="Cell ID field">
24 <expand macro="sanitize_strings" />
25 </param>
26 <param type="text" name="cell_type_field" label="Cell Type Field" optional="true" value="inferred cell type" help="Name of cell type column in metada file">
27 <expand macro="sanitize_strings" />
28 </param>
29 <param type="data" name="exclusions" label="Exclusions file" format="yml" optional="true" help="YAML file with trivial terms and unlabelled cells" />
30 <param type="integer" name="array_size_limit" value='2000000000' label="Array Size Limit" help="Maximum matrix size (product of genes and cells), which will determine given the number of genes in the datasets how many cells to down-sample to. Warning: do not exceed the default value." />
31 <param type="text" name="output_dir" value="10x_data_sampled" label="Sampled Data" help="Name of the directory for sampled data" />
32 </inputs>
33 <outputs>
34 <data name="matrix_upd" from_work_dir="${output_dir}/matrix.mtx" />
35 <data name="barcodes_upd" from_work_dir="${output_dir}/barcodes.tsv" />
36 <data name="genes_upd" from_work_dir="${output_dir}/genes.tsv" />
37 <data name="metadata_upd" format="txt" label="Updated metadata" />
38 </outputs>
39 <tests>
40 <test>
41 <param name="matrix" value="10x_data/matrix.mtx" />
42 <param name="genes" value="10x_data/genes.tsv" />
43 <param name="array_size_limit" value='3955000' />
44 <param name="cell_type_field" value="inferred cell type - authors labels" />
45 <param name="barcodes" value="10x_data/barcodes.tsv" />
46 <param name="metadata" value="E-MTAB-7249_unmelted_sdrf.tsv" />
47 <output name="matrix_upd" file="10x_data_upd/matrix.mtx" compare="sim_size" delta="10000000" />
48 <output name="barcodes_upd" file="10x_data_upd/barcodes.tsv" compare="sim_size" delta="10000000" />
49 <output name="genes_upd" file="10x_data_upd/genes.tsv" compare="sim_size" delta="10000000" />
50 <output name="metadata_upd" file="E-MTAB-7249_unmelted_sdrf_downsampled.tsv" compare="sim_size" delta="10000000"/>
51 </test>
52 </tests>
53
54 <help><![CDATA[
55 @HELP@
56
57 @VERSION_HISTORY@
58 ]]></help>
59 <expand macro="citations" />
60 </tool>