Skip to content

fix: multiple minor fixes#384

Merged
johanneskoester merged 2 commits intomasterfrom
fix/minor_fixes
Aug 27, 2025
Merged

fix: multiple minor fixes#384
johanneskoester merged 2 commits intomasterfrom
fix/minor_fixes

Conversation

@FelixMoelder
Copy link
Copy Markdown
Contributor

@FelixMoelder FelixMoelder commented Jul 4, 2025

This PR includes some minor fixes, changes and cleanups.

fix: When the column 'umi_len' has empty cells it automatically gets interpreted as float leading to an invalid parameterization of fastp. This has been fixed by setting the column to Int64.
change: We needed to apply a post-deploy script to the arriba environment in order to covert fusion calls to vcf record. The latest version of arriba includes that conversion script and there for the post-deploy script is not necessary anymore.
cleanup: removed a print command for debugging from split-call-tables.py

Summary by CodeRabbit

  • New Features

    • Improved handling of sample files by explicitly supporting a nullable integer type for the "umi_len" column.
  • Bug Fixes

    • Removed extraneous debugging output from variant table processing.
  • Chores

    • Updated the "arriba" package version to 2.5 for improved fusion calling.
    • Upgraded the "star_arriba" workflow component to a newer version.
    • Removed an obsolete script used for updating fusion conversion tools.

@coderabbitai
Copy link
Copy Markdown

coderabbitai Bot commented Jul 4, 2025

Walkthrough

The changes update the Arriba tool version in the environment configuration, remove a post-deployment script that manually patched Arriba, update a meta wrapper version reference, specify a pandas dtype for a column in a sample file, and remove debug print statements from a Python script.

Changes

File(s) Change Summary
workflow/envs/arriba.yaml Updated Arriba package version from 2.4 to 2.5.
workflow/envs/arriba.post-deploy.sh Deleted script that patched Arriba by downloading a specific script version from GitHub.
workflow/rules/common.smk Added explicit pandas dtype for "umi_len" column as nullable integer ("Int64") when reading samples.
workflow/rules/fusion_calling.smk Updated meta wrapper "star_arriba" version reference from v3.13.3 to v7.1.0.
workflow/scripts/split-call-tables.py Removed debug print statements from PopulationDb.variants and _load_variants methods.

Estimated code review effort

File(s) Effort
workflow/envs/arriba.yaml 1 (<30 minutes)
workflow/envs/arriba.post-deploy.sh 1 (<30 minutes)
workflow/rules/common.smk 1 (<30 minutes)
workflow/rules/fusion_calling.smk 1 (<30 minutes)
workflow/scripts/split-call-tables.py 2 (30–90 minutes)

Suggested reviewers

  • johanneskoester

Poem

A hop and a skip, Arriba's anew,
No more patching scripts to do!
Columns typed with gentle care,
Debug prints vanish in the air.
With wrappers fresh and code so neat,
This bunny’s work is now complete! 🐇✨


📜 Recent review details

Configuration used: CodeRabbit UI
Review profile: CHILL
Plan: Pro

📥 Commits

Reviewing files that changed from the base of the PR and between 7472d1c and f567489.

📒 Files selected for processing (1)
  • workflow/scripts/split-call-tables.py (0 hunks)
💤 Files with no reviewable changes (1)
  • workflow/scripts/split-call-tables.py
⏰ Context from checks skipped due to timeout of 90000ms. You can increase the timeout in your CodeRabbit configuration to a maximum of 15 minutes (900000ms). (7)
  • GitHub Check: test sra download
  • GitHub Check: test primers
  • GitHub Check: test local input
  • GitHub Check: test testcase generation
  • GitHub Check: test target regions, multiple BEDs
  • GitHub Check: test target regions
  • GitHub Check: test no candidate filtering
✨ Finishing Touches
  • 📝 Generate Docstrings

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share
🪧 Tips

Chat

There are 3 ways to chat with CodeRabbit:

  • Review comments: Directly reply to a review comment made by CodeRabbit. Example:
    • I pushed a fix in commit <commit_id>, please review it.
    • Explain this complex logic.
    • Open a follow-up GitHub issue for this discussion.
  • Files and specific lines of code (under the "Files changed" tab): Tag @coderabbitai in a new review comment at the desired location with your query. Examples:
    • @coderabbitai explain this code block.
    • @coderabbitai modularize this function.
  • PR comments: Tag @coderabbitai in a new PR comment to ask questions about the PR branch. For the best results, please provide a very specific query, as very limited context is provided in this mode. Examples:
    • @coderabbitai gather interesting stats about this repository and render them as a table. Additionally, render a pie chart showing the language distribution in the codebase.
    • @coderabbitai read src/utils.ts and explain its main purpose.
    • @coderabbitai read the files in the src/scheduler package and generate a class diagram using mermaid and a README in the markdown format.
    • @coderabbitai help me debug CodeRabbit configuration file.

Support

Need help? Create a ticket on our support page for assistance with any issues or questions.

Note: Be mindful of the bot's finite context window. It's strongly recommended to break down tasks such as reading entire modules into smaller chunks. For a focused discussion, use review comments to chat about specific files and their changes, instead of using the PR comments.

CodeRabbit Commands (Invoked using PR comments)

  • @coderabbitai pause to pause the reviews on a PR.
  • @coderabbitai resume to resume the paused reviews.
  • @coderabbitai review to trigger an incremental review. This is useful when automatic reviews are disabled for the repository.
  • @coderabbitai full review to do a full review from scratch and review all the files again.
  • @coderabbitai summary to regenerate the summary of the PR.
  • @coderabbitai generate docstrings to generate docstrings for this PR.
  • @coderabbitai generate sequence diagram to generate a sequence diagram of the changes in this PR.
  • @coderabbitai resolve resolve all the CodeRabbit review comments.
  • @coderabbitai configuration to show the current CodeRabbit configuration for the repository.
  • @coderabbitai help to get help.

Other keywords and placeholders

  • Add @coderabbitai ignore anywhere in the PR description to prevent this PR from being reviewed.
  • Add @coderabbitai summary to generate the high-level summary at a specific location in the PR description.
  • Add @coderabbitai anywhere in the PR title to generate the title automatically.

CodeRabbit Configuration File (.coderabbit.yaml)

  • You can programmatically configure CodeRabbit by adding a .coderabbit.yaml file to the root of your repository.
  • Please see the configuration documentation for more information.
  • If your editor has YAML language server enabled, you can add the path at the top of this file to enable auto-completion and validation: # yaml-language-server: $schema=https://coderabbit.ai/integrations/schema.v2.json

Documentation and Community

  • Visit our Documentation for detailed information on how to use CodeRabbit.
  • Join our Discord Community to get help, request features, and share feedback.
  • Follow us on X/Twitter for updates and announcements.

Copy link
Copy Markdown

@coderabbitai coderabbitai Bot left a comment

Choose a reason for hiding this comment

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

Actionable comments posted: 1

🧹 Nitpick comments (1)
workflow/envs/arriba.yaml (1)

5-5: Add missing newline at end of file.

Static analysis detected that the file is missing a newline character at the end.

- - arriba =2.5
+ - arriba =2.5
+ 
📜 Review details

Configuration used: CodeRabbit UI
Review profile: CHILL
Plan: Pro

📥 Commits

Reviewing files that changed from the base of the PR and between 200acc8 and 7472d1c.

📒 Files selected for processing (5)
  • workflow/envs/arriba.post-deploy.sh (0 hunks)
  • workflow/envs/arriba.yaml (1 hunks)
  • workflow/rules/common.smk (1 hunks)
  • workflow/rules/fusion_calling.smk (1 hunks)
  • workflow/scripts/split-call-tables.py (0 hunks)
💤 Files with no reviewable changes (2)
  • workflow/scripts/split-call-tables.py
  • workflow/envs/arriba.post-deploy.sh
🧰 Additional context used
🧠 Learnings (1)
workflow/rules/common.smk (1)
Learnt from: johanneskoester
PR: snakemake-workflows/dna-seq-varlociraptor#346
File: workflow/rules/common.smk:122-135
Timestamp: 2024-12-13T08:46:33.627Z
Learning: In `workflow/rules/common.smk`, explicit error handling for reading TSV files (e.g., using `pd.read_csv`) is unnecessary when the files are specified in the configuration, as the configuration schema ensures their presence and correctness.
🪛 YAMLlint (1.37.1)
workflow/envs/arriba.yaml

[error] 5-5: no new line character at the end of file

(new-line-at-end-of-file)

⏰ Context from checks skipped due to timeout of 90000ms (7)
  • GitHub Check: test sra download
  • GitHub Check: test target regions, multiple BEDs
  • GitHub Check: test testcase generation
  • GitHub Check: test primers
  • GitHub Check: test no candidate filtering
  • GitHub Check: test local input
  • GitHub Check: test target regions
🔇 Additional comments (2)
workflow/envs/arriba.yaml (1)

5-5: LGTM! Version update aligns with PR objectives.

The arriba version update from 2.4 to 2.5 is correct and consistent with the PR's goal of modernizing the fusion calling workflow.

workflow/rules/common.smk (1)

14-14: Excellent fix for the umi_len dtype issue!

Adding "umi_len": "Int64" to the dtype specification correctly addresses the issue where empty cells in the umi_len column were being interpreted as float type, causing invalid parameterization in fastp. The use of pandas' nullable integer type (Int64) is the appropriate solution for handling missing values in integer columns.

Comment thread workflow/rules/fusion_calling.smk
@johanneskoester johanneskoester merged commit c5cee6d into master Aug 27, 2025
11 checks passed
@johanneskoester johanneskoester deleted the fix/minor_fixes branch August 27, 2025 13:25
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