scout/parse/cytoband.py
def cli(infile):
    """docstring for cli"""
    lines = get_file_handle(infile)
    cytobands = parse_cytoband(lines)
    
    print("Check some coordinates:")
    
    print("checking chrom 1 pos 2")
    intervals = cytobands['1'][2]
    for interval in intervals:
        print(interval)
        print(interval.begin)
        print(interval.end)
        print(interval.data)
        # print(interval.__dict__)
    print(cytobands['1'][2])
    
    print("checking chrom 8 pos 101677777")
    print(cytobands['8'][101677777])

    print("checking chrom X pos 4200000 - 6000000")
    print(cytobands['X'][4200000:6000000])
def cli(infile):
    lines = get_file_handle(infile)
    cytobands = parse_cytoband(lines)
    
    print("Check some coordinates:")
    
    print("checking chrom 1 pos 2")
    intervals = cytobands['1'][2]
    for interval in intervals:
        print(interval)
        print(interval.begin)
        print(interval.end)
        print(interval.data)
        # print(interval.__dict__)
    print(cytobands['1'][2])
    
    print("checking chrom 8 pos 101677777")
    print(cytobands['8'][101677777])

    print("checking chrom X pos 4200000 - 6000000")
    print(cytobands['X'][4200000:6000000])
def cli ( infile ) : lines = get_file_handle ( infile ) cytobands = parse_cytoband ( lines ) print ( "Check some coordinates:" ) print ( "checking chrom 1 pos 2" ) intervals = cytobands [ '1' ] [ 2 ] for interval in intervals : print ( interval ) print ( interval . begin ) print ( interval . end ) print ( interval . data ) # print(interval.__dict__) print ( cytobands [ '1' ] [ 2 ] ) print ( "checking chrom 8 pos 101677777" ) print ( cytobands [ '8' ] [ 101677777 ] ) print ( "checking chrom X pos 4200000 - 6000000" ) print ( cytobands [ 'X' ] [ 4200000 : 6000000 ] )
docstring for cli
docstring for cli