comparison scanpy-plot-trajectory.xml @ 0:f76e8237073a 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:21:49 -0400
parents
children 1b0680f609ce
comparison
equal deleted inserted replaced
-1:000000000000 0:f76e8237073a
1 <?xml version="1.0" encoding="utf-8"?>
2 <tool id="scanpy_plot_trajectory" name="Scanpy PlotTrajectory" version="@TOOL_VERSION@+galaxy0">
3 <description>visualise cell trajectories</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 paga
11 #if $use_key
12 --use-key '${use_key}'
13 #end if
14 --layout ${layout}
15 #if $basis
16 --basis ${basis}
17 #end if
18 #if $settings.default == "false"
19 --threshold ${settings.threshold}
20 #if $settings.root
21 --root ${settings.root}
22 #end if
23 ${settings.single_component}
24 #if $settings.solid_edges
25 --solid-edges ${settings.solid_edges}
26 #end if
27 #if $settings.color
28 --color '${settings.color}'
29 #end if
30 #if $settings.node_size
31 --node-size-scale ${settings.node_size}
32 #end if
33 #if $settings.node_font
34 --fontsize ${settings.node_font}
35 #end if
36 #if $settings.edge_width
37 --edge-width-scale ${settings.edge_width}
38 #end if
39 #end if
40 @INPUT_OPTS@
41 @PLOT_OPTS@
42 ]]></command>
43
44 <inputs>
45 <expand macro="input_object_params"/>
46 <param name="use_key" argument="--use-key" type="text" value="paga"
47 label="The key in `.uns` that contains trajectory information"/>
48 <param name="layout" argument="--layout" type="select" label="Layout functions">
49 <option value="fa" selected="true">ForceAtlas2</option>
50 <option value="fr">Fruchterman-Reingold</option>
51 <option value="rt">Reingold-Tilford</option>
52 </param>
53 <param name="basis" argument="--basis" type="text" optional="true" label="Name of the embedding to plot"
54 help="Must be a key of `.obsm` without the prefix 'X_', e.g. 'umap'."/>
55 <expand macro="output_plot_params"/>
56 <conditional name="settings">
57 <param name="default" type="boolean" checked="true" label="Use programme defaults"/>
58 <when value="true"/>
59 <when value="false">
60 <param name="threshold" argument="--threshold" type="float" min="0" value="0.01"
61 label="Do not draw edges with weights below this threshold"
62 help="Set to 0 to include all edges."/>
63 <param name="root" argument="--root" type="integer" min="0" value="0"
64 label="The index of the root node when choosing a tree layout"/>
65 <param name="single_component" argument="--single-component" type="boolean" truevalue="--single-component" falsevalue="" checked="false"
66 label="Restrict to the largest connected component"/>
67 <param name="solid_edges" argument="--solid-edges" type="select" label="Edges to be drawn in solid black">
68 <option value="connectivities" selected="true">connectivities</option>
69 <option value="connectivities_tree">connectivities_tree</option>
70 </param>
71 <param name="color" argument="--color" type="text" label="Name of cell annotation or gene that is used to color the nodes"/>
72 <param name="node_size" argument="--node-size-scale" type="float" value="1.0"
73 label="Increase or decrease the size of the nodes"/>
74 <param name="node_font" argument="--fontsize" type="integer" min="1" optional="true"
75 label="Font size for the node labels"/>
76 <param name="edge_width" argument="--edge-width-scale" type="float" value="1.0"
77 label="Increase or decrease the width of the edges"/>
78 </when>
79 </conditional>
80 </inputs>
81
82 <outputs>
83 <data name="output_png" format="png" from_work_dir="output.png" label="${tool.name} on ${on_string}: trajectory plot"/>
84 </outputs>
85
86 <tests>
87 <test>
88 <param name="input_obj_file" value="find_cluster.h5"/>
89 <param name="input_format" value="anndata"/>
90 <param name="type" value="paga_compare"/>
91 <output name="output_png" file="paga_compare.png" ftype="png" compare="sim_size"/>
92 </test>
93 </tests>
94
95 <help><![CDATA[
96 ===============================================================
97 Plot PAGA-inferred trajectories (`scanpy.pl.paga/paga_compare`)
98 ===============================================================
99
100 Depending on the selected options, it yields a plot of a graph representing
101 inferred trajectory, or a trajectory graph side-by-side with a scatter plot of
102 cells embedded to space of reduced dimensionality in png format.
103
104 It requires running PAGA, first.
105
106 @HELP@
107
108 @VERSION_HISTORY@
109 ]]></help>
110 <expand macro="citations"/>
111 </tool>