src/scBONITA/classDefinitions.py
def read_gmt(filename):
    """read in file with pathway genes and names"""
    gmt_dict = {}
    inputfile = open(filename, "r")
    lines = inputfile.readlines()
    for line in lines:
        newline = line.split("    ")
        gmt_dict[newline[0]] = set(newline[2:])
    return gmt_dict
read in file with pathway genes and names
read in file with pathway genes and names
read in file with pathway genes and names
def read_gmt(filename):
    gmt_dict = {}
    inputfile = open(filename, "r")
    lines = inputfile.readlines()
    for line in lines:
        newline = line.split("    ")
        gmt_dict[newline[0]] = set(newline[2:])
    return gmt_dict
def read_gmt ( filename ) : gmt_dict = { } inputfile = open ( filename , "r" ) lines = inputfile . readlines ( ) for line in lines : newline = line . split ( "    " ) gmt_dict [ newline [ 0 ] ] = set ( newline [ 2 : ] ) return gmt_dict
read in file with pathway genes and names
read in file with pathway genes and names
"""read in file with pathway genes and names"""
filename