conf.py 3.45 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",
39
    "ccat"
40
41
]

42
43
44
45
46
47
48
49
50
# Peak_type validation
peak_types = {
    "spp": ["narrow", "broad"],
    "macs2": ["narrow", "broad"],
    "gem": ["narrow"],
    "peakranger": ["narrow"],
    "ccat": ["broad"]
}

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

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

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

# Defines information about arguments
argument_keys = {
    "required": ["type", "changeable", "has_value"],
117
    "optional": ["required", "default", "file_type", "path"]
118
119
120
121
122
123
}

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

126
127
# param keys
param_keys = {
128
129
    "required": [],
    "optional": ["arguments"] + resources.keys()
130
131
}

132
133
134
135
136
file_list_keys = {
    "required": ["name", "type"],
    "optional": ["file_type"]
}

137
138
# workflow order
workflow = ["align", "remove_duplicates", "peak_calling"]
139
140
141
142
143
144
145
146
147
148
149
150

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