63eaa62d68cb9126ea7521b44c76499f621a8ab5,src/pyscenic/scenic.py,,prune_targets,#Any#,135

Before Change


    LOGGER.info("{} - Loading databases.")
    def name(fname):
        return os.path.basename(fname).split(".")[0]
    dbs = [open(fname=fname, name=name(fname), nomenclature=nomenclature) for fname in args.database_fname]

    LOGGER.info("{} - Calculating regulomes.")
    motif_annotations_fname = args.annotations_fname.name

After Change




def prune_targets(args):
    if any(args.module_fname.name.endswith(ext) for ext in FILE_EXTENSION2SEPARATOR.keys()):
        LOGGER.info("{} - Creating modules.")
        modules = df2modules(args)
    else:
        LOGGER.info("{} - Loading modules.")
        modules = _load_modules(args.module_fname.name)

    LOGGER.info("{} - Loading databases.")
    nomenclature = modules[0].nomenclature
    dbs = _load_dbs(args.database_fname, nomenclature)
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 4

Instances


Project Name: aertslab/pySCENIC
Commit Name: 63eaa62d68cb9126ea7521b44c76499f621a8ab5
Time: 2018-03-08
Author: vandesande.bram@gmail.com
File Name: src/pyscenic/scenic.py
Class Name:
Method Name: prune_targets


Project Name: aertslab/pySCENIC
Commit Name: 63eaa62d68cb9126ea7521b44c76499f621a8ab5
Time: 2018-03-08
Author: vandesande.bram@gmail.com
File Name: src/pyscenic/scenic.py
Class Name:
Method Name: find_motifs


Project Name: home-assistant/home-assistant
Commit Name: 6c0f4c35f6e6ea8c2993c6582f2f983bc9c4c5ad
Time: 2017-09-23
Author: tommatheussen5@hotmail.com
File Name: homeassistant/components/sensor/systemmonitor.py
Class Name: SystemMonitorSensor
Method Name: update