Skip to content

Commit

Permalink
Merge branch 'dev' into bounlu-patch-1
Browse files Browse the repository at this point in the history
  • Loading branch information
sateeshperi authored Nov 28, 2024
2 parents 587d0cc + 568bd06 commit 4258f22
Show file tree
Hide file tree
Showing 94 changed files with 4,511 additions and 4,368 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ on:

env:
NXF_ANSI_LOG: false
NFT_VER: "0.9.1"
NFT_VER: "0.9.2"
NFT_WORKDIR: "~"
NFT_DIFF: "pdiff"
NFT_DIFF_ARGS: "--line-numbers --width 120 --expand-tabs=2"
Expand Down
16 changes: 16 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,21 @@
# nf-core/methylseq

## [v2.8.0](https://github.com/nf-core/methylseq/releases/tag/2.8.0) - []

### Bug fixes & refactoring

- 🐛 fix fasta gunzip output [#462](https://github.com/nf-core/methylseq/pull/457)
- 🐛 fix bismark/align not resuming from cache [#461](https://github.com/nf-core/methylseq/pull/457)

### Pipeline Updates

- 🔧 Install `fastq_align_dedup_bismark` subworkflow from nf-core/subworkflows [#453](https://github.com/nf-core/methylseq/pull/457)
- 🔧 Install `fasta_index_bismark_bwameth` subworkflow from nf-core/subworkflows [#466](https://github.com/nf-core/methylseq/pull/468)
- 🔧 Install `fastq_align_dedup_bwameth` subworkflow from nf-core/subworkflows [#467](https://github.com/nf-core/methylseq/pull/)
- 🔧 reorg individual configs to `conf/modules/` named configs [#459](https://github.com/nf-core/methylseq/pull/469)
- 🔧 `run_preseq` param + skip preseq/lcextrap module by default [#458](https://github.com/nf-core/methylseq/pull/470)
- 🔧 `run_qualimap` param + skip qualimap module by default [#367](https://github.com/nf-core/methylseq/pull/471)

## [v2.7.1](https://github.com/nf-core/methylseq/releases/tag/2.7.1) - [2024-10-27]

### Bug fixes & refactoring
Expand Down
4 changes: 4 additions & 0 deletions conf/base.config
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,9 @@ process {
errorStrategy = 'retry'
maxRetries = 2
}
withName: PRESEQ_LCEXTRAP {
errorStrategy = 'ignore'
}
withName: BISMARK_ALIGN {
time = { 8.d * task.attempt }
}
Expand All @@ -69,6 +72,7 @@ process {
time = { 1.d * task.attempt }
}
withName: BWAMETH_ALIGN {
cache = 'lenient'
time = { 6.d * task.attempt }
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -35,4 +35,4 @@ process {
]
]
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -19,4 +19,4 @@ process {
]
]
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -9,4 +9,4 @@ process {
]
]
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -11,4 +11,4 @@ process {
enabled: params.save_reference
]
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -38,4 +38,4 @@ process {
]
]
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -7,4 +7,4 @@ process {
pattern: "*.html"
]
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -7,4 +7,4 @@ process {
pattern: "*.{html,txt}"
]
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -8,4 +8,4 @@ process {
enabled: params.save_align_intermeds
]
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -8,4 +8,4 @@ process {
enabled: params.save_reference
]
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -14,4 +14,4 @@ process {
]
]
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -19,4 +19,4 @@ process {
]
]
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -12,4 +12,4 @@ process {
]
]
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -7,4 +7,4 @@ process {
saveAs: { filename -> filename.equals('versions.yml') ? null : filename }
]
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -15,4 +15,4 @@ process {
]
]
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -5,13 +5,15 @@ process {
[
path: { "${params.outdir}/${params.aligner}/preseq" },
mode: params.publish_dir_mode,
pattern: "*.txt"
pattern: "*.txt",
enabled: params.run_preseq
],
[
path: { "${params.outdir}/${params.aligner}/preseq/log" },
mode: params.publish_dir_mode,
pattern: "*.log"
pattern: "*.log",
enabled: params.run_preseq
]
]
}
}
}
16 changes: 16 additions & 0 deletions conf/modules/qualimap_bamqc.config
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
process {
withName: QUALIMAP_BAMQC {
ext.args = [
params.genome.toString().startsWith('GRCh') ? '-gd HUMAN' : '',
params.genome.toString().startsWith('GRCm') ? '-gd MOUSE' : ''
].join(" ").trim()
publishDir = [
[
path: { "${params.outdir}/${params.aligner}/qualimap/bamqc/" },
mode: params.publish_dir_mode,
pattern: "*",
enabled: params.run_qualimap
]
]
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -8,4 +8,4 @@ process {
pattern: "*.fai"
]
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -8,4 +8,4 @@ process {
]
]
}
}
}
Original file line number Diff line number Diff line change
@@ -1,19 +1,19 @@
process {
withName: SAMTOOLS_SORT {
ext.prefix = { "${meta.id}.sorted" }
withName: SAMTOOLS_INDEX {
ext.prefix = ""
publishDir = [
[
path: { "${params.outdir}/${params.aligner}/deduplicated/" },
mode: params.publish_dir_mode,
pattern: "*markdup*.bam",
enabled: params.save_align_intermeds
pattern: "*.bai",
enabled: !params.skip_deduplication
],
[
path: { "${params.outdir}/${params.aligner}/alignments/" },
mode: params.publish_dir_mode,
pattern: "*.bam",
enabled: params.save_align_intermeds
pattern: "*.bai",
enabled: params.skip_deduplication
]
]
}
}
}
30 changes: 30 additions & 0 deletions conf/modules/samtools_sort.config
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
process {
withName: SAMTOOLS_SORT {
ext.prefix = params.skip_deduplication ? { "${meta.id}.sorted" } : { "${meta.id}.deduplicated.sorted" }
publishDir = [
[
path: { "${params.outdir}/${params.aligner}/deduplicated/" },
mode: params.publish_dir_mode,
pattern: "*.deduplicated.sorted.bam"
],
[
path: { "${params.outdir}/${params.aligner}/alignments/" },
mode: params.publish_dir_mode,
pattern: "*.sorted.bam",
enabled: params.skip_deduplication
],
[
path: { "${params.outdir}/${params.aligner}/deduplicated/" },
mode: params.publish_dir_mode,
pattern: "*markdup*.bam",
enabled: params.save_align_intermeds
],
[
path: { "${params.outdir}/${params.aligner}/alignments/" },
mode: params.publish_dir_mode,
pattern: "*.bam",
enabled: params.save_align_intermeds
]
]
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -8,4 +8,4 @@ process {
]
]
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -87,4 +87,4 @@ process {
]
]
}
}
}
2 changes: 1 addition & 1 deletion conf/test.config
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ params {
input = "${projectDir}/assets/samplesheet.csv"

// Genome references
fasta = "${params.pipelines_testdata_base_path}/reference/genome.fa"
fasta = "${params.pipelines_testdata_base_path}/reference/genome.fa.gz"
fasta_index = "${params.pipelines_testdata_base_path}/reference/genome.fa.fai"
}

