comparison decoupler_pathway_inference.xml @ 0:77d680b36e23 draft

planemo upload for repository https://github.com/ebi-gene-expression-group/container-galaxy-sc-tertiary/ commit 1034a450c97dcbb77871050cf0c6d3da90dac823
author ebi-gxa
date Fri, 15 Mar 2024 12:17:49 +0000
parents
children
comparison
equal deleted inserted replaced
-1:000000000000 0:77d680b36e23
1 <tool id="decoupler_pathway_inference" name="Decoupler Pathway Inference" version="1.4.0+galaxy0" profile="20.05" license="MIT">
2 <description>
3 of functional genesets/pathways for scRNA-seq data.
4 </description>
5 <requirements>
6 <requirement type="package" version="1.4.0">decoupler</requirement>
7 </requirements>
8 <command>
9 python '$__tool_directory__/decoupler_pathway_inference.py'
10 -i '$input_anndata'
11 -n '$input_network_file'
12 --min_n "$min_n"
13 --method '$method'
14 $use_raw
15 --source $source
16 --target $target
17 --weight $weight
18 --output "inference"
19 $write_activities_path
20 </command>
21 <inputs>
22 <param name="input_anndata" type="data" format="h5ad" label="Input AnnData file" />
23 <param name="input_network_file" type="data" format="tabular" label="Input Network file" help="Tabular file with columns Source, Target and Weight. A source gene/pathway regulates/contains a target gene, weights can be either positive or negative. The source element needs to be part of the network, the target is a gene in the network and in the dataset" />
24 <param name="min_n" type="integer" min="0" value="5" label="Minimum targets per source." help="If targets are less than minimum, sources are removed" />
25 <param name="method" type="select" label="Activity inference method">
26 <option value="mlm" selected="true">Multivariate linear model (MLM)</option>
27 <option value="ulm">Univariate linear model (ULM)</option>
28 </param>
29 <param name="use_raw" type="boolean" truevalue="--use_raw" falsevalue="" checked="false" label="Use the raw part of the AnnData object" />
30 <param name="write_activities_path" type="boolean" truevalue="--activities_path anndata_activities_path.h5ad" falsevalue="" checked="true" label="Write the activities AnnData object (contains the MLM/ULM activity results for each pathway and each cell in the main matrix, it is not a replacement of the original AnnData provided as input)." />
31 <param name="source" type="text" value='source' label="Column name in network with source nodes." help="If empty then default is 'source' is used." />
32 <param name="target" type="text" value='target' label="Column name in network with target nodes." help="If empty then default is 'target' is used." />
33 <param name="weight" type="text" value='weight' label="Column name in network with weight." help="If empty then default is 'weight' is used." />
34 </inputs>
35 <outputs>
36 <data name="output_ad" format="h5ad" from_work_dir="anndata_activities_path.h5ad" label="${tool.name} on ${on_string}: Regulators/Pathways activity AnnData file">
37 <filter>write_activities_path</filter>
38 </data>
39 <data name="output_table" format="tabular" from_work_dir="inference.tsv" label="${tool.name} on ${on_string}: Output estimate table" />
40 </outputs>
41 <tests>
42 <!-- Hint: You can use [ctrl+alt+t] after defining the inputs/outputs to auto-scaffold some basic test cases. -->
43
44 <test expect_num_outputs="2">
45 <param name="input_anndata" value="pbmc3k_processed.h5ad"/>
46 <param name="input_network_file" value="progeny_test.tsv"/>
47 <param name="min_n" value="0"/>
48 <param name="method" value="mlm"/>
49 <param name="use_raw" value="false"/>
50 <param name="write_activities_path" value="true"/>
51 <param name="source" value="source"/>
52 <param name="target" value="target"/>
53 <param name="weight" value="weight"/>
54 <output name="output_ad">
55 <assert_contents>
56 <has_h5_keys keys="obsm/mlm_estimate"/>
57 </assert_contents>
58 </output>
59 <output name="output_table">
60 <assert_contents>
61 <has_n_columns n="5"/>
62 </assert_contents>
63 </output>
64 </test>
65 <test>
66 <param name="input_anndata" value="pbmc3k_processed.h5ad"/>
67 <param name="input_network_file" value="progeny_test_2.tsv"/>
68 <param name="min_n" value="0"/>
69 <param name="method" value="ulm"/>
70 <param name="use_raw" value="false"/>
71 <param name="write_activities_path" value="true"/>
72 <param name="source" value="source"/>
73 <param name="target" value="target"/>
74 <param name="weight" value="weight"/>
75 <output name="output_ad">
76 <assert_contents>
77 <has_h5_keys keys="obsm/ulm_estimate"/>
78 </assert_contents>
79 </output>
80 <output name="output_table">
81 <assert_contents>
82 <has_n_columns n="5"/>
83 </assert_contents>
84 </output>
85 </test>
86 </tests>
87 <help>
88 **What it does**
89
90 Usage
91 .....
92
93
94 **Description**
95
96 This tool extracts pathway activity inference using decoupler.
97
98 **Input**
99
100 The input file should be an AnnData object in H5AD format. The tool accepts an H5AD file containing raw or normalized data.
101
102 The tool also takes network file containing a collection of pathways and their target genes, with weights for each interaction.
103 Example:
104 ```
105 source target weight
106 0 T1 G01 1.0
107 1 T1 G02 1.0
108 2 T1 G03 0.7
109 3 T2 G04 1.0
110 4 T2 G06 -0.5
111 ```
112
113 You can also specify whether to use the raw data in the AnnData object instead of the X matrix using the "use_raw" parameter and Minimum of targets per source using "min_n".
114
115
116 **Output**
117
118 The tool outputs an AnnData object containing the scores in the "obs" field, and tab-separated text files containing the scores for each cell.
119
120 If the "write_activities_path" parameter is set to "true", the tool will write the modified AnnData object to an H5AD file.
121 If the "write_inference" parameter is set to "true", the tool will output a tab-separated text file containing the scores for each cell.
122
123
124
125 </help>
126 <citations>
127 <citation type="doi">10.1093/bioadv/vbac016 </citation>
128 </citations>
129 </tool>