annotate drug2cell.xml @ 0:b0ea90bddf66 draft default tip

planemo upload for repository https://github.com/Teichlab/drug2cell commit 9c3372b3af7b42d66e740f07ab16fed3035783cc
author iuc
date Thu, 20 Feb 2025 20:23:05 +0000
parents
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
0
b0ea90bddf66 planemo upload for repository https://github.com/Teichlab/drug2cell commit 9c3372b3af7b42d66e740f07ab16fed3035783cc
iuc
parents:
diff changeset
1 <tool id="drug2cell" name="drug2cell" version="@TOOL_VERSION@+galaxy@VERSION_SUFFIX@" profile="21.05">
b0ea90bddf66 planemo upload for repository https://github.com/Teichlab/drug2cell commit 9c3372b3af7b42d66e740f07ab16fed3035783cc
iuc
parents:
diff changeset
2 <description>Collection of utility functions for gene group activity evaluation in scanpy</description>
b0ea90bddf66 planemo upload for repository https://github.com/Teichlab/drug2cell commit 9c3372b3af7b42d66e740f07ab16fed3035783cc
iuc
parents:
diff changeset
3 <macros>
b0ea90bddf66 planemo upload for repository https://github.com/Teichlab/drug2cell commit 9c3372b3af7b42d66e740f07ab16fed3035783cc
iuc
parents:
diff changeset
4 <token name="@TOOL_VERSION@">0.1.2</token>
b0ea90bddf66 planemo upload for repository https://github.com/Teichlab/drug2cell commit 9c3372b3af7b42d66e740f07ab16fed3035783cc
iuc
parents:
diff changeset
5 <token name="@VERSION_SUFFIX@">0</token>
b0ea90bddf66 planemo upload for repository https://github.com/Teichlab/drug2cell commit 9c3372b3af7b42d66e740f07ab16fed3035783cc
iuc
parents:
diff changeset
6 </macros>
b0ea90bddf66 planemo upload for repository https://github.com/Teichlab/drug2cell commit 9c3372b3af7b42d66e740f07ab16fed3035783cc
iuc
parents:
diff changeset
7 <requirements>
b0ea90bddf66 planemo upload for repository https://github.com/Teichlab/drug2cell commit 9c3372b3af7b42d66e740f07ab16fed3035783cc
iuc
parents:
diff changeset
8 <requirement type="package" version="0.1.2">drug2cell</requirement>
b0ea90bddf66 planemo upload for repository https://github.com/Teichlab/drug2cell commit 9c3372b3af7b42d66e740f07ab16fed3035783cc
iuc
parents:
diff changeset
9 <requirement type="package" version="1.10.4">scanpy</requirement>
b0ea90bddf66 planemo upload for repository https://github.com/Teichlab/drug2cell commit 9c3372b3af7b42d66e740f07ab16fed3035783cc
iuc
parents:
diff changeset
10 </requirements>
b0ea90bddf66 planemo upload for repository https://github.com/Teichlab/drug2cell commit 9c3372b3af7b42d66e740f07ab16fed3035783cc
iuc
parents:
diff changeset
11
b0ea90bddf66 planemo upload for repository https://github.com/Teichlab/drug2cell commit 9c3372b3af7b42d66e740f07ab16fed3035783cc
iuc
parents:
diff changeset
12 <command>
b0ea90bddf66 planemo upload for repository https://github.com/Teichlab/drug2cell commit 9c3372b3af7b42d66e740f07ab16fed3035783cc
iuc
parents:
diff changeset
13 <![CDATA[
b0ea90bddf66 planemo upload for repository https://github.com/Teichlab/drug2cell commit 9c3372b3af7b42d66e740f07ab16fed3035783cc
iuc
parents:
diff changeset
14 python3 '$script' --adata '${adata}' --output '${d2c_output}'
b0ea90bddf66 planemo upload for repository https://github.com/Teichlab/drug2cell commit 9c3372b3af7b42d66e740f07ab16fed3035783cc
iuc
parents:
diff changeset
15 ]]>
b0ea90bddf66 planemo upload for repository https://github.com/Teichlab/drug2cell commit 9c3372b3af7b42d66e740f07ab16fed3035783cc
iuc
parents:
diff changeset
16 </command>
b0ea90bddf66 planemo upload for repository https://github.com/Teichlab/drug2cell commit 9c3372b3af7b42d66e740f07ab16fed3035783cc
iuc
parents:
diff changeset
17 <configfiles>
b0ea90bddf66 planemo upload for repository https://github.com/Teichlab/drug2cell commit 9c3372b3af7b42d66e740f07ab16fed3035783cc
iuc
parents:
diff changeset
18 <configfile name="script">
b0ea90bddf66 planemo upload for repository https://github.com/Teichlab/drug2cell commit 9c3372b3af7b42d66e740f07ab16fed3035783cc
iuc
parents:
diff changeset
19 <![CDATA[
b0ea90bddf66 planemo upload for repository https://github.com/Teichlab/drug2cell commit 9c3372b3af7b42d66e740f07ab16fed3035783cc
iuc
parents:
diff changeset
20 import drug2cell as d2c
b0ea90bddf66 planemo upload for repository https://github.com/Teichlab/drug2cell commit 9c3372b3af7b42d66e740f07ab16fed3035783cc
iuc
parents:
diff changeset
21 import scanpy as sc
b0ea90bddf66 planemo upload for repository https://github.com/Teichlab/drug2cell commit 9c3372b3af7b42d66e740f07ab16fed3035783cc
iuc
parents:
diff changeset
22
b0ea90bddf66 planemo upload for repository https://github.com/Teichlab/drug2cell commit 9c3372b3af7b42d66e740f07ab16fed3035783cc
iuc
parents:
diff changeset
23 # Load AnnData object
b0ea90bddf66 planemo upload for repository https://github.com/Teichlab/drug2cell commit 9c3372b3af7b42d66e740f07ab16fed3035783cc
iuc
parents:
diff changeset
24 adata = sc.read_h5ad("${adata}")
b0ea90bddf66 planemo upload for repository https://github.com/Teichlab/drug2cell commit 9c3372b3af7b42d66e740f07ab16fed3035783cc
iuc
parents:
diff changeset
25
b0ea90bddf66 planemo upload for repository https://github.com/Teichlab/drug2cell commit 9c3372b3af7b42d66e740f07ab16fed3035783cc
iuc
parents:
diff changeset
26 # Run drug2cell
b0ea90bddf66 planemo upload for repository https://github.com/Teichlab/drug2cell commit 9c3372b3af7b42d66e740f07ab16fed3035783cc
iuc
parents:
diff changeset
27 d2c.score(adata)
b0ea90bddf66 planemo upload for repository https://github.com/Teichlab/drug2cell commit 9c3372b3af7b42d66e740f07ab16fed3035783cc
iuc
parents:
diff changeset
28
b0ea90bddf66 planemo upload for repository https://github.com/Teichlab/drug2cell commit 9c3372b3af7b42d66e740f07ab16fed3035783cc
iuc
parents:
diff changeset
29 # Get the drug2cell results
b0ea90bddf66 planemo upload for repository https://github.com/Teichlab/drug2cell commit 9c3372b3af7b42d66e740f07ab16fed3035783cc
iuc
parents:
diff changeset
30 d2cell = adata.uns["drug2cell"]
b0ea90bddf66 planemo upload for repository https://github.com/Teichlab/drug2cell commit 9c3372b3af7b42d66e740f07ab16fed3035783cc
iuc
parents:
diff changeset
31
b0ea90bddf66 planemo upload for repository https://github.com/Teichlab/drug2cell commit 9c3372b3af7b42d66e740f07ab16fed3035783cc
iuc
parents:
diff changeset
32 # Save the drug2cell results to a new .h5ad file
b0ea90bddf66 planemo upload for repository https://github.com/Teichlab/drug2cell commit 9c3372b3af7b42d66e740f07ab16fed3035783cc
iuc
parents:
diff changeset
33 d2cell.write("${d2c_output}")
b0ea90bddf66 planemo upload for repository https://github.com/Teichlab/drug2cell commit 9c3372b3af7b42d66e740f07ab16fed3035783cc
iuc
parents:
diff changeset
34 ]]>
b0ea90bddf66 planemo upload for repository https://github.com/Teichlab/drug2cell commit 9c3372b3af7b42d66e740f07ab16fed3035783cc
iuc
parents:
diff changeset
35 </configfile>
b0ea90bddf66 planemo upload for repository https://github.com/Teichlab/drug2cell commit 9c3372b3af7b42d66e740f07ab16fed3035783cc
iuc
parents:
diff changeset
36 </configfiles>
b0ea90bddf66 planemo upload for repository https://github.com/Teichlab/drug2cell commit 9c3372b3af7b42d66e740f07ab16fed3035783cc
iuc
parents:
diff changeset
37
b0ea90bddf66 planemo upload for repository https://github.com/Teichlab/drug2cell commit 9c3372b3af7b42d66e740f07ab16fed3035783cc
iuc
parents:
diff changeset
38 <inputs>
b0ea90bddf66 planemo upload for repository https://github.com/Teichlab/drug2cell commit 9c3372b3af7b42d66e740f07ab16fed3035783cc
iuc
parents:
diff changeset
39 <param name="adata" type="data" format="h5ad" label="AnnData Object" help="Select the processed AnnData object file containing your single-cell RNA-seq data"/>
b0ea90bddf66 planemo upload for repository https://github.com/Teichlab/drug2cell commit 9c3372b3af7b42d66e740f07ab16fed3035783cc
iuc
parents:
diff changeset
40 </inputs>
b0ea90bddf66 planemo upload for repository https://github.com/Teichlab/drug2cell commit 9c3372b3af7b42d66e740f07ab16fed3035783cc
iuc
parents:
diff changeset
41
b0ea90bddf66 planemo upload for repository https://github.com/Teichlab/drug2cell commit 9c3372b3af7b42d66e740f07ab16fed3035783cc
iuc
parents:
diff changeset
42 <outputs>
b0ea90bddf66 planemo upload for repository https://github.com/Teichlab/drug2cell commit 9c3372b3af7b42d66e740f07ab16fed3035783cc
iuc
parents:
diff changeset
43 <data name="d2c_output" format="h5ad" label="drug2cell Results" />
b0ea90bddf66 planemo upload for repository https://github.com/Teichlab/drug2cell commit 9c3372b3af7b42d66e740f07ab16fed3035783cc
iuc
parents:
diff changeset
44 </outputs>
b0ea90bddf66 planemo upload for repository https://github.com/Teichlab/drug2cell commit 9c3372b3af7b42d66e740f07ab16fed3035783cc
iuc
parents:
diff changeset
45
b0ea90bddf66 planemo upload for repository https://github.com/Teichlab/drug2cell commit 9c3372b3af7b42d66e740f07ab16fed3035783cc
iuc
parents:
diff changeset
46 <tests>
b0ea90bddf66 planemo upload for repository https://github.com/Teichlab/drug2cell commit 9c3372b3af7b42d66e740f07ab16fed3035783cc
iuc
parents:
diff changeset
47 <test>
b0ea90bddf66 planemo upload for repository https://github.com/Teichlab/drug2cell commit 9c3372b3af7b42d66e740f07ab16fed3035783cc
iuc
parents:
diff changeset
48 <param name="adata" value="tiny_adata.h5ad"/>
b0ea90bddf66 planemo upload for repository https://github.com/Teichlab/drug2cell commit 9c3372b3af7b42d66e740f07ab16fed3035783cc
iuc
parents:
diff changeset
49 <output name="d2c_output" file="d2c_output.h5ad">
b0ea90bddf66 planemo upload for repository https://github.com/Teichlab/drug2cell commit 9c3372b3af7b42d66e740f07ab16fed3035783cc
iuc
parents:
diff changeset
50 <assert_contents>
b0ea90bddf66 planemo upload for repository https://github.com/Teichlab/drug2cell commit 9c3372b3af7b42d66e740f07ab16fed3035783cc
iuc
parents:
diff changeset
51 <has_h5_keys keys="obs,var"/>
b0ea90bddf66 planemo upload for repository https://github.com/Teichlab/drug2cell commit 9c3372b3af7b42d66e740f07ab16fed3035783cc
iuc
parents:
diff changeset
52 </assert_contents>
b0ea90bddf66 planemo upload for repository https://github.com/Teichlab/drug2cell commit 9c3372b3af7b42d66e740f07ab16fed3035783cc
iuc
parents:
diff changeset
53 </output>
b0ea90bddf66 planemo upload for repository https://github.com/Teichlab/drug2cell commit 9c3372b3af7b42d66e740f07ab16fed3035783cc
iuc
parents:
diff changeset
54 </test>
b0ea90bddf66 planemo upload for repository https://github.com/Teichlab/drug2cell commit 9c3372b3af7b42d66e740f07ab16fed3035783cc
iuc
parents:
diff changeset
55 </tests>
b0ea90bddf66 planemo upload for repository https://github.com/Teichlab/drug2cell commit 9c3372b3af7b42d66e740f07ab16fed3035783cc
iuc
parents:
diff changeset
56
b0ea90bddf66 planemo upload for repository https://github.com/Teichlab/drug2cell commit 9c3372b3af7b42d66e740f07ab16fed3035783cc
iuc
parents:
diff changeset
57 <help>
b0ea90bddf66 planemo upload for repository https://github.com/Teichlab/drug2cell commit 9c3372b3af7b42d66e740f07ab16fed3035783cc
iuc
parents:
diff changeset
58 <![CDATA[
b0ea90bddf66 planemo upload for repository https://github.com/Teichlab/drug2cell commit 9c3372b3af7b42d66e740f07ab16fed3035783cc
iuc
parents:
diff changeset
59 This tool uses the drug2cell package to score gene groups based on drug-target data from the ChEMBL database.
b0ea90bddf66 planemo upload for repository https://github.com/Teichlab/drug2cell commit 9c3372b3af7b42d66e740f07ab16fed3035783cc
iuc
parents:
diff changeset
60 It performs differential expression analysis to identify gene groups up-regulated in particular clusters.
b0ea90bddf66 planemo upload for repository https://github.com/Teichlab/drug2cell commit 9c3372b3af7b42d66e740f07ab16fed3035783cc
iuc
parents:
diff changeset
61 ]]>
b0ea90bddf66 planemo upload for repository https://github.com/Teichlab/drug2cell commit 9c3372b3af7b42d66e740f07ab16fed3035783cc
iuc
parents:
diff changeset
62 </help>
b0ea90bddf66 planemo upload for repository https://github.com/Teichlab/drug2cell commit 9c3372b3af7b42d66e740f07ab16fed3035783cc
iuc
parents:
diff changeset
63
b0ea90bddf66 planemo upload for repository https://github.com/Teichlab/drug2cell commit 9c3372b3af7b42d66e740f07ab16fed3035783cc
iuc
parents:
diff changeset
64
b0ea90bddf66 planemo upload for repository https://github.com/Teichlab/drug2cell commit 9c3372b3af7b42d66e740f07ab16fed3035783cc
iuc
parents:
diff changeset
65 <citations>
b0ea90bddf66 planemo upload for repository https://github.com/Teichlab/drug2cell commit 9c3372b3af7b42d66e740f07ab16fed3035783cc
iuc
parents:
diff changeset
66 <citation type="doi">10.1038/s41586-023-06311-1</citation>
b0ea90bddf66 planemo upload for repository https://github.com/Teichlab/drug2cell commit 9c3372b3af7b42d66e740f07ab16fed3035783cc
iuc
parents:
diff changeset
67 </citations>
b0ea90bddf66 planemo upload for repository https://github.com/Teichlab/drug2cell commit 9c3372b3af7b42d66e740f07ab16fed3035783cc
iuc
parents:
diff changeset
68 </tool>
b0ea90bddf66 planemo upload for repository https://github.com/Teichlab/drug2cell commit 9c3372b3af7b42d66e740f07ab16fed3035783cc
iuc
parents:
diff changeset
69
b0ea90bddf66 planemo upload for repository https://github.com/Teichlab/drug2cell commit 9c3372b3af7b42d66e740f07ab16fed3035783cc
iuc
parents:
diff changeset
70