def plan(config, executor):
    if parsing.isgbk(config):
        logger.debug(
            "GBK file, extracting known CDS to json %s", config['filename'])
        rconfig, hash = get_hash(config)
        target_file = parsing.derive_filename(config, hash, 'track.genes.json')
        config['InputCDSFileJson'] = target_file
        return enqueue(_extract, executor, rconfig, target_file)
示例#2
0
def plan(config, executor):
    if parsing.isgbk(config):
        logger.debug(
            "GBK file, extracting known gene names %s", config['filename'])
        rconfig, hash = get_hash(config)
        target_file = parsing.derive_filename(config, hash, 'genes')
        config[OUTPUTKEY] = target_file
        return enqueue(_extract, executor, rconfig, target_file)
def test_isgbk(gbkconfig, fnaconfig):
    assert True == parsing.isgbk(gbkconfig)
    assert False == parsing.isgbk(fnaconfig)