frag_pele/Growing/AddingFragHelpers/complex_to_prody.py
def check_protonation(selection):
    """
    Check if the structure is protonated or not. In case that is not protonated we will rise a critical logger.
    :param selection: prody molecule
    :return: if not hydrogens detected, prints a message.
    """
    try:
        if not selection.select("hydrogen"):
            logger.critical("We have not detected Hydrogens in your ligand. Please, add them before starting.")
    except AttributeError:
        raise AttributeError("Check ligand and core are in the L chain. Otherwise specify their chain using the flags \
-cc chain_core -fc chain_frag. Fragment & Core must always be in the same chain.")

    Check if the structure is protonated or not. In case that is not protonated we will rise a critical logger.
    :param selection: prody molecule
    :return: if not hydrogens detected, prints a message.
    
Check if the structure is protonated or not. In case that is not protonated we will rise a critical logger.
Check if the structure is protonated or not . In case that is not protonated we will rise a critical logger .
def check_protonation(selection):
    try:
        if not selection.select("hydrogen"):
            logger.critical("We have not detected Hydrogens in your ligand. Please, add them before starting.")
    except AttributeError:
        raise AttributeError("Check ligand and core are in the L chain. Otherwise specify their chain using the flags \
-cc chain_core -fc chain_frag. Fragment & Core must always be in the same chain.")
def check_protonation ( selection ) : try : if not selection . select ( "hydrogen" ) : logger . critical ( "We have not detected Hydrogens in your ligand. Please, add them before starting." ) except AttributeError : raise AttributeError ( "Check ligand and core are in the L chain. Otherwise specify their chain using the flags \
-cc chain_core -fc chain_frag. Fragment & Core must always be in the same chain." )
Check if the structure is protonated or not.
Check if the structure is protonated or not .
"""
    Check if the structure is protonated or not. In case that is not protonated we will rise a critical logger.
    :param selection: prody molecule
    :return: if not hydrogens detected, prints a message.
    """
if not hydrogens detected, prints a message.
if not hydrogens detected prints a message .
selection
None