-
Notifications
You must be signed in to change notification settings - Fork 12
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #240 from NationalGenomicsInfrastructure/monthly
Monthly merge April 2024
- Loading branch information
Showing
26 changed files
with
340 additions
and
57 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
50 changes: 50 additions & 0 deletions
50
roles/arteria-sequencing-report-ws/files/nextflow_configs/demultiplex.config
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,50 @@ | ||
/* | ||
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | ||
Config file for defining DSL2 per module options and publishing paths | ||
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | ||
Available keys to override module options: | ||
ext.args = Additional arguments appended to command in module. | ||
ext.args2 = Second set of arguments appended to command in module (multi-tool modules). | ||
ext.args3 = Third set of arguments appended to command in module (multi-tool modules). | ||
ext.prefix = File name prefix for output files. | ||
---------------------------------------------------------------------------------------- | ||
*/ | ||
|
||
process { | ||
|
||
withName: BCL2FASTQ { | ||
ext.args = {[ | ||
params.ext_args ? "${params.ext_args}" : "", | ||
].join(" ").trim()} | ||
publishDir = [ | ||
[ | ||
path: { "${params.outdir}/Unaligned/" }, | ||
pattern: "**_S[1-9]*_*.fastq.gz", | ||
mode: "link", | ||
], | ||
[ | ||
path: { "${params.outdir}/Unaligned/" }, | ||
pattern: "Undetermined_S0_*.fastq.gz", | ||
mode: "link", | ||
], | ||
[ | ||
// Gather and write Reports and Stats | ||
path: { "${params.outdir}/Unaligned/" }, | ||
mode: "link", | ||
pattern: "Stats", | ||
saveAs: {filename -> filename.split("/")[-1] } | ||
], | ||
[ | ||
// Gather and write InterOp files | ||
path: { "${params.outdir}/InterOp" }, | ||
mode: "link", | ||
pattern: "**.bin", | ||
], | ||
] | ||
} | ||
|
||
withName: MD5SUM { | ||
publishDir = [] | ||
} | ||
} | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
26 changes: 26 additions & 0 deletions
26
roles/arteria-sequencing-report-ws/templates/pipeline_configs/demultiplex.yml.j2
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
--- | ||
|
||
main_workflow_path: "{{ sw_path }}/demultiplex/{{ demultiplex_tag | replace('.', '_') }}/main.nf" | ||
# Note that in the following sections it is possible to do variable subsitution | ||
# on the following variables: | ||
# - {runfolder_name} | ||
# - {runfolder_path} | ||
# - {current_year} | ||
# - {input_samplesheet_path} | ||
nextflow_parameters: | ||
config: "{{ arteria_service_nextflow_config_dir }}/demultiplex.config" | ||
profile: "singularity,uppmax" | ||
environment: | ||
NXF_TEMP: {{nextflow_env.NXF_TEMP}} | ||
NXF_WORK: "{runfolder_path}/.nextflow" | ||
NXF_SINGULARITY_CACHEDIR: {{ ngi_containers }}/biocontainers | ||
NXF_ANSI_LOG: "false" | ||
pipeline_parameters: | ||
input: "{input_samplesheet_path}" | ||
outdir: "{runfolder_path}" | ||
project: {{uppmax_project}} | ||
demultiplexer: "bcl2fastq" | ||
skip_tools: "fastp,falco,multiqc" | ||
input_samplesheet_content: | | ||
id,samplesheet,lane,flowcell | ||
{runfolder_name},{runfolder_path}/SampleSheet.csv,,{runfolder_path} |
25 changes: 25 additions & 0 deletions
25
roles/arteria-sequencing-report-ws/templates/pipeline_configs/seqreports.yml.j2
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
--- | ||
|
||
main_workflow_path: "{{arteria_service_src_path}}/seqreports/main.nf" | ||
# Note that in the following sections it is possible to do variable | ||
# substitution on the following variables: | ||
# - {runfolder_name} | ||
# - {runfolder_path} | ||
# - {current_year} | ||
# - {input_samplesheet_path} | ||
nextflow_parameters: | ||
config: "{{arteria_service_src_path}}/seqreports/nextflow.config" | ||
profile: {{seqreports_nf_profile}} | ||
environment: | ||
NXF_TEMP: {{nextflow_env.NXF_TEMP}} | ||
NXF_WORK: "{runfolder_path}/.nextflow" | ||
NXF_SINGULARITY_CACHEDIR: "{{ ngi_containers }}/biocontainers" | ||
NXF_ANSI_LOG: "false" | ||
pipeline_parameters: | ||
run_folder: "{runfolder_path}" | ||
project: {{uppmax_project}} | ||
config_dir: "{{arteria_service_src_path}}/seqreports/config/tool_config/" | ||
fastqscreen_databases: {{fastq_ref_genomes_path}} | ||
checkqc_config: "{{arteria_service_config_root}}/checkqc.config" | ||
result_dir: "{runfolder_path}/seqreports" | ||
script_dir: "{{arteria_service_src_path}}/seqreports/bin/" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
snpseq_metadata_env_name: snpseq_metadata | ||
snpseq_metadata_env_path: "{{ anaconda_path }}/envs/{{ snpseq_metadata_env_name }}" | ||
|
||
snpseq_metadata_repo: https://github.com/Molmed/snpseq_metadata.git | ||
snpseq_metadata_version: 2763cee | ||
xml_schema_source_url: ftp://ftp.ebi.ac.uk/pub/databases/ena/doc/xsd/sra_1_5 | ||
|
||
snpseq_metadata_src_path: "{{ sw_path }}/metadata/snpseq_metadata" | ||
|
||
snpseq_metadata_service_repo: https://github.com/Molmed/snpseq-metadata-service.git | ||
snpseq_metadata_service_version: 1.1.0 | ||
|
||
snpseq_metadata_service_log_dir: "{{ static_ngi_log_path }}/metadata/snpseq_metadata_service/{{ deployment_environment }}" | ||
snpseq_metadata_service_src_path: "{{ sw_path }}/metadata/snpseq_metadata_service" | ||
snpseq_metadata_service_config_root: "{{ ngi_pipeline_conf }}/metadata/snpseq_metadata_service" | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
dependencies: | ||
- { role: anaconda, tags: anaconda } | ||
- { role: setup_base_config, tags: setup_base_config } |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
--- | ||
|
||
- name: ensure snpseq-metadata-service conf dir exists | ||
file: | ||
state: directory | ||
path: "{{ snpseq_metadata_service_config_root }}" | ||
|
||
- name: deploy snpseq-metadata-service app config | ||
template: | ||
src: snpseq_metadata_service_app.config.j2 | ||
dest: "{{ snpseq_metadata_service_config_root }}/app.yaml" | ||
|
||
- name: deploy snpseq-metadata-service logger config | ||
template: | ||
src: snpseq_metadata_service_logger.config.j2 | ||
dest: "{{ snpseq_metadata_service_config_root }}/logger.yaml" | ||
|
||
- name: modify uppsala's supervisord conf to set environment and program commands | ||
ini_file: | ||
dest: "{{ supervisord_conf }}" | ||
section: program:snpseq-metadata-service-{{ deployment_environment }} | ||
option: "{{ item.opt }}" | ||
value: "{{ item.val }}" | ||
backup: no | ||
loop: | ||
- opt: command | ||
val: "{{ snpseq_metadata_env_path}}/bin/metadata-service -c {{ snpseq_metadata_service_config_root }}" | ||
- opt: autorestart | ||
val: true | ||
- opt: directory | ||
val: "{{ snpseq_metadata_service_log_dir }}" | ||
|
Oops, something went wrong.