Skip to content
Snippets Groups Projects
Commit ca4b7700 authored by Jules Sabban's avatar Jules Sabban
Browse files

Merge branch 'dev_Jules' into 'master'

Remove PlaGe related text in multiQC report

See merge request !31
parents be16cee3 e9fed7ab
No related branches found
No related tags found
1 merge request!31Remove PlaGe related text in multiQC report
......@@ -4,10 +4,6 @@ title: "My Title"
#subtitle: "A subtitle to go underneath in grey"
intro_text: "This MultiQC report summarise Quality Control analysis results."
report_comment: >
This report has been generated by the <a href="https://forgemia.inra.fr/get-nextflow-ngl-bi/wf-illumina-nf" target="_blank">wf-illumina-nf</a>
analysis pipeline. For information about how to interpret these results, please see the
<a href="https://forgemia.inra.fr/get-nextflow-ngl-bi/wf-illumina-nf" target="_blank">documentation</a>.
show_analysis_paths: False
show_analysis_time: False
......@@ -53,6 +49,12 @@ report_section_order:
summary:
order: -1001
remove_sections:
- fastp-seq-content-n
- fastp-seq-quality
- fastp-seq-content-gc
- flash-histogram
module_order:
- fastqc:
name: "ReadsStats"
......
......@@ -255,13 +255,19 @@ process {
// SHARED MODULES
//=========================================
process {
withName: STORE_FASTQ {
time = { checkMax( 3.h * task.attempt, 'time' ) }
}
withName: CREATE_ANALYSIS {
ext.args = params.project_hash ? "--projectDir '${params.project}-${params.project_hash}'" : ''
errorStrategy = { task.exitStatus in [6] ? 'ignore' : 'retry' }
}
withName: CREATE_READSETS {
ext.args = [
params.run_name ? "--poolName '${params.run_name}'" : '',
params.select_samples ? "--samples '${params.select_samples}'" : '',
params.lane ? "--laneNumberToWorkOn '${params.lane}'" : '',
].join(' ')
}
......
......@@ -3,7 +3,8 @@
//=========================================
process {
withLabel: ngl {
beforeScript = "source ${params.ngl_bi_client}/GeT/bash/loadConfFile.sh ${params.ngl_bi_client}/IG/SystemeInteractionNGL-Bi/conf/prod_illumina_qc.conf"
def techno_label = params.sequencer == 'AVITI' ? 'elembio' : 'illumina'
beforeScript = "source ${params.ngl_bi_client}/GeT/bash/loadConfFile.sh ${params.ngl_bi_client}/IG/SystemeInteractionNGL-Bi/conf/prod_${techno_label}_qc.conf"
publishDir = [
path: "${params.outdir}/ngl",
mode: 'copy',
......
......@@ -29,5 +29,5 @@ manifest {
description = "Workflow for Illumina data quality control"
mainScript = 'main.nf'
nextflowVersion = '>=0.32.0'
version = '1.26.5'
version = '1.27.0'
}
\ No newline at end of file
......@@ -10,7 +10,8 @@ params {
process {
withLabel: ngl {
beforeScript = "source ${params.ngl_bi_client}/GeT/bash/loadConfFile.sh ${params.ngl_bi_client}/IG/SystemeInteractionNGL-Bi/conf/dev_illumina_qc.conf"
def techno_label = params.sequencer == 'AVITI' ? 'elembio' : 'illumina'
beforeScript = "source ${params.ngl_bi_client}/GeT/bash/loadConfFile.sh ${params.ngl_bi_client}/IG/SystemeInteractionNGL-Bi/conf/dev_${techno_label}_qc.conf"
publishDir = [
path: "${params.outdir}/ngl",
mode: 'copy',
......@@ -18,9 +19,4 @@ process {
]
}
withName: CREATE_READSETS {
ext.args = [
params.lane ? "--laneNumberToWorkOn '${params.lane}'" : '',
].join(' ')
}
}
......@@ -140,7 +140,6 @@ def getPipelineInfo() {
def sn = params.machine_id ?: ''
def platform = "$seq $sn"
map['Sequencing Platform'] = platform ?: ''
map['Contact E-mail'] = 'get-plage.contact@genotoul.fr'
return map
}
......
......@@ -82,6 +82,7 @@ process NGSRG_ILLUMINA {
output:
path("*.log"), emit: log
val 1, emit: ready
script:
def args = task.ext.args ?: ''
......@@ -107,6 +108,7 @@ process NGSRG_ELEMBIO {
output:
path("*.log"), emit: log
val 1, emit: ready
script:
def args = task.ext.args ?: ''
......
......@@ -12,17 +12,12 @@
// -------------------------------------------------
include { BEGIN_NGLBI as BEGIN } from "${params.shared_modules}/workflows/begin_nglbi.nf"
include { COPY_TO_SAVE } from "${params.shared_modules}/workflows/copy_to_save.nf"
include { MD5SUM as MD5SUM_FASTQ;
md5sum as MD5SUM_INDEX } from "${params.shared_modules}/md5sum.nf"
include { READSET_FILE_FROM_FILE as ADD_RS_INDEX_FILES } from "${params.shared_modules}/ngl_bi.nf" addParams(ext: 'INDEX')
include { READSET_FILE_FROM_FILE as ADD_RS_RAW_FILES } from "${params.shared_modules}/ngl_bi.nf" addParams(ext: 'RAW')
include { UPDATE_NGLBI_STATE_FROM_FILE as UPDATE_STATE_FQC;
CREATE_ANALYSIS } from "${params.shared_modules}/ngl_bi.nf"
include { UPDATE_NGLBI_STATE_FROM_FILE as UPDATE_STATE_FQC} from "${params.shared_modules}/ngl_bi.nf"
include { FILE_RENAME as RENAME_FASTQ;
FILE_RENAME as RENAME_INDEX;
NGSRG_ILLUMINA;
NGSRG_ELEMBIO; } from "$baseDir/modules/local/module_NGL-Bi.nf"
include { FILE_RENAME as RENAME_FASTQ } from "$baseDir/modules/local/module_NGL-Bi.nf"
include { FILE_RENAME as RENAME_INDEX } from "$baseDir/modules/local/module_NGL-Bi.nf"
include { NGSRG_ILLUMINA } from "$baseDir/modules/local/module_NGL-Bi.nf"
include { NGSRG_ELEMBIO; } from "$baseDir/modules/local/module_NGL-Bi.nf"
// -------------------------------------------------
// WORKFLOW
// -------------------------------------------------
......@@ -41,17 +36,23 @@ workflow NGL {
demux_stat_json
main:
fastq_files = Channel.empty()
md5_files = Channel.empty()
// First steps
BEGIN(bi_run_code, sq_xp_code, '', sequencer_name)
BEGIN(bi_run_code, sq_xp_code,'', sequencer_name)
nglBiRunCode = BEGIN.out.nglBiRunCode
readsets_created = BEGIN.out.readsets_created
ready = BEGIN.out.ready
ready_for_analysis = Channel.empty()
if(sequencer_name =~ "NovaSeq|MiSeq") {
NGSRG_ILLUMINA(readsets_created, demux_stat_json, 'readsets')
ready_for_analysis = NGSRG_ILLUMINA.out.ready
} else if (sequencer_name =~ "AVITI") {
NGSRG_ELEMBIO(readsets_created, params.inputdir, params.lane, 'readsets')
ready_for_analysis = NGSRG_ELEMBIO.out.ready
}
bi_run_code = nglBiRunCode.collect().map { it.toString() }
......@@ -59,19 +60,19 @@ workflow NGL {
// Compute results
if (is_single_cell) {
RENAME_INDEX(index_files.map{it[1]}.collect(), readsets_created, sq_xp_code, 'fastq_index')
MD5SUM_INDEX(RENAME_INDEX.out.fastq.collect(), run_name+'_fastq_index')
ADD_RS_INDEX_FILES(readsets_created, MD5SUM_INDEX.out, 'INDEX', ready)
fastq_files = fastq_files.mix(RENAME_INDEX.out.fastq)
}
RENAME_FASTQ(fastq.map{it[1]}.collect(), readsets_created, sq_xp_code, 'fastq_read')
fq = RENAME_FASTQ.out.fastq
fastq_files = fastq_files.mix(RENAME_FASTQ.out.fastq.ifEmpty([]))
fq = fastq_files
.flatMap()
.map { it -> [[type: 'fastq', barcode:run_name], it]}
MD5SUM_FASTQ(fq.groupTuple())
.map { it -> [[type: 'fastq', barcode:'all'], it]}
.groupTuple()
UPDATE_STATE_FQC(readsets_created, 'F-QC', multiqc_html)
techno = sequencer_name =~ "MiSeq|NovaSeq" ? 'illumina' : sequencer_name =~ "AVITI" ? 'elembio' : 'other'
COPY_TO_SAVE(
nglBiRunCode,
readsets_created,
......@@ -79,8 +80,8 @@ workflow NGL {
project,
project_hash,
fq,
MD5SUM_FASTQ.out.md5sum,
params.run_name
params.run_name,
ready_for_analysis
)
emit:
......
......@@ -119,9 +119,11 @@ workflow SHORT_READS_QC {
if (params.skip_core_element) {
log.info "Elembio's sequencer but skipping CORE_ELEMENT"
demux_stats = Channel.empty()
fastq = ch_read
} else {
CORE_ELEMENT(ch_runManifestJSON, ch_indexAssigned, ch_indexUnassigned)
demux_stats = CORE_ELEMENT.out.demuxStat
fastq = ch_read
}
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment