Mercurial > repos > iuc > mudata_import_export
annotate mudata_import_export.xml @ 4:aa9162c059b3 draft default tip
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/main/tools/muon commit fef10e0d450018d1e6ba4cbbda76c7686edc8aae
| author | iuc |
|---|---|
| date | Sat, 25 Oct 2025 21:00:59 +0000 |
| parents | 089a6101d5d9 |
| children |
| rev | line source |
|---|---|
|
0
089a6101d5d9
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/muon/ commit bcf2ec32c3d13b29da55e0e638da7ddd7162c436
iuc
parents:
diff
changeset
|
1 <tool id="mudata_import_export" name="MuData import and export" version="@TOOL_VERSION@+galaxy@VERSION_SUFFIX@" profile="@PROFILE@"> |
|
089a6101d5d9
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/muon/ commit bcf2ec32c3d13b29da55e0e638da7ddd7162c436
iuc
parents:
diff
changeset
|
2 <macros> |
|
089a6101d5d9
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/muon/ commit bcf2ec32c3d13b29da55e0e638da7ddd7162c436
iuc
parents:
diff
changeset
|
3 <import>macros.xml</import> |
|
089a6101d5d9
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/muon/ commit bcf2ec32c3d13b29da55e0e638da7ddd7162c436
iuc
parents:
diff
changeset
|
4 </macros> |
|
089a6101d5d9
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/muon/ commit bcf2ec32c3d13b29da55e0e638da7ddd7162c436
iuc
parents:
diff
changeset
|
5 <expand macro="bio_tools"/> |
|
089a6101d5d9
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/muon/ commit bcf2ec32c3d13b29da55e0e638da7ddd7162c436
iuc
parents:
diff
changeset
|
6 <expand macro="requirements"/> |
|
089a6101d5d9
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/muon/ commit bcf2ec32c3d13b29da55e0e638da7ddd7162c436
iuc
parents:
diff
changeset
|
7 <expand macro="version_command"/> |
|
089a6101d5d9
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/muon/ commit bcf2ec32c3d13b29da55e0e638da7ddd7162c436
iuc
parents:
diff
changeset
|
8 <command detect_errors="exit_code"><![CDATA[ |
|
089a6101d5d9
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/muon/ commit bcf2ec32c3d13b29da55e0e638da7ddd7162c436
iuc
parents:
diff
changeset
|
9 @CMD@ |
|
089a6101d5d9
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/muon/ commit bcf2ec32c3d13b29da55e0e638da7ddd7162c436
iuc
parents:
diff
changeset
|
10 ]]></command> |
|
089a6101d5d9
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/muon/ commit bcf2ec32c3d13b29da55e0e638da7ddd7162c436
iuc
parents:
diff
changeset
|
11 <configfiles> |
|
089a6101d5d9
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/muon/ commit bcf2ec32c3d13b29da55e0e638da7ddd7162c436
iuc
parents:
diff
changeset
|
12 <configfile name="script_file"><![CDATA[ |
|
089a6101d5d9
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/muon/ commit bcf2ec32c3d13b29da55e0e638da7ddd7162c436
iuc
parents:
diff
changeset
|
13 @CMD_imports@ |
|
089a6101d5d9
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/muon/ commit bcf2ec32c3d13b29da55e0e638da7ddd7162c436
iuc
parents:
diff
changeset
|
14 #if $operation.mode == 'import' |
|
089a6101d5d9
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/muon/ commit bcf2ec32c3d13b29da55e0e638da7ddd7162c436
iuc
parents:
diff
changeset
|
15 import anndata as ad |
|
089a6101d5d9
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/muon/ commit bcf2ec32c3d13b29da55e0e638da7ddd7162c436
iuc
parents:
diff
changeset
|
16 |
|
089a6101d5d9
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/muon/ commit bcf2ec32c3d13b29da55e0e638da7ddd7162c436
iuc
parents:
diff
changeset
|
17 mdata = mu.MuData({ |
|
089a6101d5d9
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/muon/ commit bcf2ec32c3d13b29da55e0e638da7ddd7162c436
iuc
parents:
diff
changeset
|
18 #for $modality in $operation.modalities |
|
089a6101d5d9
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/muon/ commit bcf2ec32c3d13b29da55e0e638da7ddd7162c436
iuc
parents:
diff
changeset
|
19 '$modality.name': ad.read_h5ad('$modality.anndata'), |
|
089a6101d5d9
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/muon/ commit bcf2ec32c3d13b29da55e0e638da7ddd7162c436
iuc
parents:
diff
changeset
|
20 #end for |
|
089a6101d5d9
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/muon/ commit bcf2ec32c3d13b29da55e0e638da7ddd7162c436
iuc
parents:
diff
changeset
|
21 }) |
|
089a6101d5d9
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/muon/ commit bcf2ec32c3d13b29da55e0e638da7ddd7162c436
iuc
parents:
diff
changeset
|
22 #if $make_unique |
|
089a6101d5d9
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/muon/ commit bcf2ec32c3d13b29da55e0e638da7ddd7162c436
iuc
parents:
diff
changeset
|
23 mdata.var_names_make_unique() |
|
089a6101d5d9
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/muon/ commit bcf2ec32c3d13b29da55e0e638da7ddd7162c436
iuc
parents:
diff
changeset
|
24 #end if |
|
089a6101d5d9
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/muon/ commit bcf2ec32c3d13b29da55e0e638da7ddd7162c436
iuc
parents:
diff
changeset
|
25 mdata.write_h5mu('mudata.h5mu') |
|
089a6101d5d9
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/muon/ commit bcf2ec32c3d13b29da55e0e638da7ddd7162c436
iuc
parents:
diff
changeset
|
26 |
|
089a6101d5d9
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/muon/ commit bcf2ec32c3d13b29da55e0e638da7ddd7162c436
iuc
parents:
diff
changeset
|
27 #else if $operation.mode == 'export' |
|
089a6101d5d9
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/muon/ commit bcf2ec32c3d13b29da55e0e638da7ddd7162c436
iuc
parents:
diff
changeset
|
28 mdata = mu.read_h5mu('$operation.mudata_in') |
|
089a6101d5d9
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/muon/ commit bcf2ec32c3d13b29da55e0e638da7ddd7162c436
iuc
parents:
diff
changeset
|
29 for mod in mdata.mod: |
|
089a6101d5d9
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/muon/ commit bcf2ec32c3d13b29da55e0e638da7ddd7162c436
iuc
parents:
diff
changeset
|
30 mdata[mod].write_h5ad(mod + '.h5ad') |
|
089a6101d5d9
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/muon/ commit bcf2ec32c3d13b29da55e0e638da7ddd7162c436
iuc
parents:
diff
changeset
|
31 |
|
089a6101d5d9
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/muon/ commit bcf2ec32c3d13b29da55e0e638da7ddd7162c436
iuc
parents:
diff
changeset
|
32 #end if |
|
089a6101d5d9
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/muon/ commit bcf2ec32c3d13b29da55e0e638da7ddd7162c436
iuc
parents:
diff
changeset
|
33 |
|
089a6101d5d9
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/muon/ commit bcf2ec32c3d13b29da55e0e638da7ddd7162c436
iuc
parents:
diff
changeset
|
34 ]]></configfile> |
|
089a6101d5d9
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/muon/ commit bcf2ec32c3d13b29da55e0e638da7ddd7162c436
iuc
parents:
diff
changeset
|
35 </configfiles> |
|
089a6101d5d9
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/muon/ commit bcf2ec32c3d13b29da55e0e638da7ddd7162c436
iuc
parents:
diff
changeset
|
36 <inputs> |
|
089a6101d5d9
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/muon/ commit bcf2ec32c3d13b29da55e0e638da7ddd7162c436
iuc
parents:
diff
changeset
|
37 <conditional name="operation"> |
|
089a6101d5d9
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/muon/ commit bcf2ec32c3d13b29da55e0e638da7ddd7162c436
iuc
parents:
diff
changeset
|
38 <param name="mode" type="select" label="Mode of operation"> |
|
089a6101d5d9
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/muon/ commit bcf2ec32c3d13b29da55e0e638da7ddd7162c436
iuc
parents:
diff
changeset
|
39 <option value="import" selected="true">Import multiple Anndata objects into a MuData object</option> |
|
089a6101d5d9
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/muon/ commit bcf2ec32c3d13b29da55e0e638da7ddd7162c436
iuc
parents:
diff
changeset
|
40 <option value="export">Export Anndata objects from a MuData objects</option> |
|
089a6101d5d9
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/muon/ commit bcf2ec32c3d13b29da55e0e638da7ddd7162c436
iuc
parents:
diff
changeset
|
41 </param> |
|
089a6101d5d9
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/muon/ commit bcf2ec32c3d13b29da55e0e638da7ddd7162c436
iuc
parents:
diff
changeset
|
42 <when value="import"> |
|
089a6101d5d9
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/muon/ commit bcf2ec32c3d13b29da55e0e638da7ddd7162c436
iuc
parents:
diff
changeset
|
43 <repeat name="modalities" title="Modalities" min="2" default="2"> |
|
089a6101d5d9
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/muon/ commit bcf2ec32c3d13b29da55e0e638da7ddd7162c436
iuc
parents:
diff
changeset
|
44 <param name="name" type="text" label="Modality name" value="" |
|
089a6101d5d9
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/muon/ commit bcf2ec32c3d13b29da55e0e638da7ddd7162c436
iuc
parents:
diff
changeset
|
45 help="Name to give for the modality in the MuData object"> |
|
089a6101d5d9
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/muon/ commit bcf2ec32c3d13b29da55e0e638da7ddd7162c436
iuc
parents:
diff
changeset
|
46 <expand macro="sanitize_string" /> |
|
089a6101d5d9
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/muon/ commit bcf2ec32c3d13b29da55e0e638da7ddd7162c436
iuc
parents:
diff
changeset
|
47 </param> |
|
089a6101d5d9
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/muon/ commit bcf2ec32c3d13b29da55e0e638da7ddd7162c436
iuc
parents:
diff
changeset
|
48 <param name="anndata" type="data" format="h5ad" label="Anndata object for the modality"/> |
|
089a6101d5d9
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/muon/ commit bcf2ec32c3d13b29da55e0e638da7ddd7162c436
iuc
parents:
diff
changeset
|
49 </repeat> |
|
089a6101d5d9
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/muon/ commit bcf2ec32c3d13b29da55e0e638da7ddd7162c436
iuc
parents:
diff
changeset
|
50 <param name="make_unique" type="boolean" truevalue="True" falsevalue="False" checked="true" label="Make variable names unique?"/> |
|
089a6101d5d9
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/muon/ commit bcf2ec32c3d13b29da55e0e638da7ddd7162c436
iuc
parents:
diff
changeset
|
51 </when> |
|
089a6101d5d9
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/muon/ commit bcf2ec32c3d13b29da55e0e638da7ddd7162c436
iuc
parents:
diff
changeset
|
52 <when value="export"> |
|
089a6101d5d9
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/muon/ commit bcf2ec32c3d13b29da55e0e638da7ddd7162c436
iuc
parents:
diff
changeset
|
53 <param name="mudata_in" type="data" format="h5ad" label="Multimodal MuData object"/> |
|
089a6101d5d9
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/muon/ commit bcf2ec32c3d13b29da55e0e638da7ddd7162c436
iuc
parents:
diff
changeset
|
54 </when> |
|
089a6101d5d9
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/muon/ commit bcf2ec32c3d13b29da55e0e638da7ddd7162c436
iuc
parents:
diff
changeset
|
55 </conditional> |
|
089a6101d5d9
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/muon/ commit bcf2ec32c3d13b29da55e0e638da7ddd7162c436
iuc
parents:
diff
changeset
|
56 <expand macro="inputs_common_advanced" /> |
|
089a6101d5d9
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/muon/ commit bcf2ec32c3d13b29da55e0e638da7ddd7162c436
iuc
parents:
diff
changeset
|
57 </inputs> |
|
089a6101d5d9
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/muon/ commit bcf2ec32c3d13b29da55e0e638da7ddd7162c436
iuc
parents:
diff
changeset
|
58 <outputs> |
|
089a6101d5d9
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/muon/ commit bcf2ec32c3d13b29da55e0e638da7ddd7162c436
iuc
parents:
diff
changeset
|
59 <data name="mudata_out" format="h5ad" from_work_dir="mudata.h5mu" label="MuData object built from ${on_string}"> |
|
089a6101d5d9
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/muon/ commit bcf2ec32c3d13b29da55e0e638da7ddd7162c436
iuc
parents:
diff
changeset
|
60 <filter>operation['mode'] == 'import' </filter> |
|
089a6101d5d9
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/muon/ commit bcf2ec32c3d13b29da55e0e638da7ddd7162c436
iuc
parents:
diff
changeset
|
61 </data> |
|
089a6101d5d9
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/muon/ commit bcf2ec32c3d13b29da55e0e638da7ddd7162c436
iuc
parents:
diff
changeset
|
62 <collection name="collection_anndata" type="list" label="Anndata objects extracted from ${on_string}"> |
|
089a6101d5d9
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/muon/ commit bcf2ec32c3d13b29da55e0e638da7ddd7162c436
iuc
parents:
diff
changeset
|
63 <discover_datasets pattern="(?P<designation>.*).h5ad" format="h5ad"/> |
|
089a6101d5d9
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/muon/ commit bcf2ec32c3d13b29da55e0e638da7ddd7162c436
iuc
parents:
diff
changeset
|
64 <filter>operation['mode'] == 'export' </filter> |
|
089a6101d5d9
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/muon/ commit bcf2ec32c3d13b29da55e0e638da7ddd7162c436
iuc
parents:
diff
changeset
|
65 </collection> |
|
089a6101d5d9
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/muon/ commit bcf2ec32c3d13b29da55e0e638da7ddd7162c436
iuc
parents:
diff
changeset
|
66 <expand macro="outputs_common_advanced"/> |
|
089a6101d5d9
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/muon/ commit bcf2ec32c3d13b29da55e0e638da7ddd7162c436
iuc
parents:
diff
changeset
|
67 </outputs> |
|
089a6101d5d9
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/muon/ commit bcf2ec32c3d13b29da55e0e638da7ddd7162c436
iuc
parents:
diff
changeset
|
68 <tests> |
|
089a6101d5d9
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/muon/ commit bcf2ec32c3d13b29da55e0e638da7ddd7162c436
iuc
parents:
diff
changeset
|
69 <test expect_num_outputs="2"> |
|
089a6101d5d9
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/muon/ commit bcf2ec32c3d13b29da55e0e638da7ddd7162c436
iuc
parents:
diff
changeset
|
70 <!--Import test for RNA and ATAC modalities--> |
|
089a6101d5d9
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/muon/ commit bcf2ec32c3d13b29da55e0e638da7ddd7162c436
iuc
parents:
diff
changeset
|
71 <conditional name="operation"> |
|
089a6101d5d9
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/muon/ commit bcf2ec32c3d13b29da55e0e638da7ddd7162c436
iuc
parents:
diff
changeset
|
72 <param name="mode" value="import"/> |
|
089a6101d5d9
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/muon/ commit bcf2ec32c3d13b29da55e0e638da7ddd7162c436
iuc
parents:
diff
changeset
|
73 <repeat name="modalities"> |
|
089a6101d5d9
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/muon/ commit bcf2ec32c3d13b29da55e0e638da7ddd7162c436
iuc
parents:
diff
changeset
|
74 <param name="name" value="RNA"/> |
|
089a6101d5d9
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/muon/ commit bcf2ec32c3d13b29da55e0e638da7ddd7162c436
iuc
parents:
diff
changeset
|
75 <param name="anndata" location="https://zenodo.org/records/12570984/files/rna.h5ad"/> |
|
089a6101d5d9
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/muon/ commit bcf2ec32c3d13b29da55e0e638da7ddd7162c436
iuc
parents:
diff
changeset
|
76 </repeat> |
|
089a6101d5d9
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/muon/ commit bcf2ec32c3d13b29da55e0e638da7ddd7162c436
iuc
parents:
diff
changeset
|
77 <repeat name="modalities"> |
|
089a6101d5d9
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/muon/ commit bcf2ec32c3d13b29da55e0e638da7ddd7162c436
iuc
parents:
diff
changeset
|
78 <param name="name" value="ATAC"/> |
|
089a6101d5d9
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/muon/ commit bcf2ec32c3d13b29da55e0e638da7ddd7162c436
iuc
parents:
diff
changeset
|
79 <param name="anndata" location="https://zenodo.org/records/12570984/files/atac.h5ad"/> |
|
089a6101d5d9
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/muon/ commit bcf2ec32c3d13b29da55e0e638da7ddd7162c436
iuc
parents:
diff
changeset
|
80 </repeat> |
|
089a6101d5d9
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/muon/ commit bcf2ec32c3d13b29da55e0e638da7ddd7162c436
iuc
parents:
diff
changeset
|
81 <param name="make_unique" value="True"/> |
|
089a6101d5d9
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/muon/ commit bcf2ec32c3d13b29da55e0e638da7ddd7162c436
iuc
parents:
diff
changeset
|
82 </conditional> |
|
089a6101d5d9
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/muon/ commit bcf2ec32c3d13b29da55e0e638da7ddd7162c436
iuc
parents:
diff
changeset
|
83 <section name="advanced_common"> |
|
089a6101d5d9
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/muon/ commit bcf2ec32c3d13b29da55e0e638da7ddd7162c436
iuc
parents:
diff
changeset
|
84 <param name="show_log" value="true" /> |
|
089a6101d5d9
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/muon/ commit bcf2ec32c3d13b29da55e0e638da7ddd7162c436
iuc
parents:
diff
changeset
|
85 </section> |
|
089a6101d5d9
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/muon/ commit bcf2ec32c3d13b29da55e0e638da7ddd7162c436
iuc
parents:
diff
changeset
|
86 <output name="hidden_output"> |
|
089a6101d5d9
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/muon/ commit bcf2ec32c3d13b29da55e0e638da7ddd7162c436
iuc
parents:
diff
changeset
|
87 <assert_contents> |
|
089a6101d5d9
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/muon/ commit bcf2ec32c3d13b29da55e0e638da7ddd7162c436
iuc
parents:
diff
changeset
|
88 <has_text_matching expression="mu.MuData"/> |
|
089a6101d5d9
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/muon/ commit bcf2ec32c3d13b29da55e0e638da7ddd7162c436
iuc
parents:
diff
changeset
|
89 <has_text_matching expression="'RNA': ad.read"/> |
|
089a6101d5d9
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/muon/ commit bcf2ec32c3d13b29da55e0e638da7ddd7162c436
iuc
parents:
diff
changeset
|
90 <has_text_matching expression="'ATAC': ad.read"/> |
|
089a6101d5d9
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/muon/ commit bcf2ec32c3d13b29da55e0e638da7ddd7162c436
iuc
parents:
diff
changeset
|
91 <has_text_matching expression="var_names_make_unique()"/> |
|
089a6101d5d9
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/muon/ commit bcf2ec32c3d13b29da55e0e638da7ddd7162c436
iuc
parents:
diff
changeset
|
92 </assert_contents> |
|
089a6101d5d9
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/muon/ commit bcf2ec32c3d13b29da55e0e638da7ddd7162c436
iuc
parents:
diff
changeset
|
93 </output> |
|
089a6101d5d9
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/muon/ commit bcf2ec32c3d13b29da55e0e638da7ddd7162c436
iuc
parents:
diff
changeset
|
94 <output name="mudata_out" ftype="h5ad"> |
|
089a6101d5d9
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/muon/ commit bcf2ec32c3d13b29da55e0e638da7ddd7162c436
iuc
parents:
diff
changeset
|
95 <assert_contents> |
|
089a6101d5d9
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/muon/ commit bcf2ec32c3d13b29da55e0e638da7ddd7162c436
iuc
parents:
diff
changeset
|
96 <has_h5_keys keys="mod/RNA"/> |
|
089a6101d5d9
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/muon/ commit bcf2ec32c3d13b29da55e0e638da7ddd7162c436
iuc
parents:
diff
changeset
|
97 <has_h5_keys keys="mod/ATAC"/> |
|
089a6101d5d9
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/muon/ commit bcf2ec32c3d13b29da55e0e638da7ddd7162c436
iuc
parents:
diff
changeset
|
98 <has_h5_keys keys="var/feature_types"/> |
|
089a6101d5d9
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/muon/ commit bcf2ec32c3d13b29da55e0e638da7ddd7162c436
iuc
parents:
diff
changeset
|
99 </assert_contents> |
|
089a6101d5d9
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/muon/ commit bcf2ec32c3d13b29da55e0e638da7ddd7162c436
iuc
parents:
diff
changeset
|
100 </output> |
|
089a6101d5d9
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/muon/ commit bcf2ec32c3d13b29da55e0e638da7ddd7162c436
iuc
parents:
diff
changeset
|
101 </test> |
|
089a6101d5d9
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/muon/ commit bcf2ec32c3d13b29da55e0e638da7ddd7162c436
iuc
parents:
diff
changeset
|
102 <test expect_num_outputs="2"> |
|
089a6101d5d9
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/muon/ commit bcf2ec32c3d13b29da55e0e638da7ddd7162c436
iuc
parents:
diff
changeset
|
103 <!--Export test for RNA and ATAC modalities--> |
|
089a6101d5d9
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/muon/ commit bcf2ec32c3d13b29da55e0e638da7ddd7162c436
iuc
parents:
diff
changeset
|
104 <conditional name="operation"> |
|
089a6101d5d9
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/muon/ commit bcf2ec32c3d13b29da55e0e638da7ddd7162c436
iuc
parents:
diff
changeset
|
105 <param name="mode" value="export"/> |
|
089a6101d5d9
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/muon/ commit bcf2ec32c3d13b29da55e0e638da7ddd7162c436
iuc
parents:
diff
changeset
|
106 <param name="mudata_in" location="https://zenodo.org/records/12570984/files/rna_atac.h5mu"/> |
|
089a6101d5d9
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/muon/ commit bcf2ec32c3d13b29da55e0e638da7ddd7162c436
iuc
parents:
diff
changeset
|
107 </conditional> |
|
089a6101d5d9
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/muon/ commit bcf2ec32c3d13b29da55e0e638da7ddd7162c436
iuc
parents:
diff
changeset
|
108 <section name="advanced_common"> |
|
089a6101d5d9
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/muon/ commit bcf2ec32c3d13b29da55e0e638da7ddd7162c436
iuc
parents:
diff
changeset
|
109 <param name="show_log" value="true" /> |
|
089a6101d5d9
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/muon/ commit bcf2ec32c3d13b29da55e0e638da7ddd7162c436
iuc
parents:
diff
changeset
|
110 </section> |
|
089a6101d5d9
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/muon/ commit bcf2ec32c3d13b29da55e0e638da7ddd7162c436
iuc
parents:
diff
changeset
|
111 <output name="hidden_output"> |
|
089a6101d5d9
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/muon/ commit bcf2ec32c3d13b29da55e0e638da7ddd7162c436
iuc
parents:
diff
changeset
|
112 <assert_contents> |
|
089a6101d5d9
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/muon/ commit bcf2ec32c3d13b29da55e0e638da7ddd7162c436
iuc
parents:
diff
changeset
|
113 <has_text_matching expression="mu.read_h5mu"/> |
|
089a6101d5d9
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/muon/ commit bcf2ec32c3d13b29da55e0e638da7ddd7162c436
iuc
parents:
diff
changeset
|
114 <has_text_matching expression="write_h5ad"/> |
|
089a6101d5d9
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/muon/ commit bcf2ec32c3d13b29da55e0e638da7ddd7162c436
iuc
parents:
diff
changeset
|
115 </assert_contents> |
|
089a6101d5d9
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/muon/ commit bcf2ec32c3d13b29da55e0e638da7ddd7162c436
iuc
parents:
diff
changeset
|
116 </output> |
|
089a6101d5d9
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/muon/ commit bcf2ec32c3d13b29da55e0e638da7ddd7162c436
iuc
parents:
diff
changeset
|
117 <output_collection name="collection_anndata" type="list" count="2"> |
|
089a6101d5d9
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/muon/ commit bcf2ec32c3d13b29da55e0e638da7ddd7162c436
iuc
parents:
diff
changeset
|
118 <element name="ATAC" ftype="h5ad"> |
|
089a6101d5d9
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/muon/ commit bcf2ec32c3d13b29da55e0e638da7ddd7162c436
iuc
parents:
diff
changeset
|
119 <assert_contents> |
|
089a6101d5d9
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/muon/ commit bcf2ec32c3d13b29da55e0e638da7ddd7162c436
iuc
parents:
diff
changeset
|
120 <has_h5_keys keys="var/gene_ids"/> |
|
089a6101d5d9
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/muon/ commit bcf2ec32c3d13b29da55e0e638da7ddd7162c436
iuc
parents:
diff
changeset
|
121 <has_h5_keys keys="uns/neighbors"/> |
|
089a6101d5d9
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/muon/ commit bcf2ec32c3d13b29da55e0e638da7ddd7162c436
iuc
parents:
diff
changeset
|
122 <has_h5_keys keys="obsp/connectivities"/> |
|
089a6101d5d9
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/muon/ commit bcf2ec32c3d13b29da55e0e638da7ddd7162c436
iuc
parents:
diff
changeset
|
123 </assert_contents> |
|
089a6101d5d9
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/muon/ commit bcf2ec32c3d13b29da55e0e638da7ddd7162c436
iuc
parents:
diff
changeset
|
124 </element> |
|
089a6101d5d9
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/muon/ commit bcf2ec32c3d13b29da55e0e638da7ddd7162c436
iuc
parents:
diff
changeset
|
125 <element name="RNA" ftype="h5ad"> |
|
089a6101d5d9
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/muon/ commit bcf2ec32c3d13b29da55e0e638da7ddd7162c436
iuc
parents:
diff
changeset
|
126 <assert_contents> |
|
089a6101d5d9
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/muon/ commit bcf2ec32c3d13b29da55e0e638da7ddd7162c436
iuc
parents:
diff
changeset
|
127 <has_h5_keys keys="var/gene_ids"/> |
|
089a6101d5d9
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/muon/ commit bcf2ec32c3d13b29da55e0e638da7ddd7162c436
iuc
parents:
diff
changeset
|
128 <has_h5_keys keys="uns/neighbors"/> |
|
089a6101d5d9
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/muon/ commit bcf2ec32c3d13b29da55e0e638da7ddd7162c436
iuc
parents:
diff
changeset
|
129 <has_h5_keys keys="obsp/connectivities"/> |
|
089a6101d5d9
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/muon/ commit bcf2ec32c3d13b29da55e0e638da7ddd7162c436
iuc
parents:
diff
changeset
|
130 </assert_contents> |
|
089a6101d5d9
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/muon/ commit bcf2ec32c3d13b29da55e0e638da7ddd7162c436
iuc
parents:
diff
changeset
|
131 </element> |
|
089a6101d5d9
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/muon/ commit bcf2ec32c3d13b29da55e0e638da7ddd7162c436
iuc
parents:
diff
changeset
|
132 </output_collection> |
|
089a6101d5d9
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/muon/ commit bcf2ec32c3d13b29da55e0e638da7ddd7162c436
iuc
parents:
diff
changeset
|
133 </test> |
|
089a6101d5d9
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/muon/ commit bcf2ec32c3d13b29da55e0e638da7ddd7162c436
iuc
parents:
diff
changeset
|
134 </tests> |
|
089a6101d5d9
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/muon/ commit bcf2ec32c3d13b29da55e0e638da7ddd7162c436
iuc
parents:
diff
changeset
|
135 <help><![CDATA[ |
|
089a6101d5d9
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/muon/ commit bcf2ec32c3d13b29da55e0e638da7ddd7162c436
iuc
parents:
diff
changeset
|
136 **What it does** |
|
089a6101d5d9
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/muon/ commit bcf2ec32c3d13b29da55e0e638da7ddd7162c436
iuc
parents:
diff
changeset
|
137 Create MuData from AnnData is a tool that allows creating a muon.MuData object out of two or more AnnData objects |
|
089a6101d5d9
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/muon/ commit bcf2ec32c3d13b29da55e0e638da7ddd7162c436
iuc
parents:
diff
changeset
|
138 for multimodal analysis. The multimodal data is created by combining AnnData objects as |
|
089a6101d5d9
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/muon/ commit bcf2ec32c3d13b29da55e0e638da7ddd7162c436
iuc
parents:
diff
changeset
|
139 h5ad files into a MuData object as a h5mu file using muon. |
|
089a6101d5d9
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/muon/ commit bcf2ec32c3d13b29da55e0e638da7ddd7162c436
iuc
parents:
diff
changeset
|
140 Furthermore, it runs pp.intersect_obs to keep only entries present in both modalities (AnnData objects) in the |
|
089a6101d5d9
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/muon/ commit bcf2ec32c3d13b29da55e0e638da7ddd7162c436
iuc
parents:
diff
changeset
|
141 final MuData file. |
|
089a6101d5d9
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/muon/ commit bcf2ec32c3d13b29da55e0e638da7ddd7162c436
iuc
parents:
diff
changeset
|
142 ]]></help> |
|
089a6101d5d9
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/muon/ commit bcf2ec32c3d13b29da55e0e638da7ddd7162c436
iuc
parents:
diff
changeset
|
143 <expand macro="citations"/> |
|
089a6101d5d9
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/muon/ commit bcf2ec32c3d13b29da55e0e638da7ddd7162c436
iuc
parents:
diff
changeset
|
144 </tool> |
