forked from Hongyang449/Anchor
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathANCHOR.py
executable file
·39 lines (29 loc) · 1.18 KB
/
ANCHOR.py
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
"""
Script for predicting genome-scale TF binding sites.
Use `ANCHOR.py -h` to see descriptions of the arguments.
"""
import argparse
import os
def get_args():
parser = argparse.ArgumentParser(description="ANCHOR - predicting genome-scale TF binding sites.",
epilog='\n'.join(__doc__.strip().split('\n')[1:]).strip(),
formatter_class=argparse.RawTextHelpFormatter)
parser.add_argument('-tf', '--tf', default='TAF1', nargs='+',type=str,
help='The Trascription Factor to predict (e.g. TAF1)')
parser.add_argument('-cell', '--cell_line', default='H1-hESC', type=str,
help='The cell line name of the DNase-seq data')
args = parser.parse_args()
return args
def main():
args = get_args()
## 1. Prepare DNase-seq feature
os.system('python ANCHOR_dnase.py -cell ' + args.cell_line)
## 2. Prepare DNA sequence and TF motif features
os.system('python ANCHOR_sequence.py -tf ' + args.tf)
## 3. Prepare gene location features
os.system('python ANCHOR_gencode.py')
## 4. Make predictions
os.system('python ANCHOR_prediction.py -tf ' + args.tf + \
' -cell ' + args.cell_line)
if __name__ == '__main__':
main()