from pathlib import Path


def development_parse_input(
        path_project, name_method,
        path_database_literatur, path_database_inorganics, path_database_predictions,
        path_database_metabolites, path_database_pathways, 
        organisms, pathways, drop_sumpeaks, drop_sumpeaks_no
        ):
    """
    Parse input.

    Parse user input and generate dictionary for easy access.

    Parameters
    ----------
    path_project : str
        Raw string to results folder.
    path_database_literatur : str
        Raw string to literature data.
    path_database_inorganics : str
        Raw string to inorganics data.
    path_database_predictions : str
        Raw string to predictions folder.
    path_database_metabolites : str
        Raw string to metabolite information file.
    path_database_pathways : str
        Raw string to pathway folder.
    organisms : list
        List of KEGG organism identifier.
    drop_sumpeaks : bool, default False
        Drop convoluted metabolite mass transitions.
    drop_sumpeaks_no : int, default 3
        If drop_sumpeaks == True, drop convoluted mass transitions greater equal than int

    Returns
    -------
    inp : dict
        Dictionary with user input.
    """
    inp = {}
    # Set paths
    inp['path_project'] = Path(path_project)
    inp['name_method'] = name_method
    inp['path_literature'] = Path(path_database_literatur)
    inp['path_inorganics'] = Path(path_database_inorganics)
    inp['path_predictions'] = Path(path_database_predictions)
    inp['path_metabolites'] = Path(path_database_metabolites)
    inp['path_pathways'] = Path(path_database_pathways)
    # Set parameter
    inp['organisms'] = organisms
    inp['pathways'] = pathways
    inp['drop_sumpeaks'] = drop_sumpeaks
    inp['drop_sumpeaks_no'] = drop_sumpeaks_no
    # Set plotting parameter
    inp['figsize'] = (6,5)
    inp['labelsize'] = 14
    return inp