Skip to content

Gdr 3186#177

Merged
bczech merged 11 commits intomainfrom
GDR-3186
Dec 3, 2025
Merged

Gdr 3186#177
bczech merged 11 commits intomainfrom
GDR-3186

Conversation

@bczech
Copy link
Contributor

@bczech bczech commented Nov 19, 2025

Description

What changed?

Related JIRA issue: GDR-3186

Why was it changed?

To add support for merging additional variables

Checklist for sustainable code base

  • I added tests for any code changed/added
  • I added documentation for any code changed/added
  • I made sure naming of any new functions is self-explanatory and consistent

Logistic checklist

  • Package version bumped
  • Changelog updated

Screenshots (optional)

@bczech bczech requested a review from a team as a code owner November 19, 2025 10:50
@bczech bczech requested review from darsoo, gladkia and j-smola and removed request for a team November 19, 2025 10:50
@gemini-code-assist
Copy link
Contributor

Summary of Changes

Hello @bczech, I'm Gemini Code Assist1! I'm currently reviewing this pull request and will post my feedback shortly. In the meantime, here's a summary to help you and other reviewers quickly get up to speed!

This pull request enhances the gDRutils package by adding a significant feature that allows users to merge supplementary metadata variables directly into drug identifier columns during the conversion of SummarizedExperiment and MultiAssayExperiment objects to data.tables. This provides a more enriched and context-aware representation of drug data, improving downstream analysis and reporting by embedding relevant details alongside drug names.

Highlights

  • New Feature: Merging Additional Variables: Introduced the capability to merge additional metadata variables into drug identifier columns within the convert_se_assay_to_dt and convert_mae_assay_to_dt functions.
  • New Function: update_drug_name: Added a new internal function update_drug_name to facilitate the concatenation of specified additional variables into existing drug identifier columns (e.g., DrugName, Gnumber).
  • Enhanced Data Conversion Functions: The convert_se_assay_to_dt and convert_mae_assay_to_dt functions now accept a new boolean parameter merge_additional_variables to control this new merging behavior.
  • Package Version Update: The gDRutils package version has been bumped from 1.9.2 to 1.9.3, reflecting the new functionality.
  • Comprehensive Testing: New test cases have been added to validate the functionality of update_drug_name and the merge_additional_variables parameter in convert_se_assay_to_dt.
Using Gemini Code Assist

The full guide for Gemini Code Assist can be found on our documentation page, here are some quick tips.

Invoking Gemini

You can request assistance from Gemini at any point by creating a comment using either /gemini <command> or @gemini-code-assist <command>. Below is a summary of the supported commands on the current page.

Feature Command Description
Code Review /gemini review Performs a code review for the current pull request in its current state.
Pull Request Summary /gemini summary Provides a summary of the current pull request in its current state.
Comment @gemini-code-assist Responds in comments when explicitly tagged, both in pull request comments and review comments.
Help /gemini help Displays a list of available commands.

Customization

To customize Gemini Code Assist for GitHub experience, repository maintainers can create a configuration file and/or provide a custom code review style guide (such as PEP-8 for Python) by creating and adding files to a .gemini/ folder in the base of the repository. Detailed instructions can be found here.

Limitations & Feedback

Gemini Code Assist may make mistakes. Please leave feedback on any instances where its feedback is incorrect or counter productive. You can react with 👍 and 👎 on @gemini-code-assist comments. If you're interested in giving your feedback about your experience with Gemini Code Assist for Github and other Google products, sign up here.

You can also get AI-powered code generation, chat, as well as code reviews directly in the IDE at no cost with the Gemini Code Assist IDE Extension.

Footnotes

  1. Review the Privacy Notices, Generative AI Prohibited Use Policy, Terms of Service, and learn how to configure Gemini Code Assist in GitHub here. Gemini can make mistakes, so double check it and use code with caution.

Copy link
Contributor

@gemini-code-assist gemini-code-assist bot left a comment

Choose a reason for hiding this comment

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

Code Review

This pull request adds functionality to merge additional variables into drug names. The implementation is mostly correct, but I've found a few issues. There are several non-breaking space characters in documentation and comments that should be removed. More critically, a non-breaking space in a formula string could cause a bug. I've also suggested a refactoring for the new update_drug_name function to improve its performance and readability.

@gladkia
Copy link
Collaborator

gladkia commented Nov 19, 2025

GJ!

bczech and others added 3 commits December 2, 2025 13:26
Co-authored-by: j-smola <31825957+j-smola@users.noreply.github.com>
@bczech bczech merged commit 83b0077 into main Dec 3, 2025
7 of 10 checks passed
@bczech bczech deleted the GDR-3186 branch December 3, 2025 08:26
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