Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Holland Computing Center
chipathlon
Commits
738e3744
Commit
738e3744
authored
Mar 30, 2016
by
aknecht2
Browse files
Fixed peak calling workflow generation, updated configuration and yaml files.
parent
acdc8601
Changes
6
Hide whitespace changes
Inline
Side-by-side
chipathlon/conf.py
View file @
738e3744
...
@@ -21,7 +21,9 @@ file_extensions = {
...
@@ -21,7 +21,9 @@ file_extensions = {
"bwa_genome"
:
[
"amb"
,
"ann"
,
"bwt"
,
"pac"
,
"sa"
],
"bwa_genome"
:
[
"amb"
,
"ann"
,
"bwt"
,
"pac"
,
"sa"
],
"bowtie2_genome"
:
[
"1.bt2"
,
"2.bt2"
,
"3.bt2"
,
"4.bt2"
,
"rev.1.bt2"
,
"rev.2.bt2"
],
"bowtie2_genome"
:
[
"1.bt2"
,
"2.bt2"
,
"3.bt2"
,
"4.bt2"
,
"rev.1.bt2"
,
"rev.2.bt2"
],
"quality"
:
[
"quality"
],
"quality"
:
[
"quality"
],
"qc"
:
[
"qc"
]
"qc"
:
[
"qc"
],
"pdf"
:
[
"pdf"
],
"ccscore"
:
[
"ccscore"
]
}
}
# list of resources that can be specified per job (step) in
# list of resources that can be specified per job (step) in
...
...
chipathlon/jobs/params/macs2_callpeak.yaml
View file @
738e3744
...
@@ -6,6 +6,7 @@ macs2_callpeak:
...
@@ -6,6 +6,7 @@ macs2_callpeak:
type
:
file
type
:
file
-
prefix
:
-
prefix
:
type
:
argument
type
:
argument
additional_inputs
:
null
outputs
:
outputs
:
-
bed
:
-
bed
:
type
:
file
type
:
file
...
...
chipathlon/jobs/params/r_spp_nodups.yaml
View file @
738e3744
...
@@ -4,6 +4,7 @@ r_spp_nodups:
...
@@ -4,6 +4,7 @@ r_spp_nodups:
type
:
file
type
:
file
-
bam
:
-
bam
:
type
:
file
type
:
file
additional_inputs
:
null
outputs
:
outputs
:
-
bed
:
-
bed
:
type
:
file
type
:
file
...
@@ -42,17 +43,17 @@ r_spp_nodups:
...
@@ -42,17 +43,17 @@ r_spp_nodups:
changeable
:
false
changeable
:
false
required
:
true
required
:
true
has_value
:
true
has_value
:
true
default
:
$outputs.
1
default
:
$outputs.
0
-
"
-savp"
:
-
"
-savp"
:
changeable
:
false
changeable
:
false
required
:
true
required
:
true
has_value
:
true
has_value
:
true
default
:
$outputs.
2
default
:
$outputs.
1
-
"
-out"
:
-
"
-out"
:
changeable
:
false
changeable
:
false
required
:
true
required
:
true
has_value
:
true
has_value
:
true
default
:
$outputs.
3
default
:
$outputs.
2
-
"
-fdr"
:
-
"
-fdr"
:
changeable
:
true
changeable
:
true
required
:
false
required
:
false
...
...
chipathlon/jobs/params/sort_awk_sort_peaks.yaml
View file @
738e3744
...
@@ -2,6 +2,7 @@ sort_awk_sort_peaks:
...
@@ -2,6 +2,7 @@ sort_awk_sort_peaks:
inputs
:
inputs
:
-
bed
:
-
bed
:
type
:
file
type
:
file
additional_inputs
:
null
outputs
:
outputs
:
-
bed
:
-
bed
:
type
:
file
type
:
file
...
...
chipathlon/jobs/params/zcat_awk_sort_peaks.yaml
View file @
738e3744
...
@@ -2,6 +2,7 @@ zcat_awk_sort_peaks:
...
@@ -2,6 +2,7 @@ zcat_awk_sort_peaks:
inputs
:
inputs
:
-
bed
:
-
bed
:
type
:
file
type
:
file
additional_inputs
:
null
outputs
:
outputs
:
-
bed
:
-
bed
:
type
:
file
type
:
file
...
...
chipathlon/workflow.py
View file @
738e3744
...
@@ -58,6 +58,7 @@ class Workflow(object):
...
@@ -58,6 +58,7 @@ class Workflow(object):
self
.
_add_download
()
self
.
_add_download
()
self
.
_add_align
()
self
.
_add_align
()
self
.
_add_remove_duplicates
()
self
.
_add_remove_duplicates
()
self
.
_add_peak_calling
()
# Create pegasus important stuff
# Create pegasus important stuff
self
.
_create_setup
()
self
.
_create_setup
()
self
.
_add_notify
()
self
.
_add_notify
()
...
@@ -334,11 +335,9 @@ class Workflow(object):
...
@@ -334,11 +335,9 @@ class Workflow(object):
# prefix and add in as input_files
# prefix and add in as input_files
# remove_duplicates returns prefix_no_dups.bam
# remove_duplicates returns prefix_no_dups.bam
# REMEMBER: experiment is always first
# REMEMBER: experiment is always first
final_prefix
=
""
final_prefix
=
run
[
"prefix"
][
0
]
+
"_"
+
run
[
"prefix"
][
1
]
for
i
,
file_tuple
in
enumerate
(
pair
):
inputs
[
"exp.bam"
]
=
run
[
"prefix"
][
0
]
+
"_no_dups.bam"
prefix
=
run
[
"prefix"
][
i
]
inputs
[
"control.bam"
]
=
run
[
"prefix"
][
1
]
+
"_no_dups.bam"
inputs
[
"exp.bam"
]
=
prefix
+
"_no_dups.bam"
final_prefix
+=
prefix
if
run
[
"peak"
]
==
"spp"
:
if
run
[
"peak"
]
==
"spp"
:
pass
pass
elif
run
[
"peak"
]
==
"macs2"
:
elif
run
[
"peak"
]
==
"macs2"
:
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment