annotate macros.xml @ 4:080eab96d846 draft

"planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/anndata/ commit 41e70af176ea64ef0bd45a6e980e21bdba80e739"
author iuc
date Sat, 18 Jan 2020 03:36:57 -0500
parents b5c7ba11401d
children 32e547223c9e
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
0
69e2275406fd planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/anndata/ commit 2e16aca90c4fc6f13bd024eed43bc4adbf5967da
iuc
parents:
diff changeset
1 <macros>
1
a61350ab6563 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/anndata/ commit 8ef5f7c6f8728608a3f05bb51e11b642b84a05f5"
iuc
parents: 0
diff changeset
2 <token name="@VERSION@">0.6.22.post1</token>
4
080eab96d846 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/anndata/ commit 41e70af176ea64ef0bd45a6e980e21bdba80e739"
iuc
parents: 3
diff changeset
3 <token name="@GALAXY_VERSION@">galaxy2</token>
0
69e2275406fd planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/anndata/ commit 2e16aca90c4fc6f13bd024eed43bc4adbf5967da
iuc
parents:
diff changeset
4 <xml name="requirements">
69e2275406fd planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/anndata/ commit 2e16aca90c4fc6f13bd024eed43bc4adbf5967da
iuc
parents:
diff changeset
5 <requirements>
69e2275406fd planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/anndata/ commit 2e16aca90c4fc6f13bd024eed43bc4adbf5967da
iuc
parents:
diff changeset
6 <requirement type="package" version="@VERSION@">anndata</requirement>
69e2275406fd planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/anndata/ commit 2e16aca90c4fc6f13bd024eed43bc4adbf5967da
iuc
parents:
diff changeset
7 <requirement type="package" version="2.0.17">loompy</requirement>
1
a61350ab6563 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/anndata/ commit 8ef5f7c6f8728608a3f05bb51e11b642b84a05f5"
iuc
parents: 0
diff changeset
8 <requirement type="package" version="2.9.0">h5py</requirement>
0
69e2275406fd planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/anndata/ commit 2e16aca90c4fc6f13bd024eed43bc4adbf5967da
iuc
parents:
diff changeset
9 <yield />
69e2275406fd planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/anndata/ commit 2e16aca90c4fc6f13bd024eed43bc4adbf5967da
iuc
parents:
diff changeset
10 </requirements>
69e2275406fd planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/anndata/ commit 2e16aca90c4fc6f13bd024eed43bc4adbf5967da
iuc
parents:
diff changeset
11 </xml>
69e2275406fd planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/anndata/ commit 2e16aca90c4fc6f13bd024eed43bc4adbf5967da
iuc
parents:
diff changeset
12 <xml name="citations">
69e2275406fd planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/anndata/ commit 2e16aca90c4fc6f13bd024eed43bc4adbf5967da
iuc
parents:
diff changeset
13 <citations>
69e2275406fd planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/anndata/ commit 2e16aca90c4fc6f13bd024eed43bc4adbf5967da
iuc
parents:
diff changeset
14 <citation type="doi">10.1186/s13059-017-1382-0</citation>
69e2275406fd planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/anndata/ commit 2e16aca90c4fc6f13bd024eed43bc4adbf5967da
iuc
parents:
diff changeset
15 </citations>
69e2275406fd planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/anndata/ commit 2e16aca90c4fc6f13bd024eed43bc4adbf5967da
iuc
parents:
diff changeset
16 </xml>
69e2275406fd planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/anndata/ commit 2e16aca90c4fc6f13bd024eed43bc4adbf5967da
iuc
parents:
diff changeset
17 <xml name="version_command">
3
b5c7ba11401d "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/anndata/ commit dc9d19d1f902f3ed54009cd0e68c8518c284b856"
iuc
parents: 2
diff changeset
18 <version_command><![CDATA[python -c "import anndata as ad;print('anndata version: %s' % ad.__version__); import loompy;print('\nloompy version: %s' % loompy.__version__)"]]></version_command>
0
69e2275406fd planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/anndata/ commit 2e16aca90c4fc6f13bd024eed43bc4adbf5967da
iuc
parents:
diff changeset
19 </xml>
69e2275406fd planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/anndata/ commit 2e16aca90c4fc6f13bd024eed43bc4adbf5967da
iuc
parents:
diff changeset
20 <token name="@CMD@"><![CDATA[
69e2275406fd planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/anndata/ commit 2e16aca90c4fc6f13bd024eed43bc4adbf5967da
iuc
parents:
diff changeset
21 cat '$script_file' &&
69e2275406fd planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/anndata/ commit 2e16aca90c4fc6f13bd024eed43bc4adbf5967da
iuc
parents:
diff changeset
22 python '$script_file'
69e2275406fd planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/anndata/ commit 2e16aca90c4fc6f13bd024eed43bc4adbf5967da
iuc
parents:
diff changeset
23 ]]>
69e2275406fd planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/anndata/ commit 2e16aca90c4fc6f13bd024eed43bc4adbf5967da
iuc
parents:
diff changeset
24 </token>
3
b5c7ba11401d "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/anndata/ commit dc9d19d1f902f3ed54009cd0e68c8518c284b856"
iuc
parents: 2
diff changeset
25 <token name="@LOOMCMD@"><![CDATA[
b5c7ba11401d "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/anndata/ commit dc9d19d1f902f3ed54009cd0e68c8518c284b856"
iuc
parents: 2
diff changeset
26 mkdir ./output &&
b5c7ba11401d "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/anndata/ commit dc9d19d1f902f3ed54009cd0e68c8518c284b856"
iuc
parents: 2
diff changeset
27 mkdir ./attributes &&
b5c7ba11401d "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/anndata/ commit dc9d19d1f902f3ed54009cd0e68c8518c284b856"
iuc
parents: 2
diff changeset
28 python '$__tool_directory__/loompy_to_tsv.py' -f '${hd5_format.input}'
b5c7ba11401d "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/anndata/ commit dc9d19d1f902f3ed54009cd0e68c8518c284b856"
iuc
parents: 2
diff changeset
29 ]]>
b5c7ba11401d "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/anndata/ commit dc9d19d1f902f3ed54009cd0e68c8518c284b856"
iuc
parents: 2
diff changeset
30 </token>
0
69e2275406fd planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/anndata/ commit 2e16aca90c4fc6f13bd024eed43bc4adbf5967da
iuc
parents:
diff changeset
31 <token name="@CMD_imports@"><![CDATA[
69e2275406fd planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/anndata/ commit 2e16aca90c4fc6f13bd024eed43bc4adbf5967da
iuc
parents:
diff changeset
32 import anndata as ad
69e2275406fd planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/anndata/ commit 2e16aca90c4fc6f13bd024eed43bc4adbf5967da
iuc
parents:
diff changeset
33 ]]>
69e2275406fd planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/anndata/ commit 2e16aca90c4fc6f13bd024eed43bc4adbf5967da
iuc
parents:
diff changeset
34 </token>
69e2275406fd planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/anndata/ commit 2e16aca90c4fc6f13bd024eed43bc4adbf5967da
iuc
parents:
diff changeset
35 <token name="@HELP@"><![CDATA[
69e2275406fd planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/anndata/ commit 2e16aca90c4fc6f13bd024eed43bc4adbf5967da
iuc
parents:
diff changeset
36 **AnnData**
69e2275406fd planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/anndata/ commit 2e16aca90c4fc6f13bd024eed43bc4adbf5967da
iuc
parents:
diff changeset
37
69e2275406fd planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/anndata/ commit 2e16aca90c4fc6f13bd024eed43bc4adbf5967da
iuc
parents:
diff changeset
38 AnnData provides a scalable way of keeping track of data together with learned annotations. It is used within `Scanpy <https://github.com/theislab/scanpy>`__, for which it was initially developed.
69e2275406fd planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/anndata/ commit 2e16aca90c4fc6f13bd024eed43bc4adbf5967da
iuc
parents:
diff changeset
39
69e2275406fd planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/anndata/ commit 2e16aca90c4fc6f13bd024eed43bc4adbf5967da
iuc
parents:
diff changeset
40 AnnData stores a data matrix `X` together with annotations of observations `obs`, variables `var` and unstructured annotations `uns`.
69e2275406fd planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/anndata/ commit 2e16aca90c4fc6f13bd024eed43bc4adbf5967da
iuc
parents:
diff changeset
41
3
b5c7ba11401d "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/anndata/ commit dc9d19d1f902f3ed54009cd0e68c8518c284b856"
iuc
parents: 2
diff changeset
42 .. image:: https://falexwolf.de/img/scanpy/anndata.svg
0
69e2275406fd planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/anndata/ commit 2e16aca90c4fc6f13bd024eed43bc4adbf5967da
iuc
parents:
diff changeset
43
69e2275406fd planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/anndata/ commit 2e16aca90c4fc6f13bd024eed43bc4adbf5967da
iuc
parents:
diff changeset
44
3
b5c7ba11401d "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/anndata/ commit dc9d19d1f902f3ed54009cd0e68c8518c284b856"
iuc
parents: 2
diff changeset
45 AnnData stores observations (samples) of variables (features) in the rows of a matrix. This is the convention of the modern classics
b5c7ba11401d "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/anndata/ commit dc9d19d1f902f3ed54009cd0e68c8518c284b856"
iuc
parents: 2
diff changeset
46 of statistics (`Hastie et al., 2009 <https://web.stanford.edu/~hastie/ElemStatLearn/>`__) and machine learning (Murphy, 2012), the convention of dataframes both in R and Python and the established statistics
0
69e2275406fd planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/anndata/ commit 2e16aca90c4fc6f13bd024eed43bc4adbf5967da
iuc
parents:
diff changeset
47 and machine learning packages in Python (statsmodels, scikit-learn).
69e2275406fd planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/anndata/ commit 2e16aca90c4fc6f13bd024eed43bc4adbf5967da
iuc
parents:
diff changeset
48
69e2275406fd planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/anndata/ commit 2e16aca90c4fc6f13bd024eed43bc4adbf5967da
iuc
parents:
diff changeset
49 More details on the `AnnData documentation
69e2275406fd planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/anndata/ commit 2e16aca90c4fc6f13bd024eed43bc4adbf5967da
iuc
parents:
diff changeset
50 <https://anndata.readthedocs.io/en/latest/anndata.AnnData.html>`__
3
b5c7ba11401d "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/anndata/ commit dc9d19d1f902f3ed54009cd0e68c8518c284b856"
iuc
parents: 2
diff changeset
51
b5c7ba11401d "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/anndata/ commit dc9d19d1f902f3ed54009cd0e68c8518c284b856"
iuc
parents: 2
diff changeset
52
b5c7ba11401d "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/anndata/ commit dc9d19d1f902f3ed54009cd0e68c8518c284b856"
iuc
parents: 2
diff changeset
53 **Loom data**
b5c7ba11401d "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/anndata/ commit dc9d19d1f902f3ed54009cd0e68c8518c284b856"
iuc
parents: 2
diff changeset
54
b5c7ba11401d "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/anndata/ commit dc9d19d1f902f3ed54009cd0e68c8518c284b856"
iuc
parents: 2
diff changeset
55 Loom files are an efficient file format for very large omics datasets, consisting of a main matrix, optional additional layers, a variable number of row and column annotations, and sparse graph objects.
b5c7ba11401d "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/anndata/ commit dc9d19d1f902f3ed54009cd0e68c8518c284b856"
iuc
parents: 2
diff changeset
56
b5c7ba11401d "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/anndata/ commit dc9d19d1f902f3ed54009cd0e68c8518c284b856"
iuc
parents: 2
diff changeset
57 .. image:: https://linnarssonlab.org/loompy/_images/Loom_components.png
b5c7ba11401d "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/anndata/ commit dc9d19d1f902f3ed54009cd0e68c8518c284b856"
iuc
parents: 2
diff changeset
58
b5c7ba11401d "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/anndata/ commit dc9d19d1f902f3ed54009cd0e68c8518c284b856"
iuc
parents: 2
diff changeset
59
b5c7ba11401d "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/anndata/ commit dc9d19d1f902f3ed54009cd0e68c8518c284b856"
iuc
parents: 2
diff changeset
60 Loom files to store single-cell gene expression data: the main matrix contains the actual expression values (one column per cell, one row per gene); row and column annotations contain metadata for genes
b5c7ba11401d "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/anndata/ commit dc9d19d1f902f3ed54009cd0e68c8518c284b856"
iuc
parents: 2
diff changeset
61 and cells, such as Name, Chromosome, Position (for genes), and Strain, Sex, Age (for cells).
b5c7ba11401d "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/anndata/ commit dc9d19d1f902f3ed54009cd0e68c8518c284b856"
iuc
parents: 2
diff changeset
62
0
69e2275406fd planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/anndata/ commit 2e16aca90c4fc6f13bd024eed43bc4adbf5967da
iuc
parents:
diff changeset
63 ]]>
69e2275406fd planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/anndata/ commit 2e16aca90c4fc6f13bd024eed43bc4adbf5967da
iuc
parents:
diff changeset
64 </token>
69e2275406fd planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/anndata/ commit 2e16aca90c4fc6f13bd024eed43bc4adbf5967da
iuc
parents:
diff changeset
65 <xml name="params_chunk_X">
69e2275406fd planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/anndata/ commit 2e16aca90c4fc6f13bd024eed43bc4adbf5967da
iuc
parents:
diff changeset
66 <conditional name="chunk">
69e2275406fd planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/anndata/ commit 2e16aca90c4fc6f13bd024eed43bc4adbf5967da
iuc
parents:
diff changeset
67 <param name="info" type="select" label="How to select the chunk?">
69e2275406fd planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/anndata/ commit 2e16aca90c4fc6f13bd024eed43bc4adbf5967da
iuc
parents:
diff changeset
68 <option value="random">Random chunk of defined size</option>
69e2275406fd planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/anndata/ commit 2e16aca90c4fc6f13bd024eed43bc4adbf5967da
iuc
parents:
diff changeset
69 <option value="specified">Specified indices</option>
69e2275406fd planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/anndata/ commit 2e16aca90c4fc6f13bd024eed43bc4adbf5967da
iuc
parents:
diff changeset
70 </param>
69e2275406fd planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/anndata/ commit 2e16aca90c4fc6f13bd024eed43bc4adbf5967da
iuc
parents:
diff changeset
71 <when value="random">
69e2275406fd planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/anndata/ commit 2e16aca90c4fc6f13bd024eed43bc4adbf5967da
iuc
parents:
diff changeset
72 <param name="size" type="integer" value="1000" label="Size of chunk to randomly select"/>
69e2275406fd planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/anndata/ commit 2e16aca90c4fc6f13bd024eed43bc4adbf5967da
iuc
parents:
diff changeset
73 <param name="replace" type="boolean" truevalue="True" falsevalue="False" checked="true" label="Random sampling of indices with replacement?"/>
69e2275406fd planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/anndata/ commit 2e16aca90c4fc6f13bd024eed43bc4adbf5967da
iuc
parents:
diff changeset
74 </when>
69e2275406fd planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/anndata/ commit 2e16aca90c4fc6f13bd024eed43bc4adbf5967da
iuc
parents:
diff changeset
75 <when value="specified">
69e2275406fd planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/anndata/ commit 2e16aca90c4fc6f13bd024eed43bc4adbf5967da
iuc
parents:
diff changeset
76 <param name="list" type="text" value="" label="List of comma-separated indices to return"/>
69e2275406fd planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/anndata/ commit 2e16aca90c4fc6f13bd024eed43bc4adbf5967da
iuc
parents:
diff changeset
77 </when>
69e2275406fd planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/anndata/ commit 2e16aca90c4fc6f13bd024eed43bc4adbf5967da
iuc
parents:
diff changeset
78 </conditional>
69e2275406fd planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/anndata/ commit 2e16aca90c4fc6f13bd024eed43bc4adbf5967da
iuc
parents:
diff changeset
79 </xml>
69e2275406fd planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/anndata/ commit 2e16aca90c4fc6f13bd024eed43bc4adbf5967da
iuc
parents:
diff changeset
80 </macros>