Mercurial > repos > ebi-gxa > scanpy_plot_embed
comparison scanpy-plot-embedding.xml @ 0:224d1c9d7f19 draft
"planemo upload for repository https://github.com/ebi-gene-expression-group/container-galaxy-sc-tertiary/tree/develop/tools/tertiary-analysis/scanpy commit ba0c88ab1b077a0b1c60c8d3c529e72ca6946226"
| author | ebi-gxa |
|---|---|
| date | Thu, 12 Mar 2020 09:06:45 +0000 |
| parents | |
| children |
comparison
equal
deleted
inserted
replaced
| -1:000000000000 | 0:224d1c9d7f19 |
|---|---|
| 1 <?xml version="1.0" encoding="utf-8"?> | |
| 2 <tool id="scanpy_plot_embed" name="Scanpy PlotEmbed" version="@TOOL_VERSION@+galaxy10" profile="@PROFILE@"> | |
| 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 #if $gene_symbols_field | |
| 21 --gene-symbols ${gene_symbols_field} | |
| 22 #end if | |
| 23 @PLOT_OPTS@ | |
| 24 ]]></command> | |
| 25 | |
| 26 <inputs> | |
| 27 <expand macro="input_object_params"/> | |
| 28 <param name="basis" argument="--basis" type="text" label="Name of the embedding to plot"/> | |
| 29 <param name="color_by" argument="--color" type="text" label="Color by attributes, comma separated texts"> | |
| 30 <sanitizer> | |
| 31 <valid initial="string.printable"/> | |
| 32 </sanitizer> | |
| 33 </param> | |
| 34 <param name="gene_symbols_field" argument="--gene-symbols" type="text" optional="true" label="Field for gene symbols" help="The field used in the AnnData object to store gene symbols, leave blank for the default (index), else a common value is 'gene_symbols'"/> | |
| 35 <param name="use_raw" argument="--use-raw" type="boolean" checked="true" truevalue="--use-raw" falsevalue="--no-raw" label="Use raw attributes if present"/> | |
| 36 <param name="legend_loc" argument="--legend-loc" type="select" label="Location of legend"> | |
| 37 <option value="right margin" selected="true">Right margin</option> | |
| 38 <option value="on data">On data</option> | |
| 39 </param> | |
| 40 <param name="legend_fontsize" argument="--legend-fontsize" type="integer" value="15" label="Legend font size"/> | |
| 41 <param name="point_size" argument="--size" type="integer" optional="true" label="Point size" | |
| 42 help="Automatically determined if not specified."/> | |
| 43 <expand macro="output_plot_params"/> | |
| 44 </inputs> | |
| 45 | |
| 46 <outputs> | |
| 47 <data name="output_png" format="png" from_work_dir="output.png" label="${tool.name} on ${on_string}: ${basis} embedding plot"/> | |
| 48 </outputs> | |
| 49 | |
| 50 <tests> | |
| 51 <test> | |
| 52 <param name="input_obj_file" value="find_cluster.h5"/> | |
| 53 <param name="input_format" value="anndata"/> | |
| 54 <param name="color_by" value="louvain"/> | |
| 55 <output name="output_png" file="run_tsne.png" ftype="png" compare="sim_size"/> | |
| 56 </test> | |
| 57 </tests> | |
| 58 | |
| 59 <help><![CDATA[ | |
| 60 ============================================================= | |
| 61 Plot embeddings of a given method of dimensionality reduction | |
| 62 ============================================================= | |
| 63 | |
| 64 It yields a scatter plot in png format, wherein cells are placed in space of | |
| 65 reduced dimensionality and coloured by attribute of choice. | |
| 66 | |
| 67 Requires calculating the specified embeddings first. For example, to make | |
| 68 UMAP/TSNE plots, run `Scanpy RunUMAP`/`Scanpy RunTSNE` first, then enter | |
| 69 "umap"/"tsne" as the name of the embedding to plot here. | |
| 70 | |
| 71 @HELP@ | |
| 72 | |
| 73 @VERSION_HISTORY@ | |
| 74 ]]></help> | |
| 75 <expand macro="citations"/> | |
| 76 </tool> |
