Skip to content

Commit b6d3576

Browse files
author
Chenghao Zhu
authored
Merge pull request #34 from uclahs-cds/cz-update-docker-nonroot
Fixed the issue that docker was running as root
2 parents 690169b + fe7d7fa commit b6d3576

3 files changed

Lines changed: 12 additions & 8 deletions

File tree

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -115,7 +115,7 @@ After marking dup BAM files, the BAM files are then indexed by utilizing Picard
115115
| `temp_dir` | yes | path | Absolute path to the directory where the nextflow's intermediate files are saved. |
116116
| `save_intermediate_files` | yes | boolean | Save intermediate files. If yes, not only the final BAM, but also the unmerged, unsorted, and duplicates unmarked BAM files will also be saved. |
117117
| `cache_intermediate_pipeline_steps` | yes | boolean | Enable cahcing to resume pipeline and the end of the last successful process completion when a pipeline fails (if true the default submission script must be modified). |
118-
| `max_number_of_parallel_jobs` | yes | int | The maximum number of jobs or steps of the pipeline that can be ran in parallel. |
118+
| `max_number_of_parallel_jobs` | no | int | The maximum number of jobs or steps of the pipeline that can be ran in parallel. Default is 1. Be very cautious setting this to any value larger than 1, as it may cause out-of-memory error. It may be helpful when running on a big memory computing node. |
119119
| `bwa_mem_number_of_cpus` | no | int | Number of cores to use for BWA-MEM2. If not set, this will be calculated to ensure at least 2.5Gb memory per core. |
120120
| `blcds_registered_dataset_input` | yes | boolean | Input FASTQs are from the Boutros Lab data registry. |
121121
| `blcds_registered_dataset_output` | yes | boolean | Enable saving final files including BAM and BAM index, and logging files directory to the Boutros Lab Data registry. |

pipeline/config/align-DNA.config

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -19,9 +19,6 @@ params {
1919
save_intermediate_files = false
2020
cache_intermediate_pipeline_steps = false
2121

22-
// resource configuraton for entire pipeline
23-
max_number_of_parallel_jobs = 1
24-
2522
// uncomment to manually set ncpus for bwa-mem2
2623
// bwa_mem_number_of_cpus = 60
2724

pipeline/config/methods.config

Lines changed: 11 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,15 +4,21 @@ manifest {
44
name = "align-DNA"
55
author = "Benjamin Carlin"
66
description = "alignment pipeline for paired fastqs DNA samples"
7-
version = "6.0.1"
7+
version = "6.0.2"
88
}
99

1010
params {
11+
// resource configuraton for entire pipeline
12+
max_number_of_parallel_jobs = 1
13+
14+
// tools and their versions
1115
bwa_version = "bwa-mem2-2.1"
1216
}
1317

1418
docker {
1519
enabled = true
20+
sudo = false
21+
runOptions = "-u \$(id -u):\$(id -g)"
1622
}
1723

1824
methods {
@@ -32,14 +38,15 @@ methods {
3238
def pattern = ~/^(?<baseDir>(?<mntDir>\/\w+)\/data\/(?<diseaseId>\w+)\/(?<datasetId>\w+)\/(?<patientId>\w+)\/(?<sampleId>[A-Za-z0-9-]+)\/(?<analyte>.+)\/(?<technology>.+))\/raw\/FASTQ\/.+$/
3339

3440
// First check if all input fastq files are from the same sample_id
35-
base_dirs = fastqs.each {
41+
// TODO: figure out why .each {} does not work any more.
42+
def base_dirs = []
43+
fastqs.each {
3644
def matcher = it =~ pattern
3745
if (!matcher.matches()) {
3846
throw new Exception("The input path ${it} isn't a valid blcds-registered path.")
3947
}
40-
return matcher.group("baseDir")
48+
base_dirs.push(matcher.group("baseDir"))
4149
}
42-
.unique(false)
4350

4451
if (base_dirs.size() > 1) {
4552
throw new Exception(

0 commit comments

Comments
 (0)