Sanitize absolute server paths to relative paths
Browse files
run_raw_sybil_survival_analysis.py
CHANGED
|
@@ -22,11 +22,11 @@ plt.rcParams.update({
|
|
| 22 |
'figure.titlesize': 16
|
| 23 |
})
|
| 24 |
|
| 25 |
-
OUTPUT_DIR = "
|
| 26 |
os.makedirs(OUTPUT_DIR, exist_ok=True)
|
| 27 |
|
| 28 |
# 1. Load Data
|
| 29 |
-
df = pd.read_csv('
|
| 30 |
df['PID'] = df['PID_Series'].apply(lambda x: str(x).split('/')[0])
|
| 31 |
tp_order = {'T0': 0, 'T1': 1, 'T2': 2}
|
| 32 |
df['T_idx'] = df['meta_ClinicalTrialTimePointID'].map(tp_order)
|
|
@@ -329,7 +329,7 @@ print("Saved Figure 6 (RAW).")
|
|
| 329 |
|
| 330 |
# Copy raw figures to brain artifact directory as well
|
| 331 |
import shutil
|
| 332 |
-
BRAIN_DIR = "/
|
| 333 |
for f in [fig_path1, fig_path2, fig_path3, fig_path4, fig_path5, fig_path6]:
|
| 334 |
shutil.copy(f, BRAIN_DIR)
|
| 335 |
|
|
|
|
| 22 |
'figure.titlesize': 16
|
| 23 |
})
|
| 24 |
|
| 25 |
+
OUTPUT_DIR = "./reports_longitudinal_sybil"
|
| 26 |
os.makedirs(OUTPUT_DIR, exist_ok=True)
|
| 27 |
|
| 28 |
# 1. Load Data
|
| 29 |
+
df = pd.read_csv('./examples/sybil_epi_nlst/nlst_final_analytics_ready.csv')
|
| 30 |
df['PID'] = df['PID_Series'].apply(lambda x: str(x).split('/')[0])
|
| 31 |
tp_order = {'T0': 0, 'T1': 1, 'T2': 2}
|
| 32 |
df['T_idx'] = df['meta_ClinicalTrialTimePointID'].map(tp_order)
|
|
|
|
| 329 |
|
| 330 |
# Copy raw figures to brain artifact directory as well
|
| 331 |
import shutil
|
| 332 |
+
BRAIN_DIR = "./.gemini/antigravity-cli/brain/52f98924-dfcf-42ce-a827-e6c3233f3fe0"
|
| 333 |
for f in [fig_path1, fig_path2, fig_path3, fig_path4, fig_path5, fig_path6]:
|
| 334 |
shutil.copy(f, BRAIN_DIR)
|
| 335 |
|