-
Notifications
You must be signed in to change notification settings - Fork 1
12 add variant summary module #13
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
Draft
marrip
wants to merge
24
commits into
5-add-metrics_plotting_module
Choose a base branch
from
12-add-variant-summary-module
base: 5-add-metrics_plotting_module
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Draft
Changes from all commits
Commits
Show all changes
24 commits
Select commit
Hold shift + click to select a range
1795bf8
feat:adding metric module
Omer0191 24c694f
Update main.nf by changing header file
Omer0191 16a8445
feat: change input channel, rm hard-coded paths, set specific image
marrip fdb9278
feat: add new workflow parameters and set stub defaults
marrip 84f64e3
feat: add metrics module to workflow and construct input channel
marrip bafe432
feat: rename nf file to main.nf and use specific version
marrip 1a0d5dc
feat: local_app to acadia_500_wdl_workflow: rename nf file to main.nf
marrip 2f0f6a6
feat: rename process_metrics_files and handle absolute path requirement
marrip 6a655f6
feat: rename input to nxf_samplesheet
marrip e525e24
feat: rename input variables to be more descriptive/consistent
marrip 5387b48
feat: improve formatting in modules.config and attempt to follow more…
marrip 10ca12c
feat: replace old var names, improve channel logic, add metrics lates…
marrip 35b73bb
test: add mock data for stubbing
marrip af26756
chore: include new workflow output in gitignore
marrip 96d25a5
fix: correct raw_data_root_directory var name
marrip c141229
chore: editorconfig linting
marrip 69bfbe9
fix: use correct process name for TSO500_WORKFLOW_DEMULTIPLEX
marrip dae526b
feat: use version tag for TSOPPI image instead of latest
marrip cd37890
chore: update helptext for process_metrics_files_n
marrip db7efe8
Merge branch '5-add-metrics_plotting_module' into adapt-metrics-modul…
marrip 52da838
chore: turn off schema_lint
marrip 422f7b7
Merge pull request #10 from InPreD/adapt-metrics-module-to-standard
marrip 549eb71
fix: updated version taken from Omer branch
jaimicore 4fab7b0
feat: add_variant_summary nextflow module
jean-marc-costanzi File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,3 @@ | ||
| dataset_id,sample_id,molecule,sample_type,tumor_site,tumor_content,run_id,path_to_run,path_to_samplesheet,barcode | ||
| IPH0001,IPH0001-D01-T01-A19,dna,tumor,10,50,200103_NS500643_0003_AHG5MGBGYM,assets/stub_data/raw_data_root_directory/200103_NS500643_0003_AHG5MGBGYM,,UDP0029 | ||
| IPH0001,IPH0001-D01-N01-A19,dna,normal,XX,0,200103_NS500643_0003_AHG5MGBGYM,assets/stub_data/raw_data_root_directory/200103_NS500643_0003_AHG5MGBGYM,,UDP0030 |
File renamed without changes.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,44 @@ | ||
| process ADD_VARIANT_SUMMARY { | ||
| tag "$run_id" | ||
| label 'process_low' | ||
|
|
||
| container "inpred/tsoppi_main:v0.3.2" | ||
| containerOptions "-v \$(pwd):/inpred/data" | ||
|
|
||
| input: | ||
| tuple val(run_id), path(analysis_results_dir) | ||
|
|
||
| output: | ||
| path "${run_id}_variant_summary.tsv", emit: tsv | ||
| path 'versions.yml' , emit: versions | ||
|
|
||
| when: | ||
| task.ext.when == null || task.ext.when | ||
|
|
||
| script: | ||
| def args = task.ext.args ?: '' | ||
| """ | ||
| python ${params.user_scripts_dir}/summarize_run_variants.py \\ | ||
| -r \$(pwd)/${analysis_results_dir} \\ | ||
| -o \$(pwd)/${run_id}_variant_summary.tsv \\ | ||
| -s \$(pwd) \\ | ||
| $args | ||
|
|
||
| cat <<-END_VERSIONS > versions.yml | ||
| "${task.process}": | ||
| summarize_run_variants: \$(python ${params.user_scripts_dir}/summarize_run_variants.py --version 2>&1 | grep -oP 'version \\K[0-9.:-]+' || echo "0.3.2:22-06-07") | ||
| python: \$(python --version | sed 's/Python //g') | ||
| END_VERSIONS | ||
| """ | ||
|
|
||
| stub: | ||
| """ | ||
| touch ${run_id}_variant_summary.tsv | ||
|
|
||
| cat <<-END_VERSIONS > versions.yml | ||
| "${task.process}": | ||
| summarize_run_variants: stub | ||
| python: stub | ||
| END_VERSIONS | ||
| """ | ||
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,48 @@ | ||
| process PROCESS_METRICS_FILES { | ||
| tag "${id.size()}_runs" | ||
| label 'process_low' | ||
|
|
||
| container "inpred/tsoppi_main:v0.3.2" | ||
| containerOptions = "-v \$(pwd):/workdir -v \$(pwd):/inpred/data" | ||
|
|
||
| input: | ||
| tuple val(id), path(tsv, stageAs: "?/*"), path(xml, stageAs: "?/*") // stage file with index as folder name | ||
|
|
||
| output: | ||
| path "intermediate_metrics_files/master_metrics_table.tsv" , emit: 'tsv' | ||
| path "TSO500_run_metrics.pdf" , emit: 'pdf', optional: true | ||
| path 'versions.yml' , emit: versions | ||
|
|
||
| when: | ||
| task.ext.when == null || task.ext.when | ||
|
|
||
| script: | ||
| def args = task.ext.args ?: '' | ||
| for (int i = 0; i < id.size(); i++) { | ||
| args = args + " -m \$(pwd)/${tsv[i]} -r \$(pwd)/${xml[i]} -l ${id[i]}" // due to tsoppi container replacing absolute input mount paths we need to create absolute paths for staged files | ||
| } | ||
| """ | ||
| bash /inpred/user_scripts/process_metrics_files.sh \\ | ||
| --output_directory \$(pwd) \\ | ||
| --host_system_mounting_directory \$(pwd) \\ | ||
| $args | ||
|
|
||
| cat <<-END_VERSIONS > versions.yml | ||
| "${task.process}": | ||
| process_metrics_files: \$(bash /inpred/user_scripts/process_metrics_files.sh --version | grep process_metrics_files.py | awk '{print \$2}') | ||
| python: \$(python --version | sed 's/Python //g') | ||
| END_VERSIONS | ||
| """ | ||
|
|
||
| stub: | ||
| """ | ||
| mkdir intermediate_metrics_files | ||
| touch TSO500_run_metrics.pdf intermediate_metrics_files/master_metrics_table.tsv | ||
|
|
||
| cat <<-END_VERSIONS > versions.yml | ||
| "${task.process}": | ||
| process_metrics_files: stub | ||
| python: stub | ||
| END_VERSIONS | ||
| """ | ||
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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.
what does the
:-1000do?