Mercurial > repos > iuc > anndata_inspect
annotate macros.xml @ 4:70f5f1fee692 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:37:23 -0500 |
parents | 286a24ac079c |
children | b9fac48532eb |
rev | line source |
---|---|
0
b2a6ce371781
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/anndata/ commit 2e16aca90c4fc6f13bd024eed43bc4adbf5967da
iuc
parents:
diff
changeset
|
1 <macros> |
1
05304c5c195d
"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
70f5f1fee692
"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
b2a6ce371781
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/anndata/ commit 2e16aca90c4fc6f13bd024eed43bc4adbf5967da
iuc
parents:
diff
changeset
|
4 <xml name="requirements"> |
b2a6ce371781
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/anndata/ commit 2e16aca90c4fc6f13bd024eed43bc4adbf5967da
iuc
parents:
diff
changeset
|
5 <requirements> |
b2a6ce371781
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> |
b2a6ce371781
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
05304c5c195d
"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
b2a6ce371781
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/anndata/ commit 2e16aca90c4fc6f13bd024eed43bc4adbf5967da
iuc
parents:
diff
changeset
|
9 <yield /> |
b2a6ce371781
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/anndata/ commit 2e16aca90c4fc6f13bd024eed43bc4adbf5967da
iuc
parents:
diff
changeset
|
10 </requirements> |
b2a6ce371781
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/anndata/ commit 2e16aca90c4fc6f13bd024eed43bc4adbf5967da
iuc
parents:
diff
changeset
|
11 </xml> |
b2a6ce371781
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/anndata/ commit 2e16aca90c4fc6f13bd024eed43bc4adbf5967da
iuc
parents:
diff
changeset
|
12 <xml name="citations"> |
b2a6ce371781
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/anndata/ commit 2e16aca90c4fc6f13bd024eed43bc4adbf5967da
iuc
parents:
diff
changeset
|
13 <citations> |
b2a6ce371781
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> |
b2a6ce371781
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/anndata/ commit 2e16aca90c4fc6f13bd024eed43bc4adbf5967da
iuc
parents:
diff
changeset
|
15 </citations> |
b2a6ce371781
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/anndata/ commit 2e16aca90c4fc6f13bd024eed43bc4adbf5967da
iuc
parents:
diff
changeset
|
16 </xml> |
b2a6ce371781
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
286a24ac079c
"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
b2a6ce371781
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/anndata/ commit 2e16aca90c4fc6f13bd024eed43bc4adbf5967da
iuc
parents:
diff
changeset
|
19 </xml> |
b2a6ce371781
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[ |
b2a6ce371781
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/anndata/ commit 2e16aca90c4fc6f13bd024eed43bc4adbf5967da
iuc
parents:
diff
changeset
|
21 cat '$script_file' && |
b2a6ce371781
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/anndata/ commit 2e16aca90c4fc6f13bd024eed43bc4adbf5967da
iuc
parents:
diff
changeset
|
22 python '$script_file' |
b2a6ce371781
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/anndata/ commit 2e16aca90c4fc6f13bd024eed43bc4adbf5967da
iuc
parents:
diff
changeset
|
23 ]]> |
b2a6ce371781
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/anndata/ commit 2e16aca90c4fc6f13bd024eed43bc4adbf5967da
iuc
parents:
diff
changeset
|
24 </token> |
3
286a24ac079c
"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[ |
286a24ac079c
"planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/anndata/ commit dc9d19d1f902f3ed54009cd0e68c8518c284b856"
iuc
parents:
2
diff
changeset
|
26 mkdir ./output && |
286a24ac079c
"planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/anndata/ commit dc9d19d1f902f3ed54009cd0e68c8518c284b856"
iuc
parents:
2
diff
changeset
|
27 mkdir ./attributes && |
286a24ac079c
"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}' |
286a24ac079c
"planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/anndata/ commit dc9d19d1f902f3ed54009cd0e68c8518c284b856"
iuc
parents:
2
diff
changeset
|
29 ]]> |
286a24ac079c
"planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/anndata/ commit dc9d19d1f902f3ed54009cd0e68c8518c284b856"
iuc
parents:
2
diff
changeset
|
30 </token> |
0
b2a6ce371781
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[ |
b2a6ce371781
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 |
b2a6ce371781
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/anndata/ commit 2e16aca90c4fc6f13bd024eed43bc4adbf5967da
iuc
parents:
diff
changeset
|
33 ]]> |
b2a6ce371781
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/anndata/ commit 2e16aca90c4fc6f13bd024eed43bc4adbf5967da
iuc
parents:
diff
changeset
|
34 </token> |
b2a6ce371781
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[ |
b2a6ce371781
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/anndata/ commit 2e16aca90c4fc6f13bd024eed43bc4adbf5967da
iuc
parents:
diff
changeset
|
36 **AnnData** |
b2a6ce371781
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/anndata/ commit 2e16aca90c4fc6f13bd024eed43bc4adbf5967da
iuc
parents:
diff
changeset
|
37 |
b2a6ce371781
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. |
b2a6ce371781
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/anndata/ commit 2e16aca90c4fc6f13bd024eed43bc4adbf5967da
iuc
parents:
diff
changeset
|
39 |
b2a6ce371781
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`. |
b2a6ce371781
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/anndata/ commit 2e16aca90c4fc6f13bd024eed43bc4adbf5967da
iuc
parents:
diff
changeset
|
41 |
3
286a24ac079c
"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
b2a6ce371781
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/anndata/ commit 2e16aca90c4fc6f13bd024eed43bc4adbf5967da
iuc
parents:
diff
changeset
|
43 |
b2a6ce371781
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/anndata/ commit 2e16aca90c4fc6f13bd024eed43bc4adbf5967da
iuc
parents:
diff
changeset
|
44 |
3
286a24ac079c
"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 |
286a24ac079c
"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
b2a6ce371781
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). |
b2a6ce371781
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/anndata/ commit 2e16aca90c4fc6f13bd024eed43bc4adbf5967da
iuc
parents:
diff
changeset
|
48 |
b2a6ce371781
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 |
b2a6ce371781
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
286a24ac079c
"planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/anndata/ commit dc9d19d1f902f3ed54009cd0e68c8518c284b856"
iuc
parents:
2
diff
changeset
|
51 |
286a24ac079c
"planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/anndata/ commit dc9d19d1f902f3ed54009cd0e68c8518c284b856"
iuc
parents:
2
diff
changeset
|
52 |
286a24ac079c
"planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/anndata/ commit dc9d19d1f902f3ed54009cd0e68c8518c284b856"
iuc
parents:
2
diff
changeset
|
53 **Loom data** |
286a24ac079c
"planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/anndata/ commit dc9d19d1f902f3ed54009cd0e68c8518c284b856"
iuc
parents:
2
diff
changeset
|
54 |
286a24ac079c
"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. |
286a24ac079c
"planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/anndata/ commit dc9d19d1f902f3ed54009cd0e68c8518c284b856"
iuc
parents:
2
diff
changeset
|
56 |
286a24ac079c
"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 |
286a24ac079c
"planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/anndata/ commit dc9d19d1f902f3ed54009cd0e68c8518c284b856"
iuc
parents:
2
diff
changeset
|
58 |
286a24ac079c
"planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/anndata/ commit dc9d19d1f902f3ed54009cd0e68c8518c284b856"
iuc
parents:
2
diff
changeset
|
59 |
286a24ac079c
"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 |
286a24ac079c
"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). |
286a24ac079c
"planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/anndata/ commit dc9d19d1f902f3ed54009cd0e68c8518c284b856"
iuc
parents:
2
diff
changeset
|
62 |
0
b2a6ce371781
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/anndata/ commit 2e16aca90c4fc6f13bd024eed43bc4adbf5967da
iuc
parents:
diff
changeset
|
63 ]]> |
b2a6ce371781
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/anndata/ commit 2e16aca90c4fc6f13bd024eed43bc4adbf5967da
iuc
parents:
diff
changeset
|
64 </token> |
b2a6ce371781
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"> |
b2a6ce371781
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/anndata/ commit 2e16aca90c4fc6f13bd024eed43bc4adbf5967da
iuc
parents:
diff
changeset
|
66 <conditional name="chunk"> |
b2a6ce371781
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?"> |
b2a6ce371781
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> |
b2a6ce371781
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> |
b2a6ce371781
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/anndata/ commit 2e16aca90c4fc6f13bd024eed43bc4adbf5967da
iuc
parents:
diff
changeset
|
70 </param> |
b2a6ce371781
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/anndata/ commit 2e16aca90c4fc6f13bd024eed43bc4adbf5967da
iuc
parents:
diff
changeset
|
71 <when value="random"> |
b2a6ce371781
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"/> |
b2a6ce371781
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?"/> |
b2a6ce371781
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/anndata/ commit 2e16aca90c4fc6f13bd024eed43bc4adbf5967da
iuc
parents:
diff
changeset
|
74 </when> |
b2a6ce371781
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/anndata/ commit 2e16aca90c4fc6f13bd024eed43bc4adbf5967da
iuc
parents:
diff
changeset
|
75 <when value="specified"> |
b2a6ce371781
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"/> |
b2a6ce371781
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/anndata/ commit 2e16aca90c4fc6f13bd024eed43bc4adbf5967da
iuc
parents:
diff
changeset
|
77 </when> |
b2a6ce371781
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/anndata/ commit 2e16aca90c4fc6f13bd024eed43bc4adbf5967da
iuc
parents:
diff
changeset
|
78 </conditional> |
b2a6ce371781
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/anndata/ commit 2e16aca90c4fc6f13bd024eed43bc4adbf5967da
iuc
parents:
diff
changeset
|
79 </xml> |
b2a6ce371781
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/anndata/ commit 2e16aca90c4fc6f13bd024eed43bc4adbf5967da
iuc
parents:
diff
changeset
|
80 </macros> |