197 add per step barcode timing statistics#199
Conversation
Summary of ChangesHello @noamteyssier, 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 significantly enhances the observability of the CRISPR and GEX mapping workflows by integrating a robust timing mechanism. It captures the execution duration of each processing step, from initial mapping and sorting to barcode correction, UMI correction, counting, and H5AD conversion. The collected timing data is then serialized and written to a dedicated TSV file, offering valuable performance metrics for analysis and future optimizations. This change provides a clearer understanding of where computational resources are being spent within the workflow. Highlights
Using Gemini Code AssistThe 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
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 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
|
There was a problem hiding this comment.
Code Review
This pull request successfully adds timing statistics for each step of the workflow. The timing data is collected for various modules and written to a TSV file. The changes are spread across several crates, including dependency updates to use the csv crate from the workspace.
My review focuses on improving maintainability. I've identified two areas with significant code duplication that could be refactored to make the code easier to manage in the future:
- The main
runfunctions incrispr.rsandgex.rsare nearly identical. - The timing logic within the
ibu_stepsfunction inutils.rsis highly repetitive.
Addressing these points would make the new timing feature more robust and the overall codebase cleaner.
No description provided.