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
hub
ePeak
Commits
fae657c5
Commit
fae657c5
authored
Apr 25, 2022
by
Rachel LEGENDRE
Browse files
run stat_peakcalling if macs2 or seacr are set to yes
parent
e8e33bf7
Changes
1
Hide whitespace changes
Inline
Side-by-side
Snakefile
View file @
fae657c5
...
...
@@ -733,20 +733,21 @@ if config["seacr"]["do"]:
#
Peak
Calling
metrics
#----------------------------------
def
stats_pc_input
(
wildcards
):
if
wildcards
.
CALLER
==
"macs2"
:
return
expand
(
os
.
path
.
join
(
analysis_dir
,
"06-PeakCalling/{{CALLER}}/%s/{IP_REP}_peaks.{{MOD}}Peak"
%
(
model_dir
)),
IP_REP
=
IP_ALL
)
elif
wildcards
.
CALLER
==
"seacr"
:
return
expand
(
os
.
path
.
join
(
analysis_dir
,
"06-PeakCalling/{{CALLER}}/{IP_REP}.{{MOD}}.bed"
),
IP_REP
=
IP_ALL
)
stats_peakCalling_input
=
stats_pc_input
stats_peakCalling_csv
=
os
.
path
.
join
(
analysis_dir
,
"{CALLER}_{MOD}_Peaks_metrics.out"
)
stats_peakCalling_marks
=
marks
stats_peakCalling_conds
=
conds
stats_peakCalling_rep
=
rep_flag
stats_peakCalling_log
=
os
.
path
.
join
(
analysis_dir
,
"06-PeakCalling/{CALLER}/{MOD}_Peaks_metrics.out"
)
include
:
os
.
path
.
join
(
RULES
,
"stats_peakCalling.rules"
)
final_output
.
extend
(
expand
(
stats_peakCalling_csv
,
zip
,
CALLER
=
peak_caller
,
MOD
=
mod
))
if
config
[
"macs2"
][
"do"
]
or
config
[
"seacr"
][
"do"
]
:
def
stats_pc_input
(
wildcards
):
if
wildcards
.
CALLER
==
"macs2"
:
return
expand
(
os
.
path
.
join
(
analysis_dir
,
"06-PeakCalling/{{CALLER}}/%s/{IP_REP}_peaks.{{MOD}}Peak"
%
(
model_dir
)),
IP_REP
=
IP_ALL
)
elif
wildcards
.
CALLER
==
"seacr"
:
return
expand
(
os
.
path
.
join
(
analysis_dir
,
"06-PeakCalling/{{CALLER}}/{IP_REP}.{{MOD}}.bed"
),
IP_REP
=
IP_ALL
)
stats_peakCalling_input
=
stats_pc_input
stats_peakCalling_csv
=
os
.
path
.
join
(
analysis_dir
,
"{CALLER}_{MOD}_Peaks_metrics_mqc.out"
)
stats_peakCalling_marks
=
marks
stats_peakCalling_conds
=
conds
stats_peakCalling_rep
=
rep_flag
stats_peakCalling_log
=
os
.
path
.
join
(
analysis_dir
,
"06-PeakCalling/{CALLER}/{MOD}_Peaks_metrics.out"
)
include
:
os
.
path
.
join
(
RULES
,
"stats_peakCalling.rules"
)
final_output
.
extend
(
expand
(
stats_peakCalling_csv
,
zip
,
CALLER
=
peak_caller
,
MOD
=
mod
))
#----------------------------------
...
...
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