conf.py 3.56 KB
Newer Older
aknecht2's avatar
aknecht2 committed
1
2
import string

3
4
5
6
7
8
# Module directory
job_modules = "jobs/modules/"

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

9
10
11
# Job wrappers directory
job_wrappers = "jobs/wrappers/"

12
13
14
# Job scripts directory
job_scripts = "jobs/scripts/"

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

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

27
28
29
30
31
32
# Current align tools
align_tools = [
    "bwa",
    "bowtie2"
]

33
# Current peak calling tools
34
35
peak_tools = [
    "spp",
36
    "macs2",
37
    "gem",
38
    "peakranger",
aknecht2's avatar
aknecht2 committed
39
40
    "ccat",
    "music"
41
42
]

43
44
45
46
47
48
# Peak_type validation
peak_types = {
    "spp": ["narrow", "broad"],
    "macs2": ["narrow", "broad"],
    "gem": ["narrow"],
    "peakranger": ["narrow"],
aknecht2's avatar
aknecht2 committed
49
50
    "ccat": ["broad"],
    "music": ["narrow", "punctate", "broad"]
51
52
}

53
54
# File extensions
file_extensions = {
55
    "genome_index": ["fa", "fna"],
56
    "fastq": ["fastq", "fastq.gz"],
57
    "sai": ["sai"],
58
59
    "sam": ["sam"],
    "bam": ["bam"],
60
    "bed": ["bed", "peak", "region", "narrowPeak", "broadPeak", "tagAlign", "narrowPeak.gz", "broadPeak.gz"],
aknecht2's avatar
aknecht2 committed
61
    "bin": ["bin"],
62
    "bwa_genome": ["amb", "ann", "bwt", "pac", "sa"],
63
    "bowtie2_genome": ["1.bt2", "2.bt2", "3.bt2", "4.bt2", "rev.1.bt2", "rev.2.bt2"],
aknecht2's avatar
aknecht2 committed
64
    "quality": ["quality"],
65
66
    "qc": ["qc"],
    "pdf": ["pdf"],
67
    "ccscore": ["ccscore"],
68
69
    "xls": ["xls"],
    "yaml": ["yaml"],
Adam Caprez's avatar
Adam Caprez committed
70
    "result": ["bed", "narrowPeak", "broadPeak", "tagAlign", "bam"],
71
    "txt": ["txt"],
72
    "chrom_sizes": ["sizes"],
73
    "read_dist" : ["txt"],
74
75
76
    "plaintext": ["txt", "md"],
    "ccat_conf": ["txt", "conf"],
    "log": ["log"]
77
}
aknecht2's avatar
aknecht2 committed
78
file_extensions["any"] = list(string.ascii_lowercase)
79

Adam Caprez's avatar
Adam Caprez committed
80
81
# list of resources that can be specified per job (step) in
# the workflow and corresponding Pegasus profile info
82
83
84
85
86
87
88
89
resources = {
    "walltime": {
        "namespace": "globus",
        "key": "maxwalltime"
    },
    "memory": {
        "namespace": "condor",
        "key": "request_memory"
90
91
    },
    "cores": {
aknecht2's avatar
aknecht2 committed
92
        "namespace": "pegasus",
93
        "key": "cores"
94
95
96
97
    },
    "nodes": {
        "namespace": "pegasus",
        "key": "nodes"
98
    }
Adam Caprez's avatar
Adam Caprez committed
99
100
}

101
102
# Defines the types of input / output arguments
# argument -> Any non file argument
103
104
#   string -> Any string argument
#   numeric -> Numeric arguments.
105
# file -> Any file argument that isn't redirected
106
107
108
#   file -> Normal file arguments.
#   stdout -> Any file argument that is redirected from stdout
#   stderr -> Any file argument that is redirected from stderr
109
110
# list -> For variable argument inputs
#   list -> Currently a list of files.
111
argument_types = {
112
    "argument": ["string", "numeric"],
113
    "file": ["file", "rawfile", "stdout", "stderr"],
aknecht2's avatar
aknecht2 committed
114
115
    "list": ["list"],
    "folder": ["folder", "rawfolder"]
116
117
118
119
120
}

# Defines information about arguments
argument_keys = {
    "required": ["type", "changeable", "has_value"],
121
    "optional": ["required", "default", "file_type", "path"]
122
123
124
125
126
127
}

# workflow_job keys
job_keys = {
    "required": ["inputs", "additional_inputs", "outputs", "command", "arguments"] + resources.keys(),
    "optional": []
128
}
129

130
131
# param keys
param_keys = {
132
133
    "required": [],
    "optional": ["arguments"] + resources.keys()
134
135
}

136
137
138
139
140
file_list_keys = {
    "required": ["name", "type"],
    "optional": ["file_type"]
}

141
142
# workflow order
workflow = ["align", "remove_duplicates", "peak_calling"]
143
144
145
146
147
148
149
150
151
152
153
154

# 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"]
    }
}