forked from paulsengroup/2022-mcf10a-cancer-progression
-
Notifications
You must be signed in to change notification settings - Fork 0
/
runme.sh
executable file
·66 lines (50 loc) · 1.4 KB
/
runme.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
#!/usr/bin/env bash
# Copyright (C) 2023 Roberto Rossini <[email protected]>
#
# SPDX-License-Identifier: MIT
set -e
set -u
set -x
set -o pipefail
trap "trap - SIGTERM && kill -- -$$" SIGINT SIGTERM EXIT
nextflow -version
mkdir -p logs/
function launch_runner_script {
script_name="$1"
log_name="${script_name#run_}"
log_file="logs/${log_name%.sh}.log"
2>&1 echo "Running \"$script_name\"..." && "./$script_name.sh" |& tee "$log_file" && 2>&1 echo "\"$script_name\" completed successfully!" || 2>&1 echo "\"$script_name\" failed!"
}
function prepare_raw_data {
launch_runner_script run_fetch_data
launch_runner_script run_preprocessing
}
function process_raw_data {
launch_runner_script run_nfcore_rnaseq &
launch_runner_script run_nfcore_hic && launch_runner_script run_postprocess_nfcore_hic &
# TODO run chip workflow
wait
}
function run_compartment_analysis {
launch_runner_script run_compartment_analysis
}
function run_tad_analysis {
launch_runner_script run_tad_analysis
launch_runner_script run_call_tad_cliques_workflow
}
function run_de_analysis {
launch_runner_script run_diff_expression_analysis
}
function run_comparative_analysis {
launch_runner_script run_compartment_analysis
}
function run_chrom3d {
launch_runner_script run_chrom3d
}
prepare_raw_data
# process_raw_data
run_tad_analysis
run_compartment_analysis
run_de_analysis
run_chrom3d
run_comparative_analysis