conf.py 2 KB
Newer Older
1
2
3
4
5
6
# Module directory
job_modules = "jobs/modules/"

# Job params directory
job_params = "jobs/params/"

7
8
9
# Job wrappers directory
job_wrappers = "jobs/wrappers/"

10
11
12
# Job scripts directory
job_scripts = "jobs/scripts/"

13
14
15
16
17
18
19
20
21
22
23
24
# SYSTEM PATH, probably /bin
system_path = "/bin/"

# System commands mv, cp, sort, zcat, awk e.t.c
system_commands = [
    "mv",
    "cp",
    "sort",
    "zcat",
    "awk"
]

25
26
# File extensions
file_extensions = {
27
    "genome_index": ["fa", "fna"],
28
    "fastq": ["fastq", "fastq.gz"],
29
    "sai": ["sai"],
30
31
    "sam": ["sam"],
    "bam": ["bam"],
32
    "bed": ["bed", "narrowPeak", "broadPeak", "tagAlign"],
33
    "bwa_genome": ["amb", "ann", "bwt", "pac", "sa"],
34
    "bowtie2_genome": ["1.bt2", "2.bt2", "3.bt2", "4.bt2", "rev.1.bt2", "rev.2.bt2"],
aknecht2's avatar
aknecht2 committed
35
    "quality": ["quality"],
36
37
38
    "qc": ["qc"],
    "pdf": ["pdf"],
    "ccscore": ["ccscore"]
39
}
40

Adam Caprez's avatar
Adam Caprez committed
41
42
# list of resources that can be specified per job (step) in
# the workflow and corresponding Pegasus profile info
43
44
45
46
47
48
49
50
resources = {
    "walltime": {
        "namespace": "globus",
        "key": "maxwalltime"
    },
    "memory": {
        "namespace": "condor",
        "key": "request_memory"
51
52
    },
    "cores": {
aknecht2's avatar
aknecht2 committed
53
        "namespace": "pegasus",
54
        "key": "cores"
55
    }
Adam Caprez's avatar
Adam Caprez committed
56
57
}

58
59
60
61
62
63
64
65
# Defines the types of input / output arguments
# argument -> Any non file argument
# file -> Any file argument that isn't redirected
# stdout -> Any file argument that is redirected from stdout
# stderr -> Any file argument that is redirected from stderr
argument_types = {
    "argument": ["argument"],
    "file": ["file", "stdout", "stderr"]
66
}
67

68
69
70
# param keys
param_keys = {
    "required": ["arguments"],
Adam Caprez's avatar
Adam Caprez committed
71
    "optional": resources.keys()
72
73
74
75
}

# workflow order
workflow = ["align", "remove_duplicates", "peak_calling"]
76
77
78
79
80
81
82
83
84
85
86
87

# genome info
genomes = {
    "bwa": {
        "base_file": file_extensions["genome_index"],
        "additional_files": file_extensions["bwa_genome"]
    },
    "bowtie2": {
        "base_file": file_extensions["genome_index"],
        "additional_files": file_extensions["bowtie2_genome"]
    }
}