Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add Spapros #6191

Merged
merged 46 commits into from
Aug 25, 2024
Merged
Show file tree
Hide file tree
Changes from 11 commits
Commits
Show all changes
46 commits
Select commit Hold shift + click to select a range
2ea6757
add evaluation.xml
heylf Jul 9, 2024
9cf03aa
first version of macros.xml
heylf Jul 9, 2024
fdff2ae
first version of shed.yml
heylf Jul 9, 2024
8553dbf
adding second test to evaluation
heylf Jul 9, 2024
858d29a
finished evaluation tool, ready for review
heylf Jul 10, 2024
4b6e112
Changes to shed.yml
heylf Jul 29, 2024
bf3b870
some fixes and code improvements for evaluatio.xml
heylf Jul 29, 2024
0690561
fix typo in macros.xml
heylf Jul 29, 2024
af5eddb
Adding selection.xml for spapros selction
heylf Jul 29, 2024
253fccb
adding test data for spapros
heylf Jul 29, 2024
07fd5a1
Merge branch 'galaxyproject:main' into spapros
heylf Jul 29, 2024
99cb838
change to 240cells data evaluation.xml
heylf Jul 29, 2024
7ebe909
changes to selection.xml to optimize tests
heylf Jul 29, 2024
172dae2
optimize test data
heylf Jul 29, 2024
b651010
Review changed to evaluation.xml
heylf Jul 31, 2024
3784f80
Review changes to macros.xml
heylf Jul 31, 2024
71140ff
Review changes to selection.xml
heylf Jul 31, 2024
7c72a2f
adding image asserts
heylf Aug 1, 2024
b8447be
Update tools/spapros/selection.xml
bgruening Aug 1, 2024
620b98a
Update selection.xml
bgruening Aug 1, 2024
c08e695
synthax fix selection.xml
heylf Aug 1, 2024
6d5ed41
Merge branch 'spapros' of https://github.com/heylf/tools-iuc into spa…
heylf Aug 1, 2024
934c8a0
bugfix selection.xml
heylf Aug 1, 2024
8bc658d
changes to marker_out_test4.tsv
heylf Aug 2, 2024
2748ce4
solving issue with line switches of marker files
heylf Aug 5, 2024
0219dd0
fix to slection.xml tests
heylf Aug 6, 2024
1b71a09
changes to ci and pr yaml to take tifffile into account
heylf Aug 6, 2024
2b80379
Revert "changes to ci and pr yaml to take tifffile into account"
heylf Aug 6, 2024
13d705d
Merge branch 'main' into spapros
bgruening Aug 11, 2024
d0babbe
Merge branch 'main' into spapros
bgruening Aug 11, 2024
531e301
remove file comparisions
bgruening Aug 11, 2024
7a2ff46
rsolve merge conflict for selection.xml
heylf Aug 12, 2024
bfd0244
resolve assert for evaluation.xml
heylf Aug 12, 2024
4562f31
remove pngs
heylf Aug 12, 2024
fe3e50a
bugfix selection.xml
heylf Aug 12, 2024
155273d
updating marker_out.tsvs
heylf Aug 12, 2024
34c52ca
fixing image differnece for slection.xml
heylf Aug 12, 2024
925a569
fixing image differnece for slection.xml
heylf Aug 12, 2024
581b88a
fix typo
heylf Aug 13, 2024
24033e2
figuring out reproducibility isse
heylf Aug 13, 2024
090b6b9
Try to fix reproducibility issue
heylf Aug 13, 2024
61333c2
Try to fix reproducibility issue
heylf Aug 14, 2024
d5b3878
Try to fix reproducibility issue
heylf Aug 14, 2024
5fcd4ea
Try to fix reproducibility issue
heylf Aug 15, 2024
57821d9
figureing out what is going on
heylf Aug 15, 2024
dc2eb3b
figureing out what is going on
heylf Aug 15, 2024
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
19 changes: 19 additions & 0 deletions tools/spapros/.shed.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
name: spapros
owner: iuc
description: "Select and evaluate probe sets for targeted spatial transcriptomics."
homepage_url: https://github.com/theislab/spapros
long_description: |
Spapros is a python package that provides a pipeline for probe set selection and evaluation for targeted spatial transcriptomics data.
remote_repository_url: https://github.com/galaxyproject/tools-iuc/tree/master/tools/spapros/
type: unrestricted
categories:
- Transcriptomics
- Sequence Analysis
auto_tool_repositories:
name_template: "{{ tool_id }}"
description_template: "Wrapper for the spapros tool suite: {{ tool_name }}"
suite:
name: "suite_spapros"
description: "Spapros - Probe selection and evaluation"
long_description: |
Spapros is a python package that provides a pipeline for probe set selection and evaluation for targeted spatial transcriptomics data.
580 changes: 580 additions & 0 deletions tools/spapros/evaluation.xml

