Mercurial > repos > iuc > cosg
annotate macros.xml @ 1:fe5996e87b41 draft default tip
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/cosg/ commit d1eee788f207ac0077cb5fea82a3f32cc4980e40
author | iuc |
---|---|
date | Tue, 05 Nov 2024 13:32:17 +0000 |
parents | cf880680fd0b |
children |
rev | line source |
---|---|
0
cf880680fd0b
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/cosg/ commit 2e477dea2f014c265e6a2c6d25432d0e2bace733
iuc
parents:
diff
changeset
|
1 <macros> |
cf880680fd0b
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/cosg/ commit 2e477dea2f014c265e6a2c6d25432d0e2bace733
iuc
parents:
diff
changeset
|
2 <token name="@TOOL_VERSION@">1.0.1</token> |
cf880680fd0b
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/cosg/ commit 2e477dea2f014c265e6a2c6d25432d0e2bace733
iuc
parents:
diff
changeset
|
3 <token name="@VERSION_SUFFIX@">0</token> |
cf880680fd0b
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/cosg/ commit 2e477dea2f014c265e6a2c6d25432d0e2bace733
iuc
parents:
diff
changeset
|
4 <token name="@profile@">22.05</token> |
cf880680fd0b
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/cosg/ commit 2e477dea2f014c265e6a2c6d25432d0e2bace733
iuc
parents:
diff
changeset
|
5 <xml name="requirements"> |
cf880680fd0b
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/cosg/ commit 2e477dea2f014c265e6a2c6d25432d0e2bace733
iuc
parents:
diff
changeset
|
6 <requirements> |
cf880680fd0b
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/cosg/ commit 2e477dea2f014c265e6a2c6d25432d0e2bace733
iuc
parents:
diff
changeset
|
7 <requirement type="package" version="@TOOL_VERSION@">cosg</requirement> |
cf880680fd0b
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/cosg/ commit 2e477dea2f014c265e6a2c6d25432d0e2bace733
iuc
parents:
diff
changeset
|
8 <requirement type="package" version="1.9.8">scanpy</requirement> |
cf880680fd0b
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/cosg/ commit 2e477dea2f014c265e6a2c6d25432d0e2bace733
iuc
parents:
diff
changeset
|
9 <requirement type="package" version="1.5.3">pandas</requirement> |
cf880680fd0b
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/cosg/ commit 2e477dea2f014c265e6a2c6d25432d0e2bace733
iuc
parents:
diff
changeset
|
10 <requirement type="package" version="3.7">matplotlib</requirement> |
cf880680fd0b
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/cosg/ commit 2e477dea2f014c265e6a2c6d25432d0e2bace733
iuc
parents:
diff
changeset
|
11 <requirement type="package" version="0.12.2">seaborn</requirement> |
cf880680fd0b
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/cosg/ commit 2e477dea2f014c265e6a2c6d25432d0e2bace733
iuc
parents:
diff
changeset
|
12 <yield /> |
cf880680fd0b
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/cosg/ commit 2e477dea2f014c265e6a2c6d25432d0e2bace733
iuc
parents:
diff
changeset
|
13 </requirements> |
cf880680fd0b
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/cosg/ commit 2e477dea2f014c265e6a2c6d25432d0e2bace733
iuc
parents:
diff
changeset
|
14 </xml> |
cf880680fd0b
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/cosg/ commit 2e477dea2f014c265e6a2c6d25432d0e2bace733
iuc
parents:
diff
changeset
|
15 <xml name="creators"> |
cf880680fd0b
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/cosg/ commit 2e477dea2f014c265e6a2c6d25432d0e2bace733
iuc
parents:
diff
changeset
|
16 <creator> |
cf880680fd0b
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/cosg/ commit 2e477dea2f014c265e6a2c6d25432d0e2bace733
iuc
parents:
diff
changeset
|
17 <organization name="European Galaxy Team" url="https://galaxyproject.org/eu/" /> |
cf880680fd0b
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/cosg/ commit 2e477dea2f014c265e6a2c6d25432d0e2bace733
iuc
parents:
diff
changeset
|
18 </creator> |
cf880680fd0b
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/cosg/ commit 2e477dea2f014c265e6a2c6d25432d0e2bace733
iuc
parents:
diff
changeset
|
19 </xml> |
cf880680fd0b
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/cosg/ commit 2e477dea2f014c265e6a2c6d25432d0e2bace733
iuc
parents:
diff
changeset
|
20 <xml name="citations"> |
cf880680fd0b
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/cosg/ commit 2e477dea2f014c265e6a2c6d25432d0e2bace733
iuc
parents:
diff
changeset
|
21 <citations> |
cf880680fd0b
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/cosg/ commit 2e477dea2f014c265e6a2c6d25432d0e2bace733
iuc
parents:
diff
changeset
|
22 <citation type="doi">10.1093/bib/bbab579</citation> |
cf880680fd0b
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/cosg/ commit 2e477dea2f014c265e6a2c6d25432d0e2bace733
iuc
parents:
diff
changeset
|
23 <citation type="doi">10.1093/gigascience/giaa102</citation> |
cf880680fd0b
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/cosg/ commit 2e477dea2f014c265e6a2c6d25432d0e2bace733
iuc
parents:
diff
changeset
|
24 </citations> |
cf880680fd0b
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/cosg/ commit 2e477dea2f014c265e6a2c6d25432d0e2bace733
iuc
parents:
diff
changeset
|
25 </xml> |
cf880680fd0b
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/cosg/ commit 2e477dea2f014c265e6a2c6d25432d0e2bace733
iuc
parents:
diff
changeset
|
26 <xml name="version_command"> |
cf880680fd0b
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/cosg/ commit 2e477dea2f014c265e6a2c6d25432d0e2bace733
iuc
parents:
diff
changeset
|
27 <version_command><![CDATA[python -c "import cosg;import importlib.metadata;print('%s' % importlib.metadata.version('cosg'))"]]></version_command> |
cf880680fd0b
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/cosg/ commit 2e477dea2f014c265e6a2c6d25432d0e2bace733
iuc
parents:
diff
changeset
|
28 </xml> |
cf880680fd0b
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/cosg/ commit 2e477dea2f014c265e6a2c6d25432d0e2bace733
iuc
parents:
diff
changeset
|
29 <token name="@CMD@"><![CDATA[ |
cf880680fd0b
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/cosg/ commit 2e477dea2f014c265e6a2c6d25432d0e2bace733
iuc
parents:
diff
changeset
|
30 cp '$adata' 'anndata.h5ad' && |
cf880680fd0b
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/cosg/ commit 2e477dea2f014c265e6a2c6d25432d0e2bace733
iuc
parents:
diff
changeset
|
31 cat '$script_file' > '$hidden_output' && |
cf880680fd0b
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/cosg/ commit 2e477dea2f014c265e6a2c6d25432d0e2bace733
iuc
parents:
diff
changeset
|
32 python '$script_file' >> '$hidden_output' && |
cf880680fd0b
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/cosg/ commit 2e477dea2f014c265e6a2c6d25432d0e2bace733
iuc
parents:
diff
changeset
|
33 ls . >> '$hidden_output' && |
cf880680fd0b
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/cosg/ commit 2e477dea2f014c265e6a2c6d25432d0e2bace733
iuc
parents:
diff
changeset
|
34 touch 'anndata_info.txt' && |
cf880680fd0b
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/cosg/ commit 2e477dea2f014c265e6a2c6d25432d0e2bace733
iuc
parents:
diff
changeset
|
35 cat 'anndata_info.txt' @CMD_prettify_stdout@ |
cf880680fd0b
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/cosg/ commit 2e477dea2f014c265e6a2c6d25432d0e2bace733
iuc
parents:
diff
changeset
|
36 ]]> |
cf880680fd0b
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/cosg/ commit 2e477dea2f014c265e6a2c6d25432d0e2bace733
iuc
parents:
diff
changeset
|
37 </token> |
cf880680fd0b
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/cosg/ commit 2e477dea2f014c265e6a2c6d25432d0e2bace733
iuc
parents:
diff
changeset
|
38 <token name="@CMD_imports@"><![CDATA[ |
cf880680fd0b
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/cosg/ commit 2e477dea2f014c265e6a2c6d25432d0e2bace733
iuc
parents:
diff
changeset
|
39 import scanpy as sc |
cf880680fd0b
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/cosg/ commit 2e477dea2f014c265e6a2c6d25432d0e2bace733
iuc
parents:
diff
changeset
|
40 import pandas as pd |
cf880680fd0b
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/cosg/ commit 2e477dea2f014c265e6a2c6d25432d0e2bace733
iuc
parents:
diff
changeset
|
41 import numpy as np |
cf880680fd0b
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/cosg/ commit 2e477dea2f014c265e6a2c6d25432d0e2bace733
iuc
parents:
diff
changeset
|
42 import cosg |
cf880680fd0b
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/cosg/ commit 2e477dea2f014c265e6a2c6d25432d0e2bace733
iuc
parents:
diff
changeset
|
43 ]]> |
cf880680fd0b
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/cosg/ commit 2e477dea2f014c265e6a2c6d25432d0e2bace733
iuc
parents:
diff
changeset
|
44 </token> |
cf880680fd0b
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/cosg/ commit 2e477dea2f014c265e6a2c6d25432d0e2bace733
iuc
parents:
diff
changeset
|
45 <xml name="sanitize_query" token_validinitial="string.printable"> |
cf880680fd0b
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/cosg/ commit 2e477dea2f014c265e6a2c6d25432d0e2bace733
iuc
parents:
diff
changeset
|
46 <sanitizer> |
cf880680fd0b
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/cosg/ commit 2e477dea2f014c265e6a2c6d25432d0e2bace733
iuc
parents:
diff
changeset
|
47 <valid initial="@VALIDINITIAL@"> |
cf880680fd0b
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/cosg/ commit 2e477dea2f014c265e6a2c6d25432d0e2bace733
iuc
parents:
diff
changeset
|
48 <remove value="'" /> |
cf880680fd0b
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/cosg/ commit 2e477dea2f014c265e6a2c6d25432d0e2bace733
iuc
parents:
diff
changeset
|
49 </valid> |
cf880680fd0b
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/cosg/ commit 2e477dea2f014c265e6a2c6d25432d0e2bace733
iuc
parents:
diff
changeset
|
50 </sanitizer> |
cf880680fd0b
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/cosg/ commit 2e477dea2f014c265e6a2c6d25432d0e2bace733
iuc
parents:
diff
changeset
|
51 </xml> |
cf880680fd0b
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/cosg/ commit 2e477dea2f014c265e6a2c6d25432d0e2bace733
iuc
parents:
diff
changeset
|
52 <xml name="sanitize_vectors" token_validinitial="string.digits"> |
cf880680fd0b
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/cosg/ commit 2e477dea2f014c265e6a2c6d25432d0e2bace733
iuc
parents:
diff
changeset
|
53 <sanitizer> |
cf880680fd0b
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/cosg/ commit 2e477dea2f014c265e6a2c6d25432d0e2bace733
iuc
parents:
diff
changeset
|
54 <valid initial="@VALIDINITIAL@"> |
cf880680fd0b
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/cosg/ commit 2e477dea2f014c265e6a2c6d25432d0e2bace733
iuc
parents:
diff
changeset
|
55 <add value=","/> |
cf880680fd0b
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/cosg/ commit 2e477dea2f014c265e6a2c6d25432d0e2bace733
iuc
parents:
diff
changeset
|
56 </valid> |
cf880680fd0b
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/cosg/ commit 2e477dea2f014c265e6a2c6d25432d0e2bace733
iuc
parents:
diff
changeset
|
57 </sanitizer> |
cf880680fd0b
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/cosg/ commit 2e477dea2f014c265e6a2c6d25432d0e2bace733
iuc
parents:
diff
changeset
|
58 </xml> |
cf880680fd0b
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/cosg/ commit 2e477dea2f014c265e6a2c6d25432d0e2bace733
iuc
parents:
diff
changeset
|
59 <xml name="inputs_anndata"> |
cf880680fd0b
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/cosg/ commit 2e477dea2f014c265e6a2c6d25432d0e2bace733
iuc
parents:
diff
changeset
|
60 <param name="adata" type="data" format="h5ad" label="Annotated data matrix"/> |
cf880680fd0b
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/cosg/ commit 2e477dea2f014c265e6a2c6d25432d0e2bace733
iuc
parents:
diff
changeset
|
61 </xml> |
cf880680fd0b
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/cosg/ commit 2e477dea2f014c265e6a2c6d25432d0e2bace733
iuc
parents:
diff
changeset
|
62 <token name="@CMD_read_inputs@"><![CDATA[ |
cf880680fd0b
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/cosg/ commit 2e477dea2f014c265e6a2c6d25432d0e2bace733
iuc
parents:
diff
changeset
|
63 adata = sc.read_h5ad('anndata.h5ad') |
cf880680fd0b
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/cosg/ commit 2e477dea2f014c265e6a2c6d25432d0e2bace733
iuc
parents:
diff
changeset
|
64 ]]> |
cf880680fd0b
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/cosg/ commit 2e477dea2f014c265e6a2c6d25432d0e2bace733
iuc
parents:
diff
changeset
|
65 </token> |
cf880680fd0b
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/cosg/ commit 2e477dea2f014c265e6a2c6d25432d0e2bace733
iuc
parents:
diff
changeset
|
66 <xml name="inputs_common_advanced"> |
cf880680fd0b
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/cosg/ commit 2e477dea2f014c265e6a2c6d25432d0e2bace733
iuc
parents:
diff
changeset
|
67 <section name="advanced_common" title="Advanced Output Options" expanded="false"> |
cf880680fd0b
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/cosg/ commit 2e477dea2f014c265e6a2c6d25432d0e2bace733
iuc
parents:
diff
changeset
|
68 <param name="show_log" type="boolean" checked="false" label="Output Log?" /> |
cf880680fd0b
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/cosg/ commit 2e477dea2f014c265e6a2c6d25432d0e2bace733
iuc
parents:
diff
changeset
|
69 </section> |
cf880680fd0b
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/cosg/ commit 2e477dea2f014c265e6a2c6d25432d0e2bace733
iuc
parents:
diff
changeset
|
70 </xml> |
cf880680fd0b
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/cosg/ commit 2e477dea2f014c265e6a2c6d25432d0e2bace733
iuc
parents:
diff
changeset
|
71 <xml name="anndata_outputs"> |
cf880680fd0b
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/cosg/ commit 2e477dea2f014c265e6a2c6d25432d0e2bace733
iuc
parents:
diff
changeset
|
72 <data name="anndata_out" format="h5ad" from_work_dir="anndata.h5ad" label="${tool.name} on ${on_string}: Annotated data matrix"/> |
cf880680fd0b
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/cosg/ commit 2e477dea2f014c265e6a2c6d25432d0e2bace733
iuc
parents:
diff
changeset
|
73 <data name="hidden_output" format="txt" label="Log file" > |
cf880680fd0b
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/cosg/ commit 2e477dea2f014c265e6a2c6d25432d0e2bace733
iuc
parents:
diff
changeset
|
74 <filter>advanced_common['show_log']</filter> |
cf880680fd0b
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/cosg/ commit 2e477dea2f014c265e6a2c6d25432d0e2bace733
iuc
parents:
diff
changeset
|
75 </data> |
cf880680fd0b
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/cosg/ commit 2e477dea2f014c265e6a2c6d25432d0e2bace733
iuc
parents:
diff
changeset
|
76 </xml> |
cf880680fd0b
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/cosg/ commit 2e477dea2f014c265e6a2c6d25432d0e2bace733
iuc
parents:
diff
changeset
|
77 <token name="@CMD_anndata_write_outputs@"><![CDATA[ |
cf880680fd0b
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/cosg/ commit 2e477dea2f014c265e6a2c6d25432d0e2bace733
iuc
parents:
diff
changeset
|
78 adata.write_h5ad('anndata.h5ad') |
cf880680fd0b
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/cosg/ commit 2e477dea2f014c265e6a2c6d25432d0e2bace733
iuc
parents:
diff
changeset
|
79 with open('anndata_info.txt','w', encoding='utf-8') as ainfo: |
cf880680fd0b
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/cosg/ commit 2e477dea2f014c265e6a2c6d25432d0e2bace733
iuc
parents:
diff
changeset
|
80 print(adata, file=ainfo) |
cf880680fd0b
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/cosg/ commit 2e477dea2f014c265e6a2c6d25432d0e2bace733
iuc
parents:
diff
changeset
|
81 ]]> |
cf880680fd0b
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/cosg/ commit 2e477dea2f014c265e6a2c6d25432d0e2bace733
iuc
parents:
diff
changeset
|
82 </token> |
cf880680fd0b
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/cosg/ commit 2e477dea2f014c265e6a2c6d25432d0e2bace733
iuc
parents:
diff
changeset
|
83 <token name="@CMD_prettify_stdout@"><![CDATA[ | sed -r '1 s|AnnData object with (.+) = (.*)\s*|\1: \2|g' | sed "s|'||g" | sed -r 's|^\s*(.*):\s(.*)|[\1]\n- \2|g' | sed 's|, |\n- |g' |
cf880680fd0b
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/cosg/ commit 2e477dea2f014c265e6a2c6d25432d0e2bace733
iuc
parents:
diff
changeset
|
84 ]]></token> |
cf880680fd0b
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/cosg/ commit 2e477dea2f014c265e6a2c6d25432d0e2bace733
iuc
parents:
diff
changeset
|
85 </macros> |