-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathrun_ras_csc_feedback_hypothesis.sh
More file actions
executable file
·90 lines (74 loc) · 3.03 KB
/
Copy pathrun_ras_csc_feedback_hypothesis.sh
File metadata and controls
executable file
·90 lines (74 loc) · 3.03 KB
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
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
#!/usr/bin/env bash
# run_ras_csc_feedback_hypothesis.sh
#
# Run the full Ras–CSC feedback loop hypothesis pipeline:
# 01_process_bulk_rnaseq.R
# 02_process_scrna.R
# 03_process_atacseq.R
# 04_run_model_calibration.py
# 05_run_hypothesis_tests.py
# 06_run_sensitivity_analysis.py
# 07_run_phase_plane_plots.py
# 08_run_temporal_analysis.py
# 09_run_predictions.py
#
# Assumes:
# - You run this from the repository root
# - Rscript is on PATH
# - python points to the environment where dependencies are installed
set -euo pipefail
# Simple error trap to make failures obvious
trap 'echo "[ERROR] Pipeline failed at line $LINENO" >&2' ERR
echo "======================================================================"
echo "Ras–CSC feedback Loop Hypothesis Pipeline"
echo "======================================================================"
echo "Working directory: $(pwd)"
echo
# Optional: activate a venv if you want (uncomment and edit if needed)
# source .venv_ras-csc-switch-mm/bin/activate
# ----------------------------------------------------------------------
# STEP 01–03: Omics processing (R)
# ----------------------------------------------------------------------
echo "[STEP 01/09] Bulk RNA-seq processing (01_process_bulk_rnaseq.R)"
Rscript pipelines/data_processing/01_process_bulk_rnaseq.R
echo "[DONE] Step 01 complete."
echo
echo "[STEP 02/09] scRNA-seq processing (02_process_scrna.R)"
Rscript pipelines/data_processing/02_process_scrna.R
echo "[DONE] Step 02 complete."
echo
echo "[STEP 03/09] ATAC-seq processing (03_process_atacseq.R)"
Rscript pipelines/data_processing/03_process_atacseq.R
echo "[DONE] Step 03 complete."
echo
# ----------------------------------------------------------------------
# STEP 04–09: Model calibration, tests, and predictions (Python)
# ----------------------------------------------------------------------
echo "[STEP 04/09] Model calibration (04_run_model_calibration.py)"
python src/scripts/04_run_model_calibration.py
echo "[DONE] Step 04 complete."
echo
echo "[STEP 05/09] Hypothesis tests (05_run_hypothesis_tests.py)"
python src/scripts/05_run_hypothesis_tests.py
echo "[DONE] Step 05 complete."
echo
echo "[STEP 06/09] Sensitivity analysis (06_run_sensitivity_analysis.py)"
python src/scripts/06_run_sensitivity_analysis.py
echo "[DONE] Step 06 complete."
echo
echo "[STEP 07/09] Phase-plane analysis (07_run_phase_plane_plots.py)"
python src/scripts/07_run_phase_plane_plots.py
echo "[DONE] Step 07 complete."
echo
echo "[STEP 08/09] Temporal analysis (08_run_temporal_analysis.py)"
python src/scripts/08_run_temporal_analysis.py
echo "[DONE] Step 08 complete."
echo
echo "[STEP 09/09] Predictions + falsification (09_run_predictions.py)"
python src/scripts/09_run_predictions.py
echo "[DONE] Step 09 complete."
echo
echo "======================================================================"
echo "Pipeline complete: all 09 steps ran without error."
echo "Check ./results and ./figures/main for outputs."
echo "======================================================================"