Mercurial > repos > ebi-gxa > scanpy_plot_embed
comparison scanpy-plot-embedding.xml @ 0:c63bc0b71865 draft
"planemo upload for repository https://github.com/ebi-gene-expression-group/container-galaxy-sc-tertiary/tree/develop/tools/tertiary-analysis/scanpy commit 4846776f55931e176f7e77af7c185ec6fec7d142"
author | ebi-gxa |
---|---|
date | Mon, 16 Sep 2019 08:26:08 -0400 |
parents | |
children | b2410da4e381 |
comparison
equal
deleted
inserted
replaced
-1:000000000000 | 0:c63bc0b71865 |
---|---|
1 <?xml version="1.0" encoding="utf-8"?> | |
2 <tool id="scanpy_plot_embed" name="Scanpy PlotEmbed" version="@TOOL_VERSION@+galaxy0"> | |
3 <description>visualise cell embeddings</description> | |
4 <macros> | |
5 <import>scanpy_macros2.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-cli plot embed | |
11 @INPUT_OPTS@ | |
12 --basis '${basis}' | |
13 --color '${color_by}' | |
14 ${use_raw} | |
15 --legend-loc '${legend_loc}' | |
16 --legend-fontsize '${legend_fontsize}' | |
17 #if $point_size | |
18 --size ${point_size} | |
19 #end if | |
20 @PLOT_OPTS@ | |
21 ]]></command> | |
22 | |
23 <inputs> | |
24 <expand macro="input_object_params"/> | |
25 <param name="basis" argument="--basis" type="text" label="Name of the embedding to plot"/> | |
26 <param name="color_by" argument="--color" type="text" label="Color by attributes, comma separated texts"/> | |
27 <param name="use_raw" argument="--use-raw" type="boolean" checked="true" truevalue="--use-raw" falsevalue="--no-raw" label="Use raw attributes if present"/> | |
28 <param name="legend_loc" argument="--legend-loc" type="select" label="Location of legend"> | |
29 <option value="right margin" selected="true">Right margin</option> | |
30 <option value="on data">On data</option> | |
31 </param> | |
32 <param name="legend_fontsize" argument="--legend-fontsize" type="integer" value="15" label="Legend font size"/> | |
33 <param name="point_size" argument="--size" type="integer" optional="true" label="Point size" | |
34 help="Automatically determined if not specified."/> | |
35 <expand macro="output_plot_params"/> | |
36 </inputs> | |
37 | |
38 <outputs> | |
39 <data name="output_png" format="png" from_work_dir="output.png" label="${tool.name} on ${on_string}: embedding plot"/> | |
40 </outputs> | |
41 | |
42 <tests> | |
43 <test> | |
44 <param name="input_obj_file" value="find_cluster.h5"/> | |
45 <param name="input_format" value="anndata"/> | |
46 <param name="color_by" value="louvain"/> | |
47 <output name="output_png" file="run_tsne.png" ftype="png" compare="sim_size"/> | |
48 </test> | |
49 </tests> | |
50 | |
51 <help><![CDATA[ | |
52 ============================================================= | |
53 Plot embeddings of a given method of dimensionality reduction | |
54 ============================================================= | |
55 | |
56 It yields a scatter plot in png format, wherein cells are placed in space of | |
57 reduced dimensionality and coloured by attribute of choice. | |
58 | |
59 Requires calculating the specified embeddings first. For example, to make | |
60 UMAP/TSNE plots, run `Scanpy RunUMAP`/`Scanpy RunTSNE` first, then enter | |
61 "umap"/"tsne" as the name of the embedding to plot here. | |
62 | |
63 @HELP@ | |
64 | |
65 @VERSION_HISTORY@ | |
66 ]]></help> | |
67 <expand macro="citations"/> | |
68 </tool> |