-
Notifications
You must be signed in to change notification settings - Fork 203
feat: Salmon-tximport meta-wrapper pathvars update #4665
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: master
Are you sure you want to change the base?
Conversation
|
Warning Rate limit exceeded@tdayris has exceeded the limit for the number of commits or files that can be reviewed per hour. Please wait 17 minutes and 8 seconds before requesting another review. ⌛ 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. 📒 Files selected for processing (3)
📝 WalkthroughWalkthroughAdds a declarative Changes
Sequence Diagram(s)sequenceDiagram
participant User
participant Snakemake as SMK
participant MetaWrapper as MW
participant Tools
rect rgba(200,230,255,0.5)
note right of SMK: config + meta.pathvars resolved
User->>SMK: run workflow (module salmon_tximport)
SMK->>MW: expand rules with placeholders
end
rect rgba(220,255,220,0.5)
SMK->>Tools: salmon_decoy_sequences(inputs: <transcriptome_sequence>,<genome_sequence>)
Tools-->>SMK: gentrome, decoys -> saved under <resources>
SMK->>Tools: salmon_index_gentrome(inputs: <resources>/gentrome.fasta,decoys)
Tools-->>SMK: index files -> <resources>/salmon_gentrome_index/
SMK->>Tools: salmon_quant_reads(inputs: <reads_r1>,<reads_r2>, index:<resources>/salmon_gentrome_index/, gtf:<genome_annotation>)
Tools-->>SMK: per-sample quant outputs -> <results>/pseudo_mapping/{per}/...
SMK->>Tools: tximport(inputs: per-sample quant from <results>, tx2gene:<tx_to_gene>)
Tools-->>SMK: txi -> <results>/tximport/SummarizedExperimentObject.RDS
end
note over SMK: Logs written under <logs> paths
Estimated code review effort🎯 3 (Moderate) | ⏱️ ~25 minutes Areas to review closely:
Possibly related PRs
Suggested reviewers
Pre-merge checks and finishing touches❌ Failed checks (1 warning, 1 inconclusive)
✅ Passed checks (1 passed)
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: 2
📜 Review details
Configuration used: CodeRabbit UI
Review profile: CHILL
Plan: Pro
⛔ Files ignored due to path filters (8)
meta/bio/salmon_tximport/test/reads/S1.fastq.gzis excluded by!**/*.gzmeta/bio/salmon_tximport/test/reads/S1_R1.fq.gzis excluded by!**/*.gzmeta/bio/salmon_tximport/test/reads/S1_R2.fq.gzis excluded by!**/*.gzmeta/bio/salmon_tximport/test/reads/S2.fastq.gzis excluded by!**/*.gzmeta/bio/salmon_tximport/test/reads/S2_R1.fq.gzis excluded by!**/*.gzmeta/bio/salmon_tximport/test/reads/S2_R2.fq.gzis excluded by!**/*.gzmeta/bio/salmon_tximport/test/reads/S3.fastq.gzis excluded by!**/*.gzmeta/bio/salmon_tximport/test/reads/S4.fastq.gzis excluded by!**/*.gz
📒 Files selected for processing (8)
meta/bio/salmon_tximport/meta.yaml(1 hunks)meta/bio/salmon_tximport/meta_wrapper.smk(5 hunks)meta/bio/salmon_tximport/test/Snakefile(1 hunks)meta/bio/salmon_tximport/test/config.yaml(1 hunks)meta/bio/salmon_tximport/test/resources/genome.fasta.fai(1 hunks)meta/bio/salmon_tximport/test/resources/transcriptome.fasta(1 hunks)meta/bio/salmon_tximport/test/resources/transcriptome.fasta.fai(1 hunks)test_wrappers.py(1 hunks)
🧰 Additional context used
📓 Path-based instructions (1)
**/*.py
⚙️ CodeRabbit configuration file
**/*.py: Do not try to improve formatting.
Do not suggest type annotations for functions that are defined inside of functions or methods.
Do not suggest type annotation of theselfargument of methods.
Do not suggest type annotation of theclsargument of classmethods.
Do not suggest return type annotation if a function or method does not contain areturnstatement.
Files:
test_wrappers.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). (3)
- GitHub Check: docs
- GitHub Check: testing
- GitHub Check: Summary
🔇 Additional comments (7)
meta/bio/salmon_tximport/test/resources/transcriptome.fasta.fai (1)
1-2: LGTM: Test resource file is correctly formatted.The FASTA index file follows the standard
.faiformat and provides appropriate test data for the pathvars-based configuration system.meta/bio/salmon_tximport/test/resources/genome.fasta.fai (1)
1-1: LGTM: Genome index file is correctly formatted.The FASTA index file is properly structured and aligns with the new pathvars configuration for test resources.
meta/bio/salmon_tximport/test/config.yaml (1)
1-9: LGTM: Test configuration properly defines pathvars mappings.The pathvars configuration aligns with the schema defined in
meta.yamland provides appropriate test resource paths.test_wrappers.py (1)
1104-1104: LGTM: Test expectation updated to match new pathvars structure.The path correctly reflects the new results-prefixed output location defined in the meta-wrapper.
meta/bio/salmon_tximport/test/resources/transcriptome.fasta (1)
1-5: LGTM: Test sequences updated appropriately.The FASTA sequences have been updated and their lengths match the corresponding
.faiindex file entries (transcript1: 49bp, transcript2: 81bp).meta/bio/salmon_tximport/test/Snakefile (1)
6-13: LGTM: Configuration properly integrated into test workflow.The addition of
configfileand the block-stylemeta_wrapperwith explicitconfigsection correctly enables the pathvars-based configuration system.meta/bio/salmon_tximport/meta_wrapper.smk (1)
1-89: LGTM: Placeholder-based parameterization for salmon rules is well-implemented.The
salmon_decoy_sequences,salmon_index_gentrome, andsalmon_quant_readsrules correctly use pathvars placeholders (<transcriptome_sequence>,<genome_sequence>,<resources>,<logs>,<reads_r1>,<reads_r2>,<genome_annotation>,<per>) to enable user configuration without code modification.
This PR tries to make salmon-tximport meta-wrapper accessible through
pathvars. Yet, I'd like to get some advice on how to proceed smoothly with theexpandkeyword and thepathvars. But the meta-wrapper wouldn't work if user does not modify the last rule : for now, I still list samples within theexpandfunction.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
New Features
Tests