-
Notifications
You must be signed in to change notification settings - Fork 25
/
signature_analysis.sh
executable file
·47 lines (41 loc) · 1.75 KB
/
signature_analysis.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
#!/bin/bash
#
# Gregory Way 2019
# BioBombe
# 10.gene-expression-signatures/signature_analysis.sh
#
# Identify sample sex and MYCN amplification signatures from compressed gene expression
# First, convert all notebooks to scripts
jupyter nbconvert --to=script \
--FilesWriter.build_directory=scripts/nbconverted \
*.ipynb
# Step 0 - Download Validation Data
jupyter nbconvert --to=html \
--FilesWriter.build_directory=scripts/html \
--ExecutePreprocessor.kernel_name=python3 \
--ExecutePreprocessor.timeout=10000000 \
--execute 0.download-validation-data.ipynb
# Step 1 - Detect the top differentiating features for sex and MYCN amplification
jupyter nbconvert --to=html \
--FilesWriter.build_directory=scripts/html \
--ExecutePreprocessor.kernel_name=python3 \
--ExecutePreprocessor.timeout=10000000 \
--execute 1.separate.ipynb
# Step 2 - Investigate the specific genes involved in the sex signatures
jupyter nbconvert --to=html \
--FilesWriter.build_directory=scripts/html \
--ExecutePreprocessor.kernel_name=python3 \
--ExecutePreprocessor.timeout=100000 \
--execute 2.investigate-sex-signature-genes.ipynb
# Step 3 - Apply the MYCN signature to an external validation dataset
jupyter nbconvert --to=html \
--FilesWriter.build_directory=scripts/html \
--ExecutePreprocessor.kernel_name=python3 \
--ExecutePreprocessor.timeout=100000 \
--execute 3.apply-mycn-signature.ipynb
# Step 4 - Visualize the results
jupyter nbconvert --to=html \
--FilesWriter.build_directory=scripts/html \
--ExecutePreprocessor.kernel_name=ir \
--ExecutePreprocessor.timeout=100000 \
--execute 4.visualize-signature-separation.ipynb