-
Notifications
You must be signed in to change notification settings - Fork 45
fix: only use flavor chr_patch_hapl_scaff for homo_sapiens #169
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Conversation
…exist for other species (we'll have to see, whether isoformanalyzer will work for non-human, I guess)
WalkthroughThe Changes
Estimated code review effort🎯 2 (Simple) | ⏱️ ~8 minutes
Possibly related PRs
Suggested reviewers
Poem
Pre-merge checks and finishing touches✅ Passed checks (3 passed)
✨ Finishing touches🧪 Generate unit tests (beta)
📜 Recent review detailsConfiguration used: defaults Review profile: CHILL Plan: Pro 📒 Files selected for processing (1)
🚧 Files skipped from review as they are similar to previous changes (1)
⏰ 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). (1)
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.
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/rules/ref.smk (1)
26-26: Consider using direct config access for consistency.The rest of the file consistently uses direct config access (e.g., lines 7, 23, 24, 25). Using
lookup()here introduces inconsistency without apparent benefit.🔎 Apply this diff for consistency:
- flavor="chr_patch_hapl_scaff" if lookup(within=config, dpath="resources/ref/species") == "homo_sapiens" else "", # optional, e.g. chr_patch_hapl_scaff, see Ensembl FTP. + flavor="chr_patch_hapl_scaff" if config["resources"]["ref"]["species"] == "homo_sapiens" else "", # optional, e.g. chr_patch_hapl_scaff, see Ensembl FTP.
📜 Review details
Configuration used: defaults
Review profile: CHILL
Plan: Pro
📒 Files selected for processing (1)
workflow/rules/ref.smk(1 hunks)
🧰 Additional context used
🪛 GitHub Actions: Tests
workflow/rules/ref.smk
[error] 26-26: LookupError in file "/home/runner/work/rna-seq-kallisto-sleuth/rna-seq-kallisto-sleuth/workflow/rules/ref.smk": Error in lookup function with dpath: 'resource/ref/species'. Dpath not found.
|
From trying this in practice, it seems like the diffsplice functionality then only works for |
This flavor does not exist for other species. We'll have to see, whether isoformanalyzer will work for non-human, I guess.
Summary by CodeRabbit
✏️ Tip: You can customize this high-level summary in your review settings.