-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathprocess-data.py
More file actions
executable file
·32 lines (21 loc) · 858 Bytes
/
process-data.py
File metadata and controls
executable file
·32 lines (21 loc) · 858 Bytes
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
import os
import subprocess
runFile = "./bigWigToBedGraph"
dataDir = "/Users/samirsen/Documents/Samir/Junior_year/enhancer-prediction/data_bw"
outDir = "/Users/samirsen/Documents/Samir/Junior_year/enhancer-prediction/bedGraph_data"
identifier_h3k27 = "H3K27ac"
identifier_p300 = "p300"
identifier_DNASE = "Dnase"
for i, filename in enumerate(os.listdir(dataDir)):
print filename
if "bed" in filename:
continue
outFile = identifier_h3k27
if identifier_DNASE in filename:
outFile = identifier_DNASE
elif identifier_p300 in filename:
outFile = identifier_p300
outputFile = outDir + "/" + outFile + "_" + str(i)
args = runFile + dataDir + "/" + filename + " " + outputFile
print args
subprocess.call('bigWigToBedGraph', cwd="/Users/samirsen/Documents/Samir/Junior_year/enhancer-prediction")