Mercurial > repos > ebi-gxa > sc3_prepare
comparison sc3-prepare.xml @ 0:9a2b61bfdaa9 draft default tip
planemo upload for repository https://github.com/ebi-gene-expression-group/container-galaxy-sc-tertiary/ commit 9bf9a6e46a330890be932f60d1d996dd166426c4
author | ebi-gxa |
---|---|
date | Wed, 03 Apr 2019 11:30:49 -0400 |
parents | |
children |
comparison
equal
deleted
inserted
replaced
-1:000000000000 | 0:9a2b61bfdaa9 |
---|---|
1 <?xml version="1.0" encoding="utf-8"?> | |
2 <tool id="sc3_prepare" name="SC3 Prepare" version="@TOOL_VERSION@+galaxy0"> | |
3 <description>a sc3 SingleCellExperiment object</description> | |
4 <macros> | |
5 <import>sc3-macros.xml</import> | |
6 </macros> | |
7 <expand macro="requirements" /> | |
8 <command detect_errors="exit_code"><![CDATA[ | |
9 sc3-sc3-prepare.R -i '${scater_log}' -o '${sc3_prepared}' -t 1 | |
10 | |
11 #if $gene_filter.use: | |
12 -f TRUE | |
13 -p '${gene_filter.pct_dropout_min}' | |
14 -q '${gene_filter.pct_dropout_max}' | |
15 #end if | |
16 #if $d_region_min: | |
17 -d '${d_region_min}' | |
18 #end if | |
19 #if $d_region_max: | |
20 -d '${d_region_max}' | |
21 #end if | |
22 #if $svm_num_cells: | |
23 -n '${svm_num_cells}' | |
24 #end if | |
25 #if $svm_train_inds: | |
26 -r '${svm_train_inds}' | |
27 #end if | |
28 #if $svm_max: | |
29 -m '${svm_max}' | |
30 #end if | |
31 #if $seed: | |
32 -s '${seed}' | |
33 #end if | |
34 #if $kmeans_nstart: | |
35 -k '${kmeans_nstart}' | |
36 #end if | |
37 #if $kmeans_iter_max: | |
38 -a '${kmeans_iter_max}' | |
39 #end if | |
40 | |
41 ]]></command> | |
42 | |
43 <inputs> | |
44 <param name="scater_log" type="data" format="rdata" label="Serialised SingleCellExperiment object normalised by scater"/> | |
45 | |
46 <conditional name="gene_filter"> | |
47 <param name="use" argument="--gene-filter" type="boolean" label="Perform gene filtering?" | |
48 help="A boolean variable which defines whether to perform gene filtering before SC3 clustering."/> | |
49 <when value="true"> | |
50 <param name="pct_dropout_min" argument="--pct-dropout-min" type="integer" value="10" label="Minimum percent of dropouts" | |
51 help="An integer value. Genes with percent of dropouts smaller than this value are filtered out before clustering."/> | |
52 <param name="pct_dropout_max" argument="--pct-dropout-max" type="integer" value="90" label="Maximum percent of dropouts" | |
53 help="An integer value. Genes with percent of dropouts larger than this value are filtered out before clustering."/> | |
54 </when> | |
55 <when value="false"/> | |
56 </conditional> | |
57 | |
58 <param name="d_region_min" argument="--d-region-min" type="float" value="0.04" optional="true" | |
59 label="Minimum number of eigenvectors used for kmeans clustering as a fraction of the total number of cells"/> | |
60 | |
61 <param name="d_region_max" argument="--d-region-max" type="float" value="0.07" optional="true" | |
62 label="Maximum number of eigenvectors used for kmeans clustering as a fraction of the total number of cells"/> | |
63 | |
64 <param name="svm_num_cells" argument="--svm-num-cells" type="integer" optional="true" | |
65 label="Number of randomly selected training cells to be used for SVM prediction."/> | |
66 | |
67 <param name="svm_train_inds" argument="--svm-train-inds" type="data" format="txt" optional="true" | |
68 label="Text file with one integer per line defining indices of training cells that should be used for SVM training"/> | |
69 | |
70 <param name="svm_max" argument="--svm-max" type="integer" value="5000" | |
71 label="The number of cells below which SVM are not run"/> | |
72 | |
73 <param name="seed" argument="--rand-seed" type="integer" value="1" optional="true" label="Seed of the random number generator" | |
74 help="SC3 is a stochastic method, so setting the rand_seed to a fixed values can be used for reproducibility purposes."/> | |
75 | |
76 <param name="kmeans_nstart" argument="--kmeans-nstart" type="integer" optional="true" label="Number of random starts for kmeans" | |
77 help="When unspecified, default to 1000 for up to 2000 cells and 50 for more than 2000 cells."/> | |
78 | |
79 <param name="kmeans_iter_max" argument="--kmeans-iter-max" type="integer" optional="true" label="Maximum number of iterations for kmeans" | |
80 help="When unspecified, default to 1e+9."/> | |
81 </inputs> | |
82 | |
83 <outputs> | |
84 <data name="sc3_prepared" format="rdata" label="${tool.name} on ${on_string}: serialised sc3 SingleCellExperiment object"/> | |
85 </outputs> | |
86 | |
87 <tests> | |
88 <test> | |
89 <param name="scater_log" value="scater_log.rdata"/> | |
90 <output name="sc3_prepared" file="sc3_prepared.rdata"/> | |
91 </test> | |
92 </tests> | |
93 | |
94 <help><![CDATA[ | |
95 | |
96 ================================================================================== | |
97 This function prepares an object of SingleCellExperiment class for SC3 clustering. | |
98 ================================================================================== | |
99 It creates and populates the following items of the sc3 slot of the metadata(object): | |
100 | |
101 - kmeans_iter_max: the same as the kmeans_iter_max argument. | |
102 - kmeans_nstart: the same as the kmeans_nstart argument. | |
103 - n_dim: contains numbers of the number of eigenvectors to be used in kmeans clustering. | |
104 - rand_seed: the same as the rand_seed argument. | |
105 - svm_train_inds: if SVM is used this item contains indexes of the training cells to be used for SC3 clustering and further SVM prediction. | |
106 - svm_study_inds: if SVM is used this item contains indexes of the cells to be predicted by SVM. | |
107 - n_cores: the same as the n_cores argument. | |
108 | |
109 @HELP@ | |
110 | |
111 @VERSION_HISTORY@ | |
112 ]]></help> | |
113 <expand macro="citations" /> | |
114 </tool> |