Skip to content

Commit 92800e2

Browse files
authored
Merge pull request #23 from Juke34/reditools3
Reditools3: logging and threads
2 parents 31b4d41 + d9a04b0 commit 92800e2

3 files changed

Lines changed: 19 additions & 2 deletions

File tree

config/ressources/hpc.config

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,4 +28,8 @@ process {
2828
cpus = 8
2929
time = '4d'
3030
}
31+
withName: 'reditools3' {
32+
cpus = 6
33+
time = '4d'
34+
}
3135
}

config/ressources/local.config

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,11 @@ process {
1818
memory = "4G"
1919
time = '1d'
2020
}
21+
withLabel: 'agat' {
22+
cpus = 1
23+
memory = "2G"
24+
time = '1d'
25+
}
2126
withLabel: 'hisat2_index' {
2227
cpus = 4
2328
time = '1h'
@@ -35,7 +40,13 @@ process {
3540
time = '1d'
3641
}
3742
withLabel: 'bamutil' {
43+
cpus = 1
44+
time = '1d'
45+
memory="12G"
46+
}
47+
withLabel: 'reditools3' {
3848
cpus = 2
3949
time = '1d'
50+
memory="4G"
4051
}
4152
}

modules/reditools3.nf

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,8 @@ process reditools3 {
88
path genome
99

1010
output:
11-
tuple(val(meta), path("edit_table.txt"), emit: tuple_sample_serial_table)
11+
tuple(val(meta), path("${base_name}.site_edits_reditools3.txt"), emit: tuple_sample_serial_table)
12+
path("${base_name}.reditools3.log", emit: log)
1213

1314
script:
1415
// Set the strand orientation parameter from the library type parameter
@@ -27,8 +28,9 @@ process reditools3 {
2728
// the reditools error message
2829
strand_orientation = meta.libtype
2930
}
31+
base_name = bam.BaseName
3032

3133
"""
32-
python -m reditools analyze ${bam} --reference ${genome} --strand ${strand_orientation} --output-file edit_table.txt
34+
python -m reditools analyze ${bam} --reference ${genome} --strand ${strand_orientation} --output-file ${base_name}.site_edits_reditools3.txt --threads ${task.cpus} --verbose > ${base_name}.reditools3.log
3335
"""
3436
}

0 commit comments

Comments
 (0)