Skip to content
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

Restructure depth results #299

Merged
merged 3 commits into from
May 13, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0

- [#269](https://github.com/nf-core/mag/pull/269),[#283](https://github.com/nf-core/mag/pull/283),[#289](https://github.com/nf-core/mag/pull/289) - Update to nf-core 2.3.2 `TEMPLATE`
- [#286](https://github.com/nf-core/mag/pull/286) - Cite our publication instead of the preprint
- [#299](https://github.com/nf-core/mag/pull/299) - Add extra results folder `GenomeBinning/depths` for `[assembler]-[sample/group]-depth.txt.gz`, `bin_depths_summary.tsv` and `[assembler]-[binner]-[sample/group]-binDepths.heatmap.png`

### `Fixed`

Expand Down
12 changes: 10 additions & 2 deletions conf/modules.config
Original file line number Diff line number Diff line change
Expand Up @@ -201,7 +201,15 @@ process {
]
}

withName: 'MAG_DEPTHS_PLOT|MAG_DEPTHS_SUMMARY|BIN_SUMMARY' {
withName: 'MAG_DEPTHS_PLOT|MAG_DEPTHS_SUMMARY' {
publishDir = [
path: { "${params.outdir}/GenomeBinning/depths" },
mode: params.publish_dir_mode,
pattern: "*.{png,tsv}"
]
}

withName: 'BIN_SUMMARY' {
publishDir = [
path: { "${params.outdir}/GenomeBinning" },
mode: params.publish_dir_mode,
Expand Down Expand Up @@ -363,7 +371,7 @@ process {
}
withName: METABAT2_JGISUMMARIZEBAMCONTIGDEPTHS {
publishDir = [
path: { "${params.outdir}/GenomeBinning/" },
path: { "${params.outdir}/GenomeBinning/depths" },
mode: params.publish_dir_mode,
pattern: '*-depth.txt.gz'
]
Expand Down
4 changes: 2 additions & 2 deletions docs/output.md
Original file line number Diff line number Diff line change
Expand Up @@ -261,7 +261,7 @@ Sequencing depth per contig and sample is generated by `jgi_summarize_bam_contig
<details markdown="1">
<summary>Output files</summary>

- `GenomeBinning/`
- `GenomeBinning/depths/`
- `[assembler]-[sample/group]-depth.txt.gz`: Sequencing depth for each contig and sample or group, only for short reads.

</details>
Expand Down Expand Up @@ -334,7 +334,7 @@ For each genome bin the median sequencing depth is computed based on the corresp
<details markdown="1">
<summary>Output files</summary>

- `GenomeBinning/`
- `GenomeBinning/depths/`
- `bin_depths_summary.tsv`: Summary of bin sequencing depths for all samples. Depths are available for samples mapped against the corresponding assembly, i.e. according to the mapping strategy specified with `--binning_map_mode`. Only for short reads.
- `[assembler]-[binner]-[sample/group]-binDepths.heatmap.png`: Clustered heatmap showing bin abundances of the assembly across samples. Bin depths are transformed to centered log-ratios and bins as well as samples are clustered by Euclidean distance. Again, sample depths are available according to the mapping strategy specified with `--binning_map_mode`.

Expand Down