Large diffs are not rendered by default.

97 changes: 97 additions & 0 deletions tools/spapros/macros.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,97 @@
<macros>
<token name="@TOOL_VERSION@">0.1.5</token>
<token name="@VERSION_SUFFIX@">0</token>
<token name="@profile@">22.05</token>
<xml name="requirements">
<requirements>
<requirement type="package" version="@TOOL_VERSION@">spapros</requirement>
<yield />
</requirements>
</xml>
<xml name="creators">
<creator>
<organization name="European Galaxy Team" url="https://galaxyproject.org/eu/" />
</creator>
</xml>
<xml name="citations">
<citations>
<citation type="doi">10.1101/2022.08.16.504115</citation>
<citation type="doi">10.1093/gigascience/giaa102</citation>
</citations>
</xml>
<xml name="version_command">
<version_command><![CDATA[python -c "import spapros;print('%s' % spapros.__version__ )"]]></version_command>
</xml>
<token name="@CMD@"><![CDATA[
cp '$adata' 'anndata.h5ad' &&
cat '$script_file' > '$hidden_output' &&
python '$script_file' >> '$hidden_output' &&
ls . >> '$hidden_output'
heylf marked this conversation as resolved.
Show resolved Hide resolved
]]>
</token>
<token name="@CMD_imports@"><![CDATA[
import spapros as sp
import os
import pandas as pd
import scanpy as sc
import matplotlib as mpl
import matplotlib.pyplot as plt
]]>
</token>
<token name="@CMD_plot@"><![CDATA[
#if $method.set_ids != 'all' and $method.set_ids != '':
set_ids=[$method.set_ids],
#end if
save='plot.$format',
show=False
]]>
</token>
<xml name="set_ids">
<param name="set_ids" type="text" value="all" optional="true" label="List of probeset ids (comma seperated, e.g., DE,HVG,random)" help="Kepp it with all or empty to select all probeset ids."/>
</xml>
<xml name="sanitize_query" token_validinitial="string.printable">
<sanitizer>
<valid initial="@VALIDINITIAL@">
<remove value="&apos;" />
</valid>
</sanitizer>
</xml>
<xml name="sanitize_vectors" token_validinitial="string.digits">
<sanitizer>
<valid initial="@VALIDINITIAL@">
<add value=","/>
</valid>
</sanitizer>
</xml>
<xml name="inputs_anndata">
<param name="adata" type="data" format="h5ad" label="Annotated data matrix"/>
</xml>
<token name="@CMD_read_inputs@"><![CDATA[
adata = sc.read_h5ad('anndata.h5ad')
]]>
</token>
<xml name="inputs_common_advanced">
<section name="advanced_common" title="Advanced Output Options" expanded="false">
<param name="show_log" type="boolean" checked="false" label="Output Log?" />
heylf marked this conversation as resolved.
Show resolved Hide resolved
</section>
</xml>
<xml name="param_plot_format">
<param name="format" type="select" label="Format for saving figures">
<option value="png">png</option>
<option value="pdf">pdf</option>
<option value="svg">svg</option>
</param>
</xml>
<xml name="param_markerset">
<param name="markerset" type="data" format="tabular" label="Markerset tabular file with rows=conditions (e.g., celltypes) and column=features (e.g., genes)" help="This is beeing used to calculate the corelations betweens your probeset features and marker features. Marker features are for example genes that you know are important for your condition (e.g., celltypes)."/>
<param name="header_markerset" type="select" optional="false" label="Header in the list of markers?">
<option value="included">Header included</option>
<option value="not_included">Header not included</option>
</param>
</xml>
<xml name="hidden_outputs">
<data name="hidden_output" format="txt" label="Log file" >
<filter>advanced_common['show_log']</filter>
heylf marked this conversation as resolved.
Show resolved Hide resolved
</data>
</xml>
</macros>
Loading
Loading