Skip to content

Conversation

@pavanvidem
Copy link
Member

FOR CONTRIBUTOR:

  • I have read the CONTRIBUTING.md document and this tool is appropriate for the tools-iuc repo.
  • License permits unrestricted use (educational + commercial)
  • This PR adds a new tool or tool collection
  • This PR updates an existing tool or tool collection
  • This PR does something else (explain below)

@pavanvidem pavanvidem changed the title Scanpy plot: add support for interactive vitessce plots Update Scanpy to v1.11.5 and add support for interactive vitessce plots Jan 15, 2026
@pavanvidem pavanvidem marked this pull request as ready for review January 15, 2026 23:07
Copy link
Collaborator

@nilchia nilchia left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks Pavan! Looks really cool

Comment on lines -8 to -13
<requirement type="package" version="0.10.3">anndata</requirement>
<requirement type="package" version="1.26.4">numpy</requirement>
<requirement type="package" version="2.2.2">pandas</requirement>
<requirement type="package" version="1.14.1">scipy</requirement>
<requirement type="package" version="0.14.2">statsmodels</requirement>
<requirement type="package" version="0.3.5">fa2</requirement>
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Are these not required anymore?

</token>

<xml name="param_interactive_plot">
<param name="interactive_plot" type="boolean" checked="false" label="Make an interactive plot?" help="Creates an vitessce configuration file using easy_vitessce for interactive visualization"/>
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
<param name="interactive_plot" type="boolean" checked="false" label="Make an interactive plot?" help="Creates an vitessce configuration file using easy_vitessce for interactive visualization"/>
<param name="interactive_plot" type="boolean" checked="false" label="Make an interactive plot?" help="Creates a vitessce configuration file using easy_vitessce for interactive visualization"/>

<expand macro="pl_figsize"/>
</when>
<when value="pl.pca">
<expand macro="param_interactive_plot"/>
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It is not included in the if logic in the command.

<filter>advanced_common['show_log']</filter>
</data>
<data name="anndata_out" format="h5ad" from_work_dir="anndata.h5ad" label="${tool.name} (${method.method}) on ${on_string}: Annotated data matrix">
<filter>advanced_common['output_anndata']</filter>
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

why not just this?
advanced_common['output_anndata']

<data name="vitessce_config" format="vitessce.json" from_work_dir="config.json" label="${tool.name} (${method.method}) on ${on_string}: Vitessce interactive visualization">
<filter>method['method'] in ['pl.umap', 'pl.tsne', 'pl.diffmap', 'pl.violin', 'pl.dotplot', 'pl.heatmap'] and method['interactive_plot']</filter>
</data>
<data name="anndata_config" format="json" from_work_dir="anndata.ref.json" label="${tool.name} (${method.method}) on ${on_string}: Anndata configuration">
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

is this defined in the script? anndata.ref.json
or automatically generated by the tool?

anndata_out_id = "${__app__.security.encode_id($anndata_out.id)}"
anndata_config_id = "${__app__.security.encode_id($anndata_config.id)}"

config_dict = widget.config.to_dict(base_url="")
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@nilchia
Copy link
Collaborator

nilchia commented Jan 20, 2026

changes in the releases after 1.10.2:

  • subsample is depricated.
  • layer argument is added to scanpy.tl.score_genes() and scanpy.tl.score_genes_cell_cycle()

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants