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

New nf-core role to pull methylseq, rnaseq, atacseq etc and other changes #332

Merged
merged 23 commits into from
Feb 17, 2020
Merged
Show file tree
Hide file tree
Changes from 17 commits
Commits
Show all changes
23 commits
Select commit Hold shift + click to select a range
141b42f
Add nf-core role
Dec 6, 2019
6f1baa9
Moved rnaseq, methylseq, ampliseq, atacseq to nfcore and upgraded neu…
aanil Jan 21, 2020
dc62f3b
Updated install.yml with nf-core
aanil Jan 21, 2020
114e370
Incorporate past changes
aanil Jan 21, 2020
858b02f
Update ngi reports and statusdb versions
aanil Jan 23, 2020
e243fba
Update sarek role to move to nf-core
aanil Jan 24, 2020
96eeeea
Revert "Update sarek role to move to nf-core"
aanil Jan 24, 2020
b79ec05
Revert "Update ngi reports and statusdb versions"
aanil Jan 24, 2020
187094f
Revert "Incorporate past changes"
aanil Jan 24, 2020
141f7d1
Revert "Updated install.yml with nf-core"
aanil Jan 24, 2020
f606eb2
Adding back conflicting files
aanil Jan 24, 2020
52094ed
Adding changes to sarek, standalone scripts, taca, rnaseq, methylseq,…
aanil Jan 24, 2020
11517b0
Fix issues in new Sarek script and neutronstar
aanil Jan 27, 2020
9d06e12
Add supernova and minor changes
aanil Jan 30, 2020
485ac02
Syntax bug fix in neutronstar
aanil Jan 30, 2020
381e14e
Update with latest ngi_reports version
aanil Jan 31, 2020
94b086d
Updated neutronstar parameters
aanil Feb 4, 2020
1728f9c
Updated location for downloading multiqc reports on staging env
aanil Feb 5, 2020
38ed3cc
Add export_plots to multiqc config
aanil Feb 6, 2020
cac433e
Removed container lists in nf-core role
aanil Feb 13, 2020
8c0c660
Updated neutronstar to use common irma config plus removed custom con…
aanil Feb 13, 2020
5763420
Updated neutronstar to use profile uppmax
aanil Feb 13, 2020
fc35214
Updated nextflow version
aanil Feb 17, 2020
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
4 changes: 1 addition & 3 deletions host_vars/127.0.0.1/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -44,9 +44,7 @@ ngi_pipeline_db_sthlm: "{{ ngi_pipeline_sthlm_path }}/db/records_db_sthlm.sql"
piper_module_version: 1.5.1
gatk_bundle_b37: "/sw/data/uppnex/piper_references/2016-04-07/gatk_bundle/2.8/b37/"

sarek_repo: "https://github.com/SciLifeLab/sarek.git"
sarek_version: "2.3.FIX1"
sarek_tag: "2.3"
sarek_tag: "2.5.2"
sarek_dest: "{{ sw_path }}/sarek"
sarek_containers: "{{ ngi_containers }}/sarek"
sarek_irma_config: "{{ ngi_pipeline_conf }}/sarek_irma.config"
Expand Down
5 changes: 1 addition & 4 deletions install.yml
Original file line number Diff line number Diff line change
Expand Up @@ -38,15 +38,12 @@
- { role: arteria-siswrap-ws, tags: arteria-siswrap }
- { role: arteria-delivery-ws, tags: arteria-delivery }
- { role: sarek, tags: sarek }
- { role: rnaseq, tags: rnaseq }
- { role: methylseq, tags: methylseq }
- { role: neutronstar, tags: neutronstar }
- { role: standalone_scripts, tags: standalone_scripts }
- { role: ugc, tags: ugc }
- { role: misc-tools, tags: misc-tools }
- { role: archive-upload-ws, tags: archive-upload }
- { role: ampliseq, tags: ampliseq }
- { role: atacseq, tags: atacseq }
- { role: nf-core, tags: nf-core }

environment: "{{ anaconda_env }}"

Expand Down
7 changes: 0 additions & 7 deletions roles/ampliseq/defaults/main.yml

This file was deleted.

52 changes: 0 additions & 52 deletions roles/ampliseq/tasks/main.yml

This file was deleted.

3 changes: 0 additions & 3 deletions roles/ampliseq/templates/ampliseq_site.config

This file was deleted.

7 changes: 0 additions & 7 deletions roles/atacseq/defaults/main.yml

This file was deleted.

52 changes: 0 additions & 52 deletions roles/atacseq/tasks/main.yml

This file was deleted.

3 changes: 0 additions & 3 deletions roles/atacseq/templates/atacseq_site.config

This file was deleted.

7 changes: 0 additions & 7 deletions roles/methylseq/defaults/main.yml

This file was deleted.

56 changes: 0 additions & 56 deletions roles/methylseq/tasks/main.yml

This file was deleted.

12 changes: 0 additions & 12 deletions roles/methylseq/templates/methylseq_site.config

This file was deleted.

2 changes: 1 addition & 1 deletion roles/multiqc/defaults/main.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
multiqc_repo: https://github.com/ewels/MultiQC.git
multiqc_dest: "{{ sw_path }}/multiqc"
multiqc_version: "v1.7"
multiqc_version: "v1.8"

multiqc_ngi_repo: https://github.com/NationalGenomicsInfrastructure/MultiQC_NGI.git
multiqc_ngi_dest: "{{ sw_path }}/multiqc_ngi"
Expand Down
14 changes: 9 additions & 5 deletions roles/neutronstar/defaults/main.yml
Original file line number Diff line number Diff line change
@@ -1,11 +1,15 @@
---
neutronstar_repo: "https://github.com/nf-core/neutronstar"
neutronstar_dest: "{{ sw_path }}/neutronstar"
# neutronstar_container_url: "docker://nf-core/neutronstar:{{ rnaseq_version }}"

neutronstar_container_path: "{{ ngi_containers }}/neutronstar"
# neutronstar_image: "neutronstar-{{ neutronstar_version }}.simg"
neutronstar_version: "157a0c904fd5c8de6a174a184aee4a0ac96a871b"

# Temporary variables whilst under dev by Remi
neutronstar_container_url: "docker://remiolsen/neutronstar"
neutronstar_version: "1.0.0"

neutronstar_container_url: "docker://nfcore/neutronstar"
neutronstar_image: "neutronstar.simg"

supernova_container_url: "docker://nfcore/supernova"
supernova_image: "supernova.simg"
supernova_version: "2.1.1"
supernova_container_path: "{{ ngi_containers }}/supernova"
28 changes: 23 additions & 5 deletions roles/neutronstar/tasks/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,11 +6,13 @@
version="{{ neutronstar_version }}"
force=yes

- name: Create neutronstar temp/cache folder for images
- name: Create neutronstar and supernova temp/cache folder for images
file: name="{{ item }}" state=directory mode=g+s
with_items:
- "{{ neutronstar_container_path }}/singularity_cache"
- "{{ neutronstar_container_path }}/singularity_temp"
- "{{ supernova_container_path }}/singularity_cache"
- "{{ supernova_container_path }}/singularity_temp"

- name: Pull neutronstar Singularity images
command: "singularity build {{ neutronstar_image }} {{ neutronstar_container_url }}"
Expand All @@ -21,11 +23,22 @@
chdir: "{{ neutronstar_container_path }}"
ignore_errors: true

- name: Remove neutronstar singularity temp directories
- name: Pull supernova Singularity images
command: "singularity build {{ supernova_image }} {{ supernova_container_url }}"
environment:
SINGULARITY_CACHEDIR: "{{ supernova_container_path }}/singularity_cache"
SINGULARITY_TMPDIR: "{{ supernova_container_path }}/singularity_temp"
args:
chdir: "{{ supernova_container_path }}"
ignore_errors: true

- name: Remove neutronstar and supernova singularity temp directories
file: name="{{ item }}" state=absent
with_items:
- "{{ neutronstar_container_path }}/singularity_cache"
- "{{ neutronstar_container_path }}/singularity_temp"
- "{{ supernova_container_path }}/singularity_cache"
- "{{ supernova_container_path }}/singularity_temp"

- name: Create neutronstar config
template:
Expand All @@ -39,14 +52,19 @@
lineinfile:
dest: "{{ ngi_pipeline_conf }}/{{ bash_env_sthlm_script }}"
line: >
alias neutronstar='nextflow run {{ neutronstar_dest }}/main.nf -profile standard,uppmax
-c {{ ngi_pipeline_conf }}/neutronstar_{{ item.site }}.config'
alias neutronstar='nextflow run {{ neutronstar_dest }}/main.nf -profile singularity \
ewels marked this conversation as resolved.
Show resolved Hide resolved
-c {{ ngi_pipeline_conf }}/neutronstar_{{ item.site }}.config --supernova_container {{ supernova_container_path }}'
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Cool 👍

We could move supernova_container in to the neutronstar config file, but seeing as we will hopefully get rid of this config file before long, I think it's better how you currently have it ✅

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍

backup: no
with_items:
- { site: "sthlm", script: "{{ bash_env_sthlm_script }}" }
- { site: "upps", script: "{{ bash_env_upps_script }}" }

- name: Store neutronstar tool version in deployement
- name: Store neutronstar tool version in deployment
lineinfile:
dest: "{{ deployed_tool_versions }}"
line: "neutronstar: {{ neutronstar_version }}"

- name: Store supernova tool version in deployment
lineinfile:
dest: "{{ deployed_tool_versions }}"
line: "supernova: {{ supernova_version }}"
6 changes: 6 additions & 0 deletions roles/neutronstar/templates/neutronstar_site.config
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
process {
container = '{{ neutronstar_container_path }}/{{ neutronstar_image }}'
executor = 'slurm'
ewels marked this conversation as resolved.
Show resolved Hide resolved
withName:multiqc {
container = null
executor = 'local'
Expand All @@ -10,4 +11,9 @@ params {
multiqc_config = "{{ ngi_pipeline_conf }}/multiqc_{{ item.site }}_config.yml"
clusterOptions = "-A {{ item.project_id }} -p node"
max_memory = 250.GB
max_cpus = 16
max_time = 240.h
busco_folder = '/sw/apps/bioinfo/BUSCO/v2_lineage_sets'
busco_data = 'eukaryota_odb9'

}
21 changes: 21 additions & 0 deletions roles/nf-core/defaults/main.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
nextflow_java: "/sw/comp/java/x86_64/sun_jdk1.8.0_151"
nextflow_version_tag: "v19.10.0"
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

A new version of nextflow came out a few days ago, so you can grab that now

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Done!

nextflow_download_url: "https://github.com/nextflow-io/nextflow/releases/download/{{ nextflow_version_tag }}/nextflow"
nf_core_env: "/lupus/ngi/irma3/nf-core-env"
pipelines:
- name: rnaseq
release: 1.4.2
containers:
- nf-core-rnaseq-1.4.2.simg
ewels marked this conversation as resolved.
Show resolved Hide resolved
- name: methylseq
release: 1.4
containers:
- nf-core-methylseq-1.4.simg
- name: ampliseq
release: 1.1.2
containers:
- nf-core-ampliseq-1.1.2.simg
- name: atacseq
release: 1.1.0
containers:
- nf-core-atacseq-1.1.0.simg
Loading