def deconstruct_regulon(regulon):
    """Returns a pandas DataFrame for likelihood and mode of regulation inferred by compile_total_regulon
    Args:
        regulon (pandas DataFrame): Aracne-AP Regulon file in four column format i.e. Regulator,Target,MoA,likelihood

    Returns:
        lh, mor (pandas DataFrame): sparse DataFrame indicating likelihood and mode or
            regulation for transcription factors
    """

    lh = regulon.pivot(index = 'Regulator', columns = 'Target', values = 'likelihood').fillna(0.0)
    mor = regulon.pivot(index = 'Regulator', columns = 'Target', values = 'MoA').fillna(0.0)

    return lh, mor