Expand Down
22 changes: 11 additions & 11 deletions main.nf
Original file line number Diff line number Diff line change
Expand Up @@ -15,11 +15,11 @@
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
*/

include { METHYLSEQ } from './workflows/methylseq/'
include { PREPARE_GENOME } from './subworkflows/local/prepare_genome/'
include { PIPELINE_INITIALISATION } from './subworkflows/local/utils_nfcore_methylseq_pipeline'
include { PIPELINE_COMPLETION } from './subworkflows/local/utils_nfcore_methylseq_pipeline'
include { getGenomeAttribute } from './subworkflows/local/utils_nfcore_methylseq_pipeline'
include { FASTA_INDEX_BISMARK_BWAMETH } from './subworkflows/nf-core/fasta_index_bismark_bwameth/main'
include { METHYLSEQ } from './workflows/methylseq/'
include { PIPELINE_INITIALISATION } from './subworkflows/local/utils_nfcore_methylseq_pipeline'
include { PIPELINE_COMPLETION } from './subworkflows/local/utils_nfcore_methylseq_pipeline'
include { getGenomeAttribute } from './subworkflows/local/utils_nfcore_methylseq_pipeline'

/*
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Expand Down Expand Up @@ -52,13 +52,13 @@ workflow NFCORE_METHYLSEQ {
//
// SUBWORKFLOW: Prepare any required reference genome indices
//
PREPARE_GENOME(
FASTA_INDEX_BISMARK_BWAMETH(
params.fasta,
params.fasta_index,
params.bismark_index,
params.bwameth_index,
)
ch_versions = ch_versions.mix(PREPARE_GENOME.out.versions)
ch_versions = ch_versions.mix(FASTA_INDEX_BISMARK_BWAMETH.out.versions)

//
// WORKFLOW: Run pipeline
Expand All @@ -67,10 +67,10 @@ workflow NFCORE_METHYLSEQ {
METHYLSEQ (
samplesheet,
ch_versions,
PREPARE_GENOME.out.fasta,
PREPARE_GENOME.out.fasta_index,
PREPARE_GENOME.out.bismark_index,
PREPARE_GENOME.out.bwameth_index,
FASTA_INDEX_BISMARK_BWAMETH.out.fasta,
FASTA_INDEX_BISMARK_BWAMETH.out.fasta_index,
FASTA_INDEX_BISMARK_BWAMETH.out.bismark_index,
FASTA_INDEX_BISMARK_BWAMETH.out.bwameth_index,
)
emit:
multiqc_report = METHYLSEQ.out.multiqc_report // channel: /path/to/multiqc_report.html
Expand Down
Loading

0 comments on commit 4258f22

Please sign in to comment.