Exemple #1
0
def main():

    args = parser.parse_args()

    # Parsing arguments
    mode = "logging." + args.mode

    # Setting logging preferences
    logger = logging.getLogger(__name__)
    logger.setLevel(eval(mode))

    # Setting the level of the loggers in lib
    # setToolsLoggerLevel(mode)

    # Check if path is absolute, if not the program use the current working path
    cond_files = create_path(args.conds)
    expr_files = create_path(args.tpms)
    ioe_fl = create_path(args.iox)

    # Check extension of input file
    id_type = ioe_fl[0].split(".")[-1].strip("\n")
    if id_type != "ioe" and id_type != "ioi":
        logger.info(
            "Invalid input file. Input file has to be either IOE or IOI format "
            "it must present the appropriate suffix.")
        exit(1)

    #multiple_conditions_analysis(args.method, cond_files, expr_files, ioe_fl[0], args.area[0], args.lower_bound[0],
    #                            args.paired, args.gene_cor, args.alpha[0], args.output)

    multiple_conditions_analysis(args.method, cond_files, expr_files,
                                 ioe_fl[0], args.area[0], args.lower_bound[0],
                                 args.paired, args.gene_cor, args.alpha[0],
                                 args.save_tpm_events, args.seq, args.median,
                                 args.tpm_th[0], args.nan_th[0], args.output)
def main():

    args = parser.parse_args()

    # Check if path is absolute, if not the program use the current working path
    cond_files = create_path(args.conds)
    expr_files = create_path(args.tpms)
    ioe_fl = create_path(args.ioe)

    multiple_conditions_analysis(args.method, cond_files, expr_files,
                                 ioe_fl[0], args.area[0], args.lower_bound[0],
                                 args.paired, args.gene_cor, args.alpha[0],
                                 args.save_tpm_events, args.output)