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

Allow Radius to accept params #190

Merged
merged 7 commits into from
Mar 24, 2024
Merged

Allow Radius to accept params #190

merged 7 commits into from
Mar 24, 2024

Conversation

dcollins15
Copy link
Collaborator

Enables concrete implementations of Radius to take in parameters by adding ... to the generic's signature. Adding a scale parameter to Radius.VisiumV1 defined in Seurat would help to enable users to plot with the "tissue_hires_image.png" from Visium datasets.

@dcollins15 dcollins15 changed the base branch from master to develop March 21, 2024 16:24
Copy link
Collaborator

@zskylarli zskylarli left a comment

Choose a reason for hiding this comment

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

Looks good to me!

Copy link
Member

@mojaveazure mojaveazure left a comment

Choose a reason for hiding this comment

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

Make sure any methods for Radius defined in SeuratObject (eg. Radius.Centroids) are updated for with the dots

Copy link
Member

@mojaveazure mojaveazure left a comment

Choose a reason for hiding this comment

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

Great, thanks! This looks good; I've added one suggestion to add the PR number to NEWS.md to auto-link back to it on the pkgdown docs. Also, remember to pin the SeuratObject version to SeuratObject (>= 5.0.1.9005) (allowed on CRAN) in DESCRIPTION on Seurat's develop version whenever you get around to adding the ... and other arguments over there to ensure generic <> method consistency (again, for every method of Radius that Seurat defines)

@@ -1,6 +1,7 @@
# Unreleased

## Changes:
- Add `...` to call signature for `Radius` generic
Copy link
Member

Choose a reason for hiding this comment

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

Suggested change
- Add `...` to call signature for `Radius` generic
- Add `...` to call signature for `Radius` generic (#190)

@dcollins15 dcollins15 merged commit f683ac7 into develop Mar 24, 2024
@mojaveazure mojaveazure deleted the feat/radius_params branch March 25, 2024 00:30
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.

4 participants