Add the option to generate complementary subgenic regions#396
Add the option to generate complementary subgenic regions#396FerriolCalvet merged 2 commits intodevfrom
Conversation
There was a problem hiding this comment.
Pull request overview
This pull request adds support for generating "negative" (complementary) regions for subgenic regions in the omega workflow. When enabled, for each subgenic region (domain/exon), the system will also create a region containing all positions of the gene except those in that specific subgenic region.
Key changes:
- Added new boolean parameter
omega_negative_regionsto control negative region generation - Updated workflow to pass the
--negative-regionsflag when the parameter is enabled - Implemented logic in
add_hotspots.pyto compute and output negative regions
Reviewed changes
Copilot reviewed 3 out of 4 changed files in this pull request and generated 1 comment.
| File | Description |
|---|---|
| nextflow_schema.json | Documents the new omega_negative_regions parameter with description and help text |
| nextflow.config | Adds the omega_negative_regions parameter with default value of false |
| modules/local/expand_regions/main.nf | Passes the --negative-regions flag to the Python script based on the parameter value |
| bin/add_hotspots.py | Implements the core logic to generate negative regions by computing gene positions that exclude the subgenic region |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
|
This is how the result looks for some normal bladder test data: |
There was a problem hiding this comment.
Pull request overview
Copilot reviewed 3 out of 4 changed files in this pull request and generated no new comments.
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
Update the add_hotspots.py script so that for each new subgenic region it also generates a new subgenic regions with the complementary part of the gene for the region, meaning a new region that contains all the positions of the gene except that specific domain/exon/subgenic region
AI summary
This pull request adds support for generating complements of subgenic regions in the pipeline. The main changes introduce a new parameter, update configuration files, and modify the process to handle this new option.
Support for subgenic regions complement:
omega_subgenic_regions_complementtonextflow.configto control whether complements for subgenic regions should be generated.nextflow_schema.jsonto include documentation and UI metadata for the newomega_subgenic_regions_complementparameter.Pipeline process updates:
EXPAND_REGIONSprocess inmodules/local/expand_regions/main.nfto pass the--subgenic-regions-complementflag toadd_hotspots.pywhen the new parameter is enabled.