def get_sample_analysis(conf):
    """Get the analysis defined in a config file.

    :param conf: bcbb config file

    :returns: list of analyses
    """
    analysis = []
    runinfo = conf.get("details") if conf.get("details", None) else conf
    for i in range(0, len(runinfo)):
        analysis.extend([runinfo[i].get("analysis", None)])
        for j in range(0, len(runinfo[i].get("multiplex"))):
            analysis.extend([runinfo[i]["multiplex"][j].get("analysis", None)])
        analysis.extend([None])
    return list(set(analysis) - set([None]))