diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 81846b495e262b2c2efea685db2488c741a000bd..d8af5948091dfe29e14c5e49b1b97e333c228374 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -5,22 +5,31 @@ variables: GIT_SUBMODULE_STRATEGY: normal before_script: + - module load astrocyte/1.0.0 - module load nextflow/20.01.0 - module load singularity/3.0.2 stages: - - integration + - check + - test_human + - test_mouse + +# This performs validation of the astrocyte_pkg.yml file +astrocyte_check: + stage: check + script: + - astrocyte_cli check "$CI_PROJECT_DIR" test_human: - stage: integration + stage: test_human script: - - nextflow run -c nextflow.config -with-dag flowchart.png -with-timeline human_timeline.html -with-report human_report.html workflow/main.nf --design /project/shared/bicf_workflow_ref/workflow_testdata/rnaseq/design.rnaseq.txt --input /project/shared/bicf_workflow_ref/workflow_testdata/rnaseq --output human_output + - nextflow run -c workflow/configs/nextflow.config -with-dag flowchart.png -with-timeline human_timeline.html -with-report human_report.html workflow/main.nf --design /project/shared/bicf_workflow_ref/workflow_testdata/rnaseq/design.rnaseq.txt --input /project/shared/bicf_workflow_ref/workflow_testdata/rnaseq --output human_output artifacts: expire_in: 2 days test_mouse: - stage: integration + stage: test_mouse script: - - nextflow run -c nextflow.config -with-dag flowchart.png -with-timeline mouse_timeline.html -with-report mouse_report.html workflow/main.nf --input /project/shared/bicf_workflow_ref/workflow_testdata/rnaseq --design /project/shared/bicf_workflow_ref/workflow_testdata/rnaseq/mouse_se.design.txt --pairs se --fusion skip --genome /project/shared/bicf_workflow_ref/mouse/GRCm38 --markdups null --output mouse_output + - nextflow run -c workflow/configs/nextflow.config -with-dag flowchart.png -with-timeline mouse_timeline.html -with-report mouse_report.html workflow/main.nf --input /project/shared/bicf_workflow_ref/workflow_testdata/rnaseq --design /project/shared/bicf_workflow_ref/workflow_testdata/rnaseq/mouse_se.design.txt --pairs se --fusion skip --genome /project/shared/bicf_workflow_ref/mouse/GRCm38 --markdups null --output mouse_output artifacts: expire_in: 2 days diff --git a/README.md b/README.md index 93561bb73bf59d23fbe58af7c6ef5555b9f96105..7b6ac564cc5bd18887916764ae90aecf1086a67b 100644 --- a/README.md +++ b/README.md @@ -69,7 +69,7 @@ module load nextflow/20.01.0 singularity/3.5.3 base=$repoClonedDirectory datadir='/project/shared/bicf_workflow_ref/workflow_testdata/rnaseq' -nextflow -C ${base}/nextflow.config run ${base}/workflow/main.nf --design ${datadir}/design.rnaseq.txt --input ${datadir} --output analysis +nextflow -C ${base}/workflow/configs/nextflow.config run ${base}/workflow/main.nf --design ${datadir}/design.rnaseq.txt --input ${datadir} --output analysis ``` @@ -80,7 +80,7 @@ module load nextflow/20.01.0 singularity/3.5.3 base=$repoClonedDirectory datadir='/project/shared/bicf_workflow_ref/workflow_testdata/rnaseq' -nextflow -C ${base}/nextflow.config run -with-dag flowchart.png -with-timeline mouse_timeline.html -with-report mouse_report.html ${base}/workflow/main.nf --design ${datadir}/mouse_se.design.txt --input ${datadir} --pairs se --output analysis +nextflow -C ${base}/workflow/configs/nextflow.config run -with-dag flowchart.png -with-timeline mouse_timeline.html -with-report mouse_report.html ${base}/workflow/main.nf --design ${datadir}/mouse_se.design.txt --input ${datadir} --pairs se --output analysis ``` diff --git a/astrocyte_pkg.yml b/astrocyte_pkg.yml index 47962cd4987298242134038d30852a0a66188825..2568b3e89359fc234bec014389c9f042fe95a634 100644 --- a/astrocyte_pkg.yml +++ b/astrocyte_pkg.yml @@ -20,6 +20,17 @@ description: | It implements differential expression analysis, gene set enrichment analysis, gene fusion analysis and variant identification using RNASeq data. +# The minimum Astrocyte version that requires to run this workflow. For old pipelines, which do not have this label +# a default value of 0.3.1 will be assigned automatically. A request of minimum version less than 0.4.0 will be ignored. +minimum_astrocyte_version: '0.4.1' +# The Nextflow version that requires to run this workflow. For old pipelines, which do not have this label +# a default value of 0.31.0 will be assigned automatically. Please make sure the requested nextflow version is available +# in the module list. +nextflow_version: '20.01.0' +# (Optional) The Nextflow config file to use for this workflow. If provided, the file should exist in workflow/configs +nextflow_config: 'nextflow.config' +# The container to use for this workflow, none/singularity. If omitted, the default value 'none' will be used. +container: 'none' # ----------------------------------------------------------------------------- # DOCUMENTATION diff --git a/testing/run_human_pe_test.sh b/testing/run_human_pe_test.sh index e8624c09d8caa4d85134c0c3f2ddbe7f55b9e952..ade5af35acd8489732831ce49b85764075781518 100644 --- a/testing/run_human_pe_test.sh +++ b/testing/run_human_pe_test.sh @@ -4,4 +4,4 @@ module load nextflow/20.01.0 singularity/3.5.3 base='/project/BICF/BICF_Core/s166458/rnaseq_astrocyte' datadir='/project/shared/bicf_workflow_ref/workflow_testdata/rnaseq' -nextflow -C ${base}/nextflow.config run ${base}/workflow/main.nf --design ${datadir}/design.rnaseq.txt --input ${datadir} --output analysis +nextflow -C ${base}/workflow/configs/nextflow.config run ${base}/workflow/main.nf --design ${datadir}/design.rnaseq.txt --input ${datadir} --output analysis diff --git a/testing/run_mouse_se_test.sh b/testing/run_mouse_se_test.sh index 2c105e3bcdb151a336dc6e0302704828291c4570..2d3f06b22f936cb4cffa9387882f97f9b0614b01 100644 --- a/testing/run_mouse_se_test.sh +++ b/testing/run_mouse_se_test.sh @@ -4,4 +4,4 @@ module load nextflow/20.01.0 singularity/3.5.3 base='/project/BICF/BICF_Core/s166458/rnaseq_astrocyte' datadir='/project/shared/bicf_workflow_ref/workflow_testdata/rnaseq' -nextflow -C ${base}/nextflow.config run -with-dag flowchart.png -with-timeline mouse_timeline.html -with-report mouse_report.html ${base}/workflow/main.nf --design ${datadir}/mouse_se.design.txt --input ${datadir} --pairs se --output analysis +nextflow -C ${base}/workflow/configs/nextflow.config run -with-dag flowchart.png -with-timeline mouse_timeline.html -with-report mouse_report.html ${base}/workflow/main.nf --design ${datadir}/mouse_se.design.txt --input ${datadir} --pairs se --output analysis diff --git a/nextflow.config b/workflow/configs/nextflow.config similarity index 96% rename from nextflow.config rename to workflow/configs/nextflow.config index 150748a34379cf059276d0144009eb1943283927..3103d1ec0f42cea569d0f19024b637a1f289f767 100644 --- a/nextflow.config +++ b/workflow/configs/nextflow.config @@ -39,7 +39,7 @@ process { singularity { enabled = true - runOptions='--no-home --cleanenv' + runOptions='--no-home --cleanenv --disable-cache' singularity.cacheDir="$PWD" }