Пример #1
0
__license__ = "GPLv3"
__version__ = 1.0
__description__ = "{} is a program developed and maintained by {}. " \
                  "This program is licensed under the {} license and is " \
                  "provided 'as-is' without any warranty or indemnification " \
                  "of any kind.".format(__program__,
                                        __author__,
                                        __license__)
if __name__ == '__main__':
    # Get the command line arguments.
    CLA = CommandLineArguments(program=__program__,
                               version=__version__,
                               description=__description__)
    INPUT_DIR_PATH = CLA.get_argument("input_dir_path")
    INPUT_SUFFIX = CLA.get_argument("input_suffix")
    CELL_COUNTS_PATH = CLA.get_argument("cell_counts_path")
    REFERENCE_PROFILE = CLA.get_argument("reference_profile_path")
    GENE_INFO_PATH = CLA.get_argument("gene_info_path")
    COMBINE = CLA.get_argument("combine")
    N_SAMPLES = CLA.get_argument("n_samples")

    # Start the program.
    PROGRAM = Main(input_path=INPUT_DIR_PATH,
                   input_suffix=INPUT_SUFFIX,
                   cell_counts_path=CELL_COUNTS_PATH,
                   ref_profile_path=REFERENCE_PROFILE,
                   gene_info_path=GENE_INFO_PATH,
                   combine=COMBINE,
                   n_samples=N_SAMPLES)
    PROGRAM.start()