File size: 1,275 Bytes
3290550
 
 
 
 
 
 
 
 
05ebc17
3290550
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
05ebc17
3290550
 
 
 
 
 
 
 
 
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
# My code has references to the following repositories:
# RefHiC: https://github.com/BlanchetteLab/RefHiC(Analysis code)
# Axial Attention: https://github.com/lucidrains/axial-attention (Model architecture)
# Peakachu: https://github.com/tariks/peakachu (Calculate intra reads)
# Thanks a lot for their implement.
# --------------------------------------------------------

import click
from polaris.loopScore import score
from polaris.loopLF import scorelf
from polaris.loopPool import pool
from polaris.loop import pred
from polaris.utils.util_cool2bcool import cool2bcool
from polaris.utils.util_pileup import pileup
from polaris.utils.util_depth import depth

@click.group()
def cli():
    '''
    Polaris

    A Versatile Framework for Chromatin Loop Annotation in Bulk and Single-cell Hi-C Data
    '''
    pass

@cli.group()
def loop():
    '''Loop annotation.

    \b
    Annotate loops from chromosomal contact maps.
    '''
    pass

@cli.group()
def util():
    '''Utilities.
    
    \b
    Utilities for analysis and visualization.'''
    pass

loop.add_command(pred)
loop.add_command(score)
loop.add_command(scorelf)
loop.add_command(pool)

util.add_command(depth)
util.add_command(cool2bcool)
util.add_command(pileup)


if __name__ == '__main__':
    cli()