def get_analysis_info(gse_gsm_info):
    """
    Extract required information for analysis
    Args:
        gse_gsm_info: the GSE and GSM info tuple

    Returns:
        the extracted information tuple
    """
    gse_id, gsm_info = gse_gsm_info
    ctrl_gsm_ids = gsm_info[0].split("|")
    direction = gsm_info[1]
    grouping, organism, pert_agent, pert_gsm_ids = gsm_info[4:]
    pert_gsm_ids = pert_gsm_ids.split("|")

    return gse_id, (organism, direction, pert_agent, ctrl_gsm_ids, pert_gsm_ids, grouping)