# HG changeset patch # User ebi-gxa # Date 1590750598 14400 # Node ID ad5179780e25bf2f7af667b98973c5aa7351839a # Parent 679dfd1dd63b2d96937468cd57eef446913d2696 "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" diff -r 679dfd1dd63b -r ad5179780e25 cell-browser.xml --- a/cell-browser.xml Tue Aug 13 05:33:26 2019 -0400 +++ b/cell-browser.xml Fri May 29 07:09:58 2020 -0400 @@ -1,4 +1,4 @@ - + displays single-cell clusterized data in an interactive web application. ucsc-cell-browser @@ -9,26 +9,41 @@ ./cellbrowser.conf; + echo "coords = [ {'file':'$tsneCoordinates', 'shortLabel':'t-SNE'} ]" > ./cellbrowser.conf; echo "meta = '$cellMetadata'" >> ./cellbrowser.conf; echo "name = 'sample'" >> ./cellbrowser.conf; echo "exprMatrix = '$expressionMatrix'" >> ./cellbrowser.conf; echo "geneIdType = 'symbol'" >> ./cellbrowser.conf; cbBuild -i cellbrowser.conf -o "$html_file.extra_files_path"; - mv "$html_file.extra_files_path"/index.html "$html_file"; + + ## "sample" is used as name, so no change needed. + cp '$__tool_directory__/redirect.html' '$html_file'; #else if $input_type.expression_source == "cell-browser-tar": tar -xf '$tarred_sources'; cbBuild -i cellbrowser.conf -o "$html_file.extra_files_path"; - mv "$html_file.extra_files_path"/index.html "$html_file"; + + ## we need to adapt redirect to use the study name used in cellbrowser.conf + study=\$(grep '^name=' cellbrowser.conf | awk -F'=' '{ print $2 }' | sed s/\"//g ) && + echo "Study to replace: "\$study && + sed "s/ds=sample/ds=\$study/" '$__tool_directory__/redirect.html' > '$html_file'; #else if $input_type.expression_source == "scanpy": + ## We could add a condition here were, if cluster_field is provided + ## then we rename it inside with an AnnData relying script to read 'louvain' to please UCSC CellBrowser + ln -s '$input_anndata_file' scanpy_ann_data.h5ad; - cbImportScanpy -i scanpy_ann_data.h5ad -o outdir -n sample --htmlDir "$html_file.extra_files_path"; - mv "$html_file.extra_files_path"/index.html "$html_file"; + cbImportScanpy -i scanpy_ann_data.h5ad + + #if $input_type.marker_field: + --markerField '${input_type.marker_field}' + #end if + + -o outdir -n sample --htmlDir '$html_file.extra_files_path'; + cp '$__tool_directory__/redirect.html' '$html_file'; #end if ]]> @@ -48,12 +63,13 @@ - + + - + @@ -116,5 +132,6 @@ url = {https://github.com/maximilianh/cellBrowser}, } + 10.1101/2020.04.08.032698 diff -r 679dfd1dd63b -r ad5179780e25 redirect.html --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/redirect.html Fri May 29 07:09:58 2020 -0400 @@ -0,0 +1,15 @@ + + + + + + + Page Redirection + + + + If you are not redirected automatically, follow this link to example. + +