Mercurial > repos > ebi-gxa > scanpy_normalise_data
comparison scanpy-normalise-data.xml @ 0:1dda36e73482 draft
planemo upload for repository https://github.com/ebi-gene-expression-group/container-galaxy-sc-tertiary/tree/develop/tools/tertiary-analysis/scanpy commit 9bf9a6e46a330890be932f60d1d996dd166426c4
author | ebi-gxa |
---|---|
date | Wed, 03 Apr 2019 11:07:51 -0400 |
parents | |
children | e541f264fad2 |
comparison
equal
deleted
inserted
replaced
-1:000000000000 | 0:1dda36e73482 |
---|---|
1 <?xml version="1.0" encoding="utf-8"?> | |
2 <tool id="scanpy_normalise_data" name="Scanpy NormaliseData" version="@TOOL_VERSION@+galaxy1"> | |
3 <description>to make all cells having the same total expression</description> | |
4 <macros> | |
5 <import>scanpy_macros.xml</import> | |
6 </macros> | |
7 <expand macro="requirements"/> | |
8 <command detect_errors="exit_code"><![CDATA[ | |
9 ln -s '${input_obj_file}' input.h5 && | |
10 PYTHONIOENCODING=utf-8 scanpy-normalise-data.py | |
11 -i input.h5 | |
12 -f '${input_format}' | |
13 -o output.h5 | |
14 -F '${output_format}' | |
15 -s '${scale_factor}' | |
16 #if $save_raw | |
17 '${save_raw}' | |
18 #end if | |
19 @EXPORT_MTX_OPTS@ | |
20 ]]></command> | |
21 | |
22 <inputs> | |
23 <expand macro="input_object_params"/> | |
24 <expand macro="output_object_params"/> | |
25 <param name="scale_factor" argument="--scale-factor" type="float" value="1e4" label="Target number to normalise to" help="Aimed counts per cell after normalisation, default: 1e4"/> | |
26 <param name="save_raw" argument="--save-raw" type="boolean" truevalue="--save-raw" falsevalue="" checked="true" label="Save pre-normalised data" help="Save raw quantification in log scale before normalisation."/> | |
27 <expand macro="export_mtx_params"/> | |
28 </inputs> | |
29 | |
30 <outputs> | |
31 <data name="output_h5" format="h5" from_work_dir="output.h5" label="${tool.name} on ${on_string}: Normalized data" /> | |
32 <expand macro="export_mtx_outputs"/> | |
33 </outputs> | |
34 | |
35 <tests> | |
36 <test> | |
37 <param name="input_obj_file" value="filter_genes.h5"/> | |
38 <param name="input_format" value="anndata"/> | |
39 <param name="output_format" value="anndata"/> | |
40 <param name="scale_factor" value="1e4"/> | |
41 <param name="save_raw" value="false"/> | |
42 <output name="output_h5" file="normalise_data.h5" ftype="h5" compare="sim_size"/> | |
43 </test> | |
44 </tests> | |
45 | |
46 <help><![CDATA[ | |
47 ========================================================= | |
48 Normalize total counts per cell (`pp.normalize_per_cell`) | |
49 ========================================================= | |
50 | |
51 Normalize each cell by total counts over all genes, so that every cell has | |
52 the same total count after normalization. | |
53 | |
54 Similar functions are used, for example, by Seurat, Cell Ranger or SPRING. | |
55 | |
56 @HELP@ | |
57 | |
58 @VERSION_HISTORY@ | |
59 ]]></help> | |
60 <expand macro="citations"/> | |
61 </tool> |