-
Notifications
You must be signed in to change notification settings - Fork 0
/
journal.pcbi.1004668.s001.SH
96 lines (79 loc) · 2.37 KB
/
journal.pcbi.1004668.s001.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
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
#!/bin/bash
# Download bam files and call peaks.
ENCODE=https://www.encodeproject.org/files
OUTDIR=../data
MACS2="macs2 callpeak -f BAM -g hs"
################################################################################
echo "Processing kidney epithelial cell data"
# Kidney epithelial cells
# https://www.encodeproject.org/experiments/ENCSR000DVH/
# Rep 1 - ENCFF001HQY
# Rep 2 - ENCFF001HRF
# Control - ENCFF001HRJ
# Setup
SUBDIR=$OUTDIR/epithelial
mkdir -p $SUBDIR
# Download
# $ENCODE/$SAMPLE/@@download/$SAMPLE.bam
if [[ ! -e $SUBDIR/ENCFF001HQY.bam ]]
then
echo "Downloading data"
for SAMPLE in ENCFF001HQY ENCFF001HRF ENCFF001HRJ
do
wget -O $SUBDIR/$SAMPLE.bam $ENCODE/$SAMPLE/@@download/$SAMPLE.bam
done
fi
# Run MACS2
echo "Running MACS2"
$MACS2 -t $SUBDIR/ENCFF001HQY.bam $SUBDIR/ENCFF001HRF.bam -c $SUBDIR/ENCFF001HRJ.bam \
-n epithelial --outdir $SUBDIR
################################################################################
echo "Processing proximal tube data"
# Epithelial cell of proximal tube
# https://www.encodeproject.org/experiments/ENCSR000DXD/
# Rep 1 - ENCFF001HWB
# Rep 2 - ENCFF001HWC
# Control - ENCFF001HWN
# Setup
SUBDIR=$OUTDIR/proximal-tube
mkdir -p $SUBDIR
# Download
# $ENCODE/$SAMPLE/@@download/$SAMPLE.bam
if [[ ! -e $SUBDIR/ENCFF001HWB.bam ]]
then
echo "Downloading data"
for SAMPLE in ENCFF001HWB ENCFF001HWC ENCFF001HWN
do
wget -O $SUBDIR/$SAMPLE.bam $ENCODE/$SAMPLE/@@download/$SAMPLE.bam
done
fi
# Run MACS2
echo "Running MACS2"
$MACS2 -t $SUBDIR/ENCFF001HWB.bam $SUBDIR/ENCFF001HWC.bam -c $SUBDIR/ENCFF001HWN.bam \
-n proximal-tube --outdir $SUBDIR
################################################################################
echo "Processing kidney data"
# kidney
# https://www.encodeproject.org/experiments/ENCSR000DMC/
# Rep 1 - ENCFF000RWX
# Rep 2 - ENCFF000RWW
# Rep 3 - ENCFF000RWZ
# Control - ENCFF000RXD
# Setup
SUBDIR=$OUTDIR/kidney
mkdir -p $SUBDIR
# Download
# $ENCODE/$SAMPLE/@@download/$SAMPLE.bam
if [[ ! -e $SUBDIR/ENCFF000RWX.bam ]]
then
echo "Downloading data"
for SAMPLE in ENCFF000RWX ENCFF000RWW ENCFF000RWZ ENCFF000RXD
do
wget -O $SUBDIR/$SAMPLE.bam $ENCODE/$SAMPLE/@@download/$SAMPLE.bam
done
fi
# Run MACS2
echo "Running MACS2"
$MACS2 -t $SUBDIR/ENCFF000RWX.bam $SUBDIR/ENCFF000RWW.bam $SUBDIR/ENCFF000RWZ.bam \
-c $SUBDIR/ENCFF000RXD.bam \
-n kidney --outdir $SUBDIR