src/utilities/rna_velocity/run_kb_python.py
def display_info(logger):
    """Displays kb, kallisto and bustools version + citation information, along
    with a brief description and examples.
    
    Keyword Argument:
    mainlogger - Logger of main function (type: logging.Logger)
    """
    info_command = ["kb", "info"]

    #     if ut_log.log_command(
    #         logger,
    #         info_command,
    #         stdout=subprocess.PIPE,
    #         stderr=subprocess.STDOUT,
    #         shell=True,
    #     ):
    #         logger.info("Failed to view kb_python package details")
    #     sys.exit(1)

    proc = subprocess.run(" ".join(info_command), **kwargs)

    if proc.returncode != 0:
        raise RuntimeError("`info` command failed")
        if proc.stdout and isinstance(proc.stdout, str):
            raise RuntimeError(proc.stdout)
        elif isinstance(proc.stdout, bytes):
            raise RuntimeError(proc.stdout.decode())

        return True
    else:
        return False
Displays kb, kallisto and bustools version + citation information, along
    with a brief description and examples.
    
    Keyword Argument:
    mainlogger - Logger of main function (type: logging.Logger)
    
Displays kb, kallisto and bustools version + citation information, along
with a brief description and examples.

Keyword Argument:
mainlogger - Logger of main function (type: logging.Logger)
Displays kb kallisto and bustools version + citation information along with a brief description and examples . Keyword Argument : mainlogger - Logger of main function ( type : logging . Logger )
def display_info(logger):
    info_command = ["kb", "info"]
    proc = subprocess.run(" ".join(info_command), **kwargs)
    if proc.returncode != 0:
        raise RuntimeError("`info` command failed")
        if proc.stdout and isinstance(proc.stdout, str):
            raise RuntimeError(proc.stdout)
        elif isinstance(proc.stdout, bytes):
            raise RuntimeError(proc.stdout.decode())
        return True
    else:
        return False
def display_info ( logger ) : info_command = [ "kb" , "info" ] proc = subprocess . run ( " " . join ( info_command ) , ** kwargs ) if proc . returncode != 0 : raise RuntimeError ( "`info` command failed" ) if proc . stdout and isinstance ( proc . stdout , str ) : raise RuntimeError ( proc . stdout ) elif isinstance ( proc . stdout , bytes ) : raise RuntimeError ( proc . stdout . decode ( ) ) return True else : return False
Displays kb, kallisto and bustools version + citation information, along
with a brief description and examples.
Displays kb kallisto and bustools version + citation information along with a brief description and examples .
"""Displays kb, kallisto and bustools version + citation information, along
    with a brief description and examples.
    
    Keyword Argument:
    mainlogger - Logger of main function (type: logging.Logger)
    """ #     if ut_log.log_command( #         logger, #         info_command, #         stdout=subprocess.PIPE, #         stderr=subprocess.STDOUT, #         shell=True, #     ): #         logger.info("Failed to view kb_python package details") #     sys.exit(1)
logger