-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathRun_Step2_Single_mESCs.py
More file actions
72 lines (53 loc) · 2.43 KB
/
Run_Step2_Single_mESCs.py
File metadata and controls
72 lines (53 loc) · 2.43 KB
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
# -*- coding: utf-8 -*-
"""
Created on Mon Mar 7 17:38:27 2022
@author: user
"""
import os
#package dir
package_dir='E:/teacher-2020/Projects/Project11/Codes/HiCS_Packages/'
os.chdir(package_dir)
######################################################################
################# Users Variables ##############################
######################################################################
#Dataset location
#output locations
BINSIZE=40000
INDIR='Datasets_Single_mESCs'
OUTDIR='Datasets_Single_mESCs_'+str(BINSIZE//1000)+'kb'
#the name of reference genome
GENOME='mm9';
CHR_LEN='ext/mm9.chrom.sizes';
###file suffix
#FILE_SUFFIX=".abj"
###statistic concact counts of single cells
#CONCACT_NUM=package_dir+'ext/contact_num.csv'
#LOW_CUTOFF=1e4
#CHR_COLUMNS=[0,3]
#POS_COLUMNS=[1,4]
###slide window size of computing insulation strength
#WINDOW=20
########################################################################
# ########################################################################
# ########### run step 1 binning #############
# ########################################################################
# #command='python HiCS_main.py -i INDIR -o OUTDIR -l --binsize BINSIZE --step steps'
# STEPS="bin"
# command='python HiCS_main.py -i '+INDIR+' -o '+OUTDIR+' -l '+CHR_LEN+' --binsize '+str(BINSIZE)+' --steps '+STEPS
# os.system(command)
# ########################################################################
# ########### step 2:imputing #############
# ########################################################################
# #command='python HiCS_main.py -i INDIR -o OUTDIR -l --binsize BINSIZE --step steps'
# STEPS="rl"
# command='python HiCS_main.py -i '+INDIR+' -o '+OUTDIR+' -l '+CHR_LEN+' --binsize '+str(BINSIZE)+' --steps '+STEPS
# os.system(command)
########################################################################
##### run step 3:detecting TAD boundaries of single cells #######
########################################################################
#command='python HiCS_main.py -i INDIR -o OUTDIR -l --binsize BINSIZE --step STEPS --scale SCALE'
#please setting scale parameter
SCALE=1
STEPS='sctadboundaries'
command='python HiCS_main.py -i '+INDIR+' -o '+OUTDIR+' -l '+CHR_LEN+' --binsize '+str(BINSIZE)+' --steps '+STEPS+'--scale'+str(SCALE)
os.system(command)