Change read name to {SRR}.{rid} or {SRR}.{rid}.{sid}#59
Conversation
Summary of ChangesHello @timoast, 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 introduces a significant improvement to the read naming scheme within the output FASTQ and FASTA files. The primary goal is to standardize read identifiers by prepending the SRR accession, which is crucial for seamless integration with various bioinformatics tools, such as Cell Ranger, that depend on uniform naming conventions across multiple read files. This modification enhances the utility and interoperability of the generated output. 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 introduces a useful feature to customize read names in FASTA/FASTQ output by prefixing them with the SRA accession. The implementation is well-structured, passing the necessary options down through the function calls. I've found one area for improvement regarding code duplication in src/dump/utils.rs, where the logic for generating read headers is repeated. Extracting this into a helper function would enhance maintainability. Overall, this is a great addition.
|
Thanks for the PR this is a good addition! I made some small changes to code to split up the tuple in the option and to let users also add in the segment id to their split files (if they want it). Cheers! |
Hi @noamteyssier
Thanks for making this awesome package!
This is a small change in how the reads are named that I found useful for some stuff I've been working on, so I thought I'd open a PR in case you're interested to add this change. Some tools (for example, cellranger) require that read names are matching across the different output files (R1, R2, etc.).
Here I modified the fastq and fasta output so that the reads are named as:
--split: {SRR}.{spot_number}--split: {SRR}.{spot_number}.{segment_number} (keep the segment number for interleaved fastq output)