fix!: make star index output and star align input idx a multiext()#5226
fix!: make star index output and star align input idx a multiext()#5226dlaehnemann wants to merge 12 commits into
Conversation
|
Warning Rate limit exceeded
Your organization is not enrolled in usage-based pricing. Contact your admin to enable usage-based pricing to continue reviews beyond the rate limit, or try again in 46 minutes and 7 seconds. ⌛ How to resolve this issue?After the wait time has elapsed, a review can be triggered using the We recommend that you space out your commits to avoid hitting the rate limit. 🚦 How do rate limits work?CodeRabbit enforces hourly rate limits for each developer per organization. Our paid plans have higher rate limits than the trial, open-source and free plans. In all cases, we re-allow further reviews after a brief timeout. Please see our FAQ for further information. 📝 WalkthroughWalkthroughRules and wrappers for STAR index and alignment now enumerate index files with Changes
Sequence Diagram(s)mermaid Estimated code review effort🎯 3 (Moderate) | ⏱️ ~20 minutes 🚥 Pre-merge checks | ✅ 2 | ❌ 1❌ Failed checks (1 warning)
✅ Passed checks (2 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing Touches🧪 Generate unit tests (beta)
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. Comment |
There was a problem hiding this comment.
Actionable comments posted: 1
🤖 Prompt for all review comments with AI agents
Verify each finding against the current code and only fix it if needed.
Inline comments:
In `@bio/star/align/wrapper.py`:
- Around line 48-55: The call to path.commonpath(snakemake.input.get("idx")) can
raise ValueError when "idx" is missing, so first retrieve
snakemake.input.get("idx") into a local (e.g., idx = snakemake.input.get("idx"))
and guard it for None/empty; if missing, raise the intended KeyError; otherwise
call path.commonpath(idx) and wrap that call in a try/except ValueError to
convert any ValueError into the same KeyError message. Update the block around
genome_dir, path.commonpath and the KeyError so missing or invalid idx always
results in the custom KeyError.
🪄 Autofix (Beta)
Fix all unresolved CodeRabbit comments on this PR:
- Push a commit to this branch (recommended)
- Create a new PR with the fixes
ℹ️ Review info
⚙️ Run configuration
Configuration used: Organization UI
Review profile: CHILL
Plan: Pro
Run ID: 307c58b5-994e-4fc3-b0dd-ceeb309bd836
📒 Files selected for processing (5)
bio/star/align/test/Snakefilebio/star/align/wrapper.pybio/star/index/test/Snakefilebio/star/index/wrapper.pytest_wrappers.py
…w respective STAR error with recommendation, if it's too small)
|
Note: with the new output / input structure for the star index, this will break previously copy-pasted versions of the two wrappers. So this is marked as breaking and a major version bump. So if there are other breaking changes coming up, maybe this could be bundled. And we could possibly wait for other non-breaking stuff to be released, before merging this PR here. It is not urgent, |
|
Looks good! |
|
Do you have any other breaking changes coming up? Or should we just merge and release this, bumping to a new major version? |
The motivation for explicitly naming the outputs of star indexing and the inputs for star align, are to be able to use
input.size_mbfor dynamic memory requirements for star align (and possibly star index).QC
snakemake-wrappers.While the contributions guidelines are more extensive, please particularly ensure that:
test.pywas updated to call any added or updated example rules in aSnakefileinput:andoutput:file paths in the rules can be chosen arbitrarilyinput:oroutput:)tempfile.gettempdir()points tometa.yamlcontains a link to the documentation of the respective tool or command underurl:Summary by CodeRabbit
Bug Fixes
Performance / Reliability
Documentation / Metadata
Tests