Skip to content

Commit

Permalink
Merge pull request #127 from hoelzer-lab/MarieLataretu/issue126
Browse files Browse the repository at this point in the history
not the latest report in output/Logs
  • Loading branch information
MarieLataretu authored Jan 18, 2021
2 parents d137c87 + cee4b6f commit ca60700
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 25 deletions.
11 changes: 0 additions & 11 deletions bin/reports.sh

This file was deleted.

10 changes: 1 addition & 9 deletions main.nf
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ nextflow.enable.dsl=2

// Parameters sanity checking

Set valid_params = ['max_cores', 'cores', 'memory', 'profile', 'help', 'reads', 'genome', 'annotation', 'deg', 'autodownload', 'pathway', 'species', 'include_species', 'strand', 'mode', 'tpm', 'fastp_additional_params', 'hisat2_additional_params', 'featurecounts_additional_params', 'feature_id_type', 'busco_db', 'dammit_uniref90', 'skip_sortmerna', 'assembly', 'output', 'fastp_dir', 'sortmerna_dir', 'hisat2_dir', 'featurecounts_dir', 'tpm_filter_dir', 'annotation_dir', 'deseq2_dir', 'assembly_dir', 'rnaseq_annotation_dir', 'uniref90_dir', 'multiqc_dir', 'permanentCacheDir', 'condaCacheDir', 'singularityCacheDir', 'softlink_results', 'runinfo', 'cloudProcess', 'permanent-cache-dir', 'conda-cache-dir', 'singularity-cache-dir', 'cloud-process'] // don't ask me why there is 'permanent-cache-dir', 'conda-cache-dir', 'singularity-cache-dir', 'cloud-process'
Set valid_params = ['max_cores', 'cores', 'memory', 'profile', 'help', 'reads', 'genome', 'annotation', 'deg', 'autodownload', 'pathway', 'species', 'include_species', 'strand', 'mode', 'tpm', 'fastp_additional_params', 'hisat2_additional_params', 'featurecounts_additional_params', 'feature_id_type', 'busco_db', 'dammit_uniref90', 'skip_sortmerna', 'assembly', 'output', 'fastp_dir', 'sortmerna_dir', 'hisat2_dir', 'featurecounts_dir', 'tpm_filter_dir', 'annotation_dir', 'deseq2_dir', 'assembly_dir', 'rnaseq_annotation_dir', 'uniref90_dir', 'multiqc_dir', 'nf_runinfo_dir', 'permanentCacheDir', 'condaCacheDir', 'singularityCacheDir', 'softlink_results', 'cloudProcess', 'permanent-cache-dir', 'conda-cache-dir', 'singularity-cache-dir', 'cloud-process'] // don't ask me why there is 'permanent-cache-dir', 'conda-cache-dir', 'singularity-cache-dir', 'cloud-process'
def parameter_diff = params.keySet() - valid_params
if (parameter_diff.size() != 0){
exit 1, "ERROR: Parameter(s) $parameter_diff is/are not valid in the pipeline!\n"
Expand Down Expand Up @@ -726,14 +726,6 @@ workflow {
}
}


workflow.onComplete {
if (workflow.success) {
// copy execution and timeline HTML reports to output dir
println (['bash', "${workflow.projectDir}/bin/reports.sh", "${params.output}", "${params.runinfo}"].execute().text)
}
}

def helpMSG() {
c_green = "\033[0;32m";
c_reset = "\033[0m";
Expand Down
8 changes: 3 additions & 5 deletions nextflow.config
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,7 @@ params {
// if the UniRef90 option for dammit is activated via --dammit_uniref90, this parameter will be set to 'uniref90' for the dammit output
uniref90_dir = ''
multiqc_dir = 'Summary'
nf_runinfo_dir = 'Logs'

// location for autodownload data like databases
permanentCacheDir = 'nextflow-autodownload-databases'
Expand All @@ -67,21 +68,18 @@ params {
// softlink results instead of copying
softlink_results = false

// save execution information
runinfo = "nextflow-run-infos"

cloudProcess = false
}


timeline {
enabled = true
file = "${params.runinfo}/execution_timeline.html"
file = "${params.output}/${params.nf_runinfo_dir}/execution_timeline.html"
}

report {
enabled = true
file = "${params.runinfo}/execution_report.html"
file = "${params.output}/${params.nf_runinfo_dir}/execution_report.html"
}

profiles {
Expand Down

0 comments on commit ca60700

Please sign in to comment.