Mercurial > repos > ebi-gxa > ucsc_cell_browser
comparison cell-browser.xml @ 3:ad5179780e25 draft
"planemo upload for repository https://github.com/ebi-gene-expression-group/container-galaxy-sc-tertiary/tree/develop/tools/tertiary-analysis/ucsc-cell-browser/.shed.yml commit 2ba483354c14ddfd0f7aa57c2ad1c9944e9c4bba"
author | ebi-gxa |
---|---|
date | Fri, 29 May 2020 07:09:58 -0400 |
parents | 679dfd1dd63b |
children | 8da642e17794 |
comparison
equal
deleted
inserted
replaced
2:679dfd1dd63b | 3:ad5179780e25 |
---|---|
1 <tool id="ucsc_cell_browser" name="UCSC Cell Browser" version="0.5.43+galaxy0"> | 1 <tool id="ucsc_cell_browser" name="UCSC Cell Browser" version="0.5.43+galaxy1" profile="18.01"> |
2 <description>displays single-cell clusterized data in an interactive web application.</description> | 2 <description>displays single-cell clusterized data in an interactive web application.</description> |
3 <requirements> | 3 <requirements> |
4 <requirement type="package" version="0.5.43">ucsc-cell-browser</requirement> | 4 <requirement type="package" version="0.5.43">ucsc-cell-browser</requirement> |
5 </requirements> | 5 </requirements> |
6 <stdio> | 6 <stdio> |
7 <exit_code range="1:" /> | 7 <exit_code range="1:" /> |
8 </stdio> | 8 </stdio> |
9 <command><![CDATA[ | 9 <command><![CDATA[ |
10 #if $input_type.expression_source == "native-cell-browser": | 10 #if $input_type.expression_source == "native-cell-browser": |
11 | 11 |
12 echo "coords = [ {'file':'$tsneCoordinates', 'shortLabel':'t-SNE on WGCNA'} ]" > ./cellbrowser.conf; | 12 echo "coords = [ {'file':'$tsneCoordinates', 'shortLabel':'t-SNE'} ]" > ./cellbrowser.conf; |
13 echo "meta = '$cellMetadata'" >> ./cellbrowser.conf; | 13 echo "meta = '$cellMetadata'" >> ./cellbrowser.conf; |
14 echo "name = 'sample'" >> ./cellbrowser.conf; | 14 echo "name = 'sample'" >> ./cellbrowser.conf; |
15 echo "exprMatrix = '$expressionMatrix'" >> ./cellbrowser.conf; | 15 echo "exprMatrix = '$expressionMatrix'" >> ./cellbrowser.conf; |
16 echo "geneIdType = 'symbol'" >> ./cellbrowser.conf; | 16 echo "geneIdType = 'symbol'" >> ./cellbrowser.conf; |
17 | 17 |
18 cbBuild -i cellbrowser.conf -o "$html_file.extra_files_path"; | 18 cbBuild -i cellbrowser.conf -o "$html_file.extra_files_path"; |
19 mv "$html_file.extra_files_path"/index.html "$html_file"; | 19 |
20 ## "sample" is used as name, so no change needed. | |
21 cp '$__tool_directory__/redirect.html' '$html_file'; | |
20 | 22 |
21 #else if $input_type.expression_source == "cell-browser-tar": | 23 #else if $input_type.expression_source == "cell-browser-tar": |
22 | 24 |
23 tar -xf '$tarred_sources'; | 25 tar -xf '$tarred_sources'; |
24 cbBuild -i cellbrowser.conf -o "$html_file.extra_files_path"; | 26 cbBuild -i cellbrowser.conf -o "$html_file.extra_files_path"; |
25 mv "$html_file.extra_files_path"/index.html "$html_file"; | 27 |
28 ## we need to adapt redirect to use the study name used in cellbrowser.conf | |
29 study=\$(grep '^name=' cellbrowser.conf | awk -F'=' '{ print $2 }' | sed s/\"//g ) && | |
30 echo "Study to replace: "\$study && | |
31 sed "s/ds=sample/ds=\$study/" '$__tool_directory__/redirect.html' > '$html_file'; | |
26 | 32 |
27 #else if $input_type.expression_source == "scanpy": | 33 #else if $input_type.expression_source == "scanpy": |
28 | 34 |
35 ## We could add a condition here were, if cluster_field is provided | |
36 ## then we rename it inside with an AnnData relying script to read 'louvain' to please UCSC CellBrowser | |
37 | |
29 ln -s '$input_anndata_file' scanpy_ann_data.h5ad; | 38 ln -s '$input_anndata_file' scanpy_ann_data.h5ad; |
30 cbImportScanpy -i scanpy_ann_data.h5ad -o outdir -n sample --htmlDir "$html_file.extra_files_path"; | 39 cbImportScanpy -i scanpy_ann_data.h5ad |
31 mv "$html_file.extra_files_path"/index.html "$html_file"; | 40 |
41 #if $input_type.marker_field: | |
42 --markerField '${input_type.marker_field}' | |
43 #end if | |
44 | |
45 -o outdir -n sample --htmlDir '$html_file.extra_files_path'; | |
46 cp '$__tool_directory__/redirect.html' '$html_file'; | |
32 | 47 |
33 #end if | 48 #end if |
34 ]]></command> | 49 ]]></command> |
35 <inputs> | 50 <inputs> |
36 <conditional name="input_type"> | 51 <conditional name="input_type"> |
46 </when> | 61 </when> |
47 <when value="cell-browser-tar"> | 62 <when value="cell-browser-tar"> |
48 <param name="tarred_sources" type="data" format="tar" label="CellBrowser source files tarred" help="Tar containing CellBrowser config, tsne, umap and other source files for running cbBuild"/> | 63 <param name="tarred_sources" type="data" format="tar" label="CellBrowser source files tarred" help="Tar containing CellBrowser config, tsne, umap and other source files for running cbBuild"/> |
49 </when> | 64 </when> |
50 <when value="scanpy"> | 65 <when value="scanpy"> |
51 <param name="input_anndata_file" type="data" format="h5" label="Input object in AnnData hdf5 format" help="Scanpy serialized output is by default produced as an AnnData hdf5 file."/> | 66 <param name="input_anndata_file" type="data" format="h5,h5ad" label="Input object in AnnData hdf5 format" help="Scanpy serialized output is by default produced as an AnnData hdf5 file."/> |
67 <param name="marker_field" argument="--markerField" type="text" value="rank_genes_groups" label="Marker genes field" help="Scanpy marker genes field to use, optional, if not set 'rank_genes_groups' will be used."/> | |
52 </when> | 68 </when> |
53 </conditional> | 69 </conditional> |
54 </inputs> | 70 </inputs> |
55 <outputs> | 71 <outputs> |
56 <data format="html" name="html_file" label="Interactive UCSC Cell Browser"/> | 72 <data format="html" name="html_file" label="${tool.name} on ${on_string}: Interactive Viewer"/> |
57 </outputs> | 73 </outputs> |
58 | 74 |
59 <tests> | 75 <tests> |
60 <test> | 76 <test> |
61 <param name="input_anndata_file" ftype="data" value="anndata.h5"/> | 77 <param name="input_anndata_file" ftype="data" value="anndata.h5"/> |
114 publisher = {GitHub}, | 130 publisher = {GitHub}, |
115 journal = {GitHub repository}, | 131 journal = {GitHub repository}, |
116 url = {https://github.com/maximilianh/cellBrowser}, | 132 url = {https://github.com/maximilianh/cellBrowser}, |
117 } | 133 } |
118 </citation> | 134 </citation> |
135 <citation type="doi">10.1101/2020.04.08.032698</citation> | |
119 </citations> | 136 </citations> |
120 </tool> | 137 </tool> |