-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathnextflow.config
86 lines (72 loc) · 2.42 KB
/
nextflow.config
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
/*
* -------------------------------------------------
* TRON-Bioinformatics/bam2tensor
* -------------------------------------------------
*/
params.memory = 15g
params.cpus = 8
profiles {
conda {
process.conda = "$baseDir/environment.yml"
conda.enabled = true
params.enable_conda = true
conda { createTimeout = "120 min" }
}
debug { process.beforeScript = 'echo $HOSTNAME' }
test {
timeline.enabled = false
report.enabled = false
trace.enabled = false
dag.enabled = false
}
}
// Export this variable to prevent local Python libraries from conflicting with those in the container
env {
PYTHONNOUSERSITE = 1
}
// Capture exit codes from upstream processes when piping
process.shell = ['/bin/bash', '-euo', 'pipefail']
VERSION = '1.0.0'
DOI='doi'
manifest {
name = 'tron-bioinformatics/bam2tensor'
author = 'Ozlem Muslu'
homePage = 'https://github.com/TRON-Bioinformatics/bam2tensor'
description = 'bam2tensor'
nextflowVersion = '>=24.10.3'
version = VERSION
doi = DOI
}
params.manifest = manifest
params.help_message = """
bam2tensor v${VERSION}
Usage:
nextflow run tron-bioinformatics/bam2tensor
-profile conda \
--input_files input_files \
--publish_dir out_dir \
--reference genome_ref.fa \
--window 150 \
--max_coverage 500 \
--read_length 50 \
--max_mapq 60 \
--max_baseq 82
Input:
* input_files: the path to a tab-separated values file containing in each row the sample name and a BAM file
The input file does not have header!
Example input file:
name1 tumor_bam1 tumor_bai1 normal_bam1 normal_bai1 candidates1.tsv
name2 tumor_bam2 tumor_bai2 normal_bam2 normal_bai2 candidates2.tsv
* reference: the reference genome
* window: length of the window to be included around the variant
* max_coverage: Maximum coverage value to normalize coverage matrices
* read_length: The length of majority of the reads in BAM
* max_mapq: Maximum mapping quality to normalize mapping quality matrices, values indicating unknown mapping quality is ignored
* max_baseq: Maximum base quality to normalize base quality matrices, values indicating unknown base quality is ignored
Optional input:
* publish_dir: the folder where to publish output
* memory: the ammount of memory used by each job (default: 15g)
* cpus: the number of CPUs used by each job (default: 8)
Output:
* Tensors under the output folder
"""