comparison seurat_find_neighbours.xml @ 0:4fff8ad1c76d draft

planemo upload for repository https://github.com/ebi-gene-expression-group/container-galaxy-sc-tertiary/ commit 0463f230d18201c740851d72e31a5024f391207f
author ebi-gxa
date Mon, 25 Nov 2019 06:07:31 -0500
parents
children bba8b14264c2
comparison
equal deleted inserted replaced
-1:000000000000 0:4fff8ad1c76d
1 <tool id="seurat_find_neighbours" name="Seurat FindNeighbours" version="@SEURAT_VERSION@_@VERSION@+galaxy0">
2 <description>constructs a Shared Nearest Neighbor (SNN) Graph</description>
3 <macros>
4 <import>seurat_macros.xml</import>
5 </macros>
6 <expand macro="requirements" />
7 <expand macro="version" />
8 <command detect_errors="exit_code"><![CDATA[
9 seurat-find-neighbours.R
10 @INPUT_OBJECT@
11 $distance_matrix
12 #if $k_param
13 --k-param '$k_param'
14 #end if
15 $compute_snn
16 #if $prune_snn
17 --prune-snn '$prune_snn'
18 #end if
19 #if $nn_method
20 --nn-method '$nn_method'
21 #end if
22 #if $annoy_metric
23 --annoy-metric '$annoy_metric'
24 #end if
25 #if $graph_name
26 --graph-name '$graph_name'
27 #end if
28 #if $nn_eps and $nn_method == "rann"
29 --nn-eps '$nn_eps'
30 #end if
31 $force_recalc
32 #if $features_file
33 --features '$features_file'
34 #else if $features
35 --features '$features'
36 #end if
37 #if $reduction
38 --reduction '$reduction'
39 #end if
40 #if $dims
41 --dims '$dims'
42 #end if
43 #if $assay
44 --assay '$assay'
45 #end if
46 #if $do_plot
47 $do_plot
48 #end if
49 @OUTPUT_OBJECT@
50 ]]></command>
51
52 <inputs>
53 <expand macro="input_object_params"/>
54 <expand macro="output_object_params"/>
55 <param label="Features" optional="true" name="features" argument="--features" type="text" help="Comma-separated list of genes to use for building SNN."/>
56 <param label="Features file" optional="true" name="features_file" argument="--features" type="data" format="txt,tabular" help="Text file with one gene per line to use for building SNN. Overrides Features."/>
57 <param label="Plot SNN on tSNE" optional="true" name="do_plot" argument="--do-plot" type="boolean" truevalue="--do-plot" checked="false" help="Plot SNN graph on tSNE coordinates"/>
58 <param label="Reduction" optional="true" name="reduction" argument="--reduction" type="text" help="Reduction to use as input for building the SNN"/>
59 <param label="Dimensions" optional="true" name="dims" argument="--dims" type="text" help="Dimensions of reduction to use as input. A comma-separated list of the dimensions to use in construction of the SNN graph (e.g. To use the first 5 PCs, pass 1,2,3,4,5)."/>
60 <param label="Assay" optional="true" name="assay" argument="--assay" type="text" help="Assay to use in construction of SNN"/>
61 <param label="Distance matrix" optional="true" name="distance_matrix" argument="--distance-matrix" type="boolean" truevalue="--distance-matrix" falsevalue="" checked="false" help="Boolean value of whether the provided matrix is a distance matrix; note, for objects of class dist, this parameter will be set automatically."/>
62 <param label="k" optional="true" name="k_param" argument="--k-param" type="integer" help="Defines k for the k-nearest neighbor algorithm"/>
63 <param label="Compute SNN" optional="true" name="compute_snn" argument="--compute-snn" type="boolean" truevalue="--compute-snn" falsevalue="" checked="false" help="Also compute the shared nearest neighbor graph"/>
64 <param label="Prune SNN" optional="true" name="prune_snn" argument="--prune-snn" type="float" help="Sets the cutoff for acceptable Jaccard index when computing the neighborhood overlap for the SNN construction. Any edges with values less than or equal to this will be set to 0 and removed from the SNN graph. Essentially sets the strigency of pruning (0 --- no pruning, 1 --- prune everything)."/>
65 <param label="NN method" optional="true" name="nn_method" argument="--nn-method" type="select" help="Method for nearest neighbor finding. Options include: rann (default), annoy">
66 <option value="rann" selected="true">rann</option>
67 <option value="annoy">annoy</option>
68 </param>
69 <param label="Annoy metric" optional="true" name="annoy_metric" argument="--annoy-metric" type="select" help="Distance metric for annoy. Options include: euclidean (default), cosine, manhattan, and hamming">
70 <option value="euclidean" selected="true">Euclidean</option>
71 <option value="cosine">Cosine</option>
72 <option value="manhattan">Manhattan</option>
73 <option value="hamming">Hamming</option>
74 </param>
75 <param label="Graph name" optional="true" name="graph_name" argument="--graph-name" type="text" help="Name of graph to use for the clustering algorithm."/>
76 <param label="NN Error bound" optional="true" name="nn_eps" argument="--nn-eps" type="float" help="Error bound when performing nearest neighbor seach using RANN; default of 0.0 implies exact nearest neighbor search"/>
77 <param label="Force recalc" optional="true" name="force_recalc" argument="--force-recalc" type="boolean" truevalue="--force-recalc" falsevalue="" checked="false" help="Force recalculation of SNN"/>
78 </inputs>
79
80 <outputs>
81 <expand macro="output_files"/>
82 <data name="snn_on_tsne" format="pdf" from_work_dir="snn_on_tsne.pdf" label="${tool.name} on ${on_string}: SNN on tSNE Plot">
83 <filter>do_plot</filter>
84 </data>
85 </outputs>
86
87 <tests>
88 <test>
89 <param name="input" ftype="rdata" value="seurat.rds"/>
90 <output name="rds_seurat_file" ftype="rdata" value="out_filter.rds" compare="sim_size"/>
91 </test>
92 </tests>
93 <help><![CDATA[
94 .. class:: infomark
95
96 **What it does**
97
98 Constructs a Shared Nearest Neighbor (SNN) Graph for a given dataset.
99 We first determine the k-nearest neighbors of each cell. We use this knn graph
100 to construct the SNN graph by calculating the neighborhood overlap (Jaccard index)
101 between every cell and its k.param nearest neighbors.
102
103 @SEURAT_INTRO@
104
105 -----
106
107 **Inputs**
108
109 * Seurat RDS object. Probably the one produced by Seurat create object.
110 * Subset names. A list of attributes to subset on, colon separated (:).
111 * Low thresholds. A minimum value for each of the attributes set in subset names, again, colon separated (:). Optional.
112 * High thresholds. A maximum value for each of the attributes set in subset names, again, colon separated (:). Optional.
113 * Cells to use. A list of cell names/idenfifiers to filter positively by.
114
115 -----
116
117 **Outputs**
118
119 * Seurat RDS object filtered according to the inputs.
120
121 .. _Seurat: https://www.nature.com/articles/nbt.4096
122 .. _Satija Lab: https://satijalab.org/seurat/
123
124 @VERSION_HISTORY@
125
126 ]]></help>
127 <expand macro="citations" />
128 </tool>