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

Conversion from & to SingleCellExperiment #212

Merged
merged 24 commits into from
Feb 6, 2025
Merged

Conversation

LouiseDck
Copy link
Collaborator

@LouiseDck LouiseDck commented Dec 13, 2024

Provides modular conversion to & from SingleCellExperiment.

Adds vignette explaining the mapping in detail.

Aims to follow some of the mapping of the Seurat conversion.

@LouiseDck LouiseDck marked this pull request as ready for review February 5, 2025 11:09
@LouiseDck LouiseDck requested review from rcannood and lazappi February 5, 2025 11:09
Comment on lines 83 to 87
col_data_mapping = NULL,
row_data_mapping = NULL,
reduction_mapping = NULL,
colPairs_mapping = NULL, # nolint
rowPairs_mapping = NULL, # nolint
Copy link
Collaborator

Choose a reason for hiding this comment

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

why is col_data_mapping snakecase but colPairs_mapping camelcase?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Good point, no reason and we should be consistent.

Copy link
Collaborator

Choose a reason for hiding this comment

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

Could this vignette be renamed to detailed_singlecellexperiment or something like this?

Also, could you add an entry to _pkgdown.yml?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Yep!

Comment on lines 26 to 29
```{r construct_anndata}
library(anndataR)
library(SingleCellExperiment)

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
```{r construct_anndata}
library(anndataR)
library(SingleCellExperiment)
```{r deps, message=FALSE, warning=FALSE}
library(anndataR)
library(SingleCellExperiment)
```
We first generate a sample dataset to work with.
```{r construct_anndata}

@rcannood
Copy link
Collaborator

rcannood commented Feb 6, 2025

Minor comments, otherwise LGTM!

@LouiseDck LouiseDck enabled auto-merge (squash) February 6, 2025 21:05
@LouiseDck LouiseDck merged commit dd38304 into main Feb 6, 2025
7 checks passed
@rcannood rcannood deleted the singlecellexperiment branch February 6, 2025 21:19
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.

2 participants