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 rowData to summed SCE output #20

Merged
merged 5 commits into from
Dec 17, 2024
Merged

Add rowData to summed SCE output #20

merged 5 commits into from
Dec 17, 2024

Conversation

jashapiro
Copy link
Member

I realized in testing that we had lost the rowData when summing SCE objects over duplicated features, so this PR adds those back.

I am currently using just the first row encountered in the case of duplicates, which I think is fine for most cases, as it will keep things consistent. I just had a thought that we could instead use the id with the greatest expression, but that could results in different translations for different objects, which seemed not so great. So I left it as just the first. I also considered concatenation, but that seemed too messy, again for little gain.

Following #19, I also added devtools to renv here for developer convenience. I also added a few updates to pre-commit so it doesn't bother us with update PRs so often.

Copy link
Member

@sjspielman sjspielman left a comment

Choose a reason for hiding this comment

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

LGTM!

@sjspielman
Copy link
Member

I am currently using just the first row encountered in the case of duplicates, which I think is fine for most cases, as it will keep things consistent. I just had a thought that we could instead use the id with the greatest expression, but that could results in different translations for different objects, which seemed not so great. So I left it as just the first. I also considered concatenation, but that seemed too messy, again for little gain.

Noting also this seems reasonable to me, and the updated docs explain clearly what is done, so 👍

@jashapiro jashapiro merged commit b4aeb0c into main Dec 17, 2024
2 checks passed
@jashapiro jashapiro deleted the jashapiro/sum-rownames branch December 17, 2024 16:36
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