-
Notifications
You must be signed in to change notification settings - Fork 2
/
process_cortical_expression_data.sh
executable file
·49 lines (41 loc) · 1.48 KB
/
process_cortical_expression_data.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
#!/bin/bash
# ----------------------------------------------------------------------------
# process_cortical_expression_data
# Author: Antoine Beauchamp
#
# Process mouse and human cortical expression data sets.
#Data directory
datadir=data/isocortex/
#Create a mouse voxel-wise expression matrix with only isocortical labels
Rscript subset_cortical_labels.R
# Normalize and aggregate cortical data
echo "Normalizing mouse isocortical expression matrix..."
Rscript process_labelled_matrix.R \
--infile ${datadir}MouseExpressionMatrix_voxel_coronal_maskcoronal_log2_grouped_imputed_labelled.csv \
--scale true \
--aggregate false \
--outdir ${datadir} \
--verbose true
echo "Normalizing human isocortical expression matrix..."
Rscript process_labelled_matrix.R \
--infile ${datadir}HumanExpressionMatrix_samples_pipeline_abagen_labelled.csv \
--scale true \
--aggregate false \
--outdir ${datadir} \
--verbose true
echo "Normalizing and aggregating mouse isocortical expression matrix..."
Rscript process_labelled_matrix.R \
--infile ${datadir}MouseExpressionMatrix_voxel_coronal_maskcoronal_log2_grouped_imputed_labelled.csv \
--scale true \
--aggregate true \
--nlabels 67 \
--outdir ${datadir} \
--verbose true
echo "Normalizing and aggregating human isocortical expression matrix..."
Rscript process_labelled_matrix.R \
--infile ${datadir}HumanExpressionMatrix_samples_pipeline_abagen_labelled.csv \
--scale true \
--aggregate true \
--nlabels 88 \
--outdir ${datadir} \
--verbose true