-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #98 from tillenglert/Update_Docs
Update docs
- Loading branch information
Showing
6 changed files
with
98 additions
and
30 deletions.
There are no files selected for viewing
This file contains 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 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 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,73 @@ | ||
--- | ||
title: Configuration | ||
description: Configuration of the nf-co2footprint plugin | ||
--- | ||
|
||
# Configuration of the nf-co2footprint plugin | ||
|
||
## General usage | ||
To test if the plugin works on your system please follow the quick start guide ([Quick Start](https://nextflow-io.github.io/nf-co2footprint/#quick-start)) on a small pipeline like [nextflow-io/hello](https://github.com/nextflow-io/hello). | ||
|
||
You can adjust the nf-co2footprint plugin parameters in your config file as follows: | ||
|
||
```groovy title="nextflow.config" | ||
plugins { | ||
id '[email protected]' | ||
} | ||
def co2_timestamp = new java.util.Date().format( 'yyyy-MM-dd_HH-mm-ss') | ||
co2footprint { | ||
traceFile = "${params.outdir}/co2footprint/co2footprint_trace_${co2_timestamp}.txt" | ||
reportFile = "${params.outdir}/co2footprint/co2footprint_report_${co2_timestamp}.html" | ||
summaryFile = "${params.outdir}/co2footprint/co2footprint_summary_${co2_timestamp}.txt" | ||
ci = 300 | ||
pue = 1.4 | ||
} | ||
``` | ||
|
||
Include the config file for your pipeline run using the `-c` Nextflow parameter, for example as follows: | ||
|
||
```bash | ||
nextflow run nextflow-io/hello -c nextflow.config | ||
``` | ||
|
||
## Cloud computations | ||
|
||
At the moment the nf-co2footprint can not natively support cloud computations. | ||
|
||
!!! warning | ||
|
||
This is not tested and might not work as intended, but cloud native support will be implemented soon. | ||
|
||
If you are still keen to get insights into your CO<sub>2</sub> you could try to find out the following and append it to your config: | ||
|
||
- The location and hereby CI of your instance. | ||
- The PUE of the data center, where the instance is located | ||
- The power draw per core of your selected instance. | ||
- If available the power draw of the memory per GB. | ||
|
||
Your configuration could look something like: | ||
|
||
```groovy title="nextflow_cloud.config" | ||
plugins { | ||
id '[email protected]' | ||
} | ||
def co2_timestamp = new java.util.Date().format( 'yyyy-MM-dd_HH-mm-ss') | ||
co2footprint { | ||
traceFile = "${params.outdir}/co2footprint/co2footprint_trace_${co2_timestamp}.txt" | ||
reportFile = "${params.outdir}/co2footprint/co2footprint_report_${co2_timestamp}.html" | ||
summaryFile = "${params.outdir}/co2footprint/co2footprint_summary_${co2_timestamp}.txt" | ||
ci = 300 | ||
pue = 1.4 | ||
ignoreCpuModel = true | ||
powerdrawCpuDefault = 8 | ||
powerdrawMem = 0.3725 | ||
} | ||
``` | ||
|
||
## GPU computations | ||
|
||
So far tracking of GPU driven computations are not implemented, and functionality might be impaired. |
This file contains 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,15 @@ | ||
--- | ||
title: Output | ||
description: Output of the nf-co2footprint plugin. | ||
--- | ||
|
||
## Output | ||
|
||
The nf-co2footprint plugin creates three output files: | ||
|
||
- `traceFile`: The trace file includes calculations for each task, similar to the Nextflow trace file. Within this file you can find resource usage details of specific tasks and also the hardware information of your CPU. | ||
- `summaryFile`: The summary file includes the total CO<sub>2</sub> footprint of the workflow run and the configuration used for the plugin. | ||
- `reportFile`: The HTML report contains information about the carbon footprint of the whole pipeline run as well as plots showing the distributions of the CO<sub>2</sub> emissions for the different processes. Additionally, it contains a table with the metrics for all individual tasks. | ||
|
||
|
||
|
This file contains 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 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