-
Notifications
You must be signed in to change notification settings - Fork 10
Add process for generating Benchmark reports #74
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
Merged
Merged
Changes from all commits
Commits
Show all changes
25 commits
Select commit
Hold shift + click to select a range
6401998
Merge pull request #62 from seqeralabs/dev
drpatelh cdcf64b
First test implementation of benchmarks to nf-aggregate
FloWuenne 712e7f7
First working alpha version.
FloWuenne 15fcb6b
Updated benchmark params.
FloWuenne 476d6dc
Fully working basic version of QL reports.
FloWuenne 7aaa147
Updated and fixed schema
FloWuenne a372a1d
Ported from nf-validation to nf-schema2.3.0
FloWuenne 9b9ca1c
Remove unwanted samplesheet test file.
FloWuenne 1503f20
Small edits to benchmark report process.
FloWuenne 704eb4b
Renamed cur report param and updated schema.
FloWuenne 403b1da
Added AWS Cur report to quarto render call.
FloWuenne d35a849
Testing stageinMode copy for benchmark reports.
FloWuenne 1f5a256
Another attempt to make it work on AWS.
FloWuenne d7779a5
Added full task workdir to AWS cost report path.
FloWuenne 6a007a6
Removed debug and copy mode and added short docs.
FloWuenne cfc6ea7
Removed old samplesheet creation logic from workflow main.nf
FloWuenne af45928
Fix spacing in nextflow.config.
FloWuenne 7a72ee9
Added containerOptions to run as root to BENCHMARK_REPORT.
FloWuenne 7438376
Move containerOptions into nextflow.config for BENCHMARK_REPORT.
FloWuenne 93db367
Updated benchmark_reports container version.
FloWuenne fb4265e
Update README.md
FloWuenne ea6ec6c
Update README.md
FloWuenne c38e05f
Integrated review comments, updated schema, added versions to MultiQC.
FloWuenne ee39861
Removed deprecated parameter validationSchemaIgnoreParams from config…
FloWuenne 7306b35
Fixed versions.yml formatting for MultiQC in BENCHMARK_REPORT
FloWuenne 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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,48 @@ | ||
| process BENCHMARK_REPORT { | ||
|
|
||
| container 'cr.seqera.io/scidev/benchmark-reports:sha-b370978' | ||
|
|
||
| input: | ||
| path run_dumps | ||
| val groups | ||
| path benchmark_aws_cur_report | ||
|
|
||
| output: | ||
| path "benchmark_report.html" , emit: benchmark_html | ||
| path "versions.yml" , emit: versions | ||
|
|
||
| script: | ||
| def aws_cost_param = benchmark_aws_cur_report ? "--profile cost -P aws_cost:\$TASK_DIR/${benchmark_aws_cur_report}" : "" | ||
| def benchmark_samplesheet = "benchmark_samplesheet.csv" | ||
| """ | ||
| # Set up R environment from renv | ||
| export R_LIBS_USER=/project/renv/library/linux-ubuntu-noble/R-4.4/x86_64-pc-linux-gnu | ||
| TASK_DIR="\$PWD" | ||
|
|
||
| # Setup cache directories | ||
| export QUARTO_CACHE=/tmp/quarto/cache | ||
| export XDG_CACHE_HOME=/tmp/quarto | ||
|
|
||
| # Create the benchmark samplesheet csv | ||
| echo "group,file_path" > ${benchmark_samplesheet} | ||
| ${groups.withIndex().collect { group, idx -> | ||
| "echo \"${group},\$TASK_DIR/${run_dumps[idx]}\" >> ${benchmark_samplesheet}" | ||
| }.join('\n')} | ||
|
|
||
| cd /project | ||
| quarto render main_benchmark_report.qmd \\ | ||
| -P log_csv:"\$TASK_DIR/"${benchmark_samplesheet} \\ | ||
| $aws_cost_param \\ | ||
| --output-dir .\\ | ||
| --output benchmark_report.html | ||
|
|
||
| cp /project/benchmark_report.html "\$TASK_DIR/" | ||
| cd "\$TASK_DIR/" | ||
|
|
||
| cat <<-END_VERSIONS > versions.yml | ||
| "${task.process}": | ||
| r: \$(R --version | head -1 | sed 's/R version \\([0-9.]*\\).*/\\1/') | ||
| quarto-cli: \$(quarto --version | head -1 | sed 's/quarto //g') | ||
| 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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,10 @@ | ||
| process { | ||
| withName: 'BENCHMARK_REPORT' { | ||
| publishDir = [ | ||
| path: { "${params.outdir}/${metaOut?.projectName?.replace("/", "_") ?: ""}/benchmark_report" }, | ||
| mode: params.publish_dir_mode, | ||
| saveAs: { filename -> filename.equals('versions.yml') || filename.endsWith('.json') ? null : filename } | ||
| ] | ||
| containerOptions = "--user root" | ||
| } | ||
| } |
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
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
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
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 |
|---|---|---|
| @@ -1,3 +1,4 @@ | ||
| includeConfig '../../modules/local/seqera_runs_dump/nextflow.config' | ||
| includeConfig '../../modules/local/plot_run_gantt/nextflow.config' | ||
| includeConfig '../../modules/nf-core/multiqc/nextflow.config' | ||
| includeConfig '../../modules/local/benchmark_report/nextflow.config' |
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.
Uh oh!
There was an error while loading. Please reload this page.