frag_pele/Growing/add_fragment_from_pdbs.py
def extract_protein_from_complex(pdb_file):
    """
    Given a pdb file containing a complex (ligand + protein) it returns only the protein.
    :param pdb_file: pdb file with a complex. string.
    :return: ProDy molecule with only the protein.
    """
    complex = prody.parsePDB(pdb_file)
    protein = complex.select("protein")
    return protein

    Given a pdb file containing a complex (ligand + protein) it returns only the protein.
    :param pdb_file: pdb file with a complex. string.
    :return: ProDy molecule with only the protein.
    
Given a pdb file containing a complex (ligand + protein) it returns only the protein.
Given a pdb file containing a complex ( ligand + protein ) it returns only the protein .
def extract_protein_from_complex(pdb_file):
    complex = prody.parsePDB(pdb_file)
    protein = complex.select("protein")
    return protein
def extract_protein_from_complex ( pdb_file ) : complex = prody . parsePDB ( pdb_file ) protein = complex . select ( "protein" ) return protein
Given a pdb file containing a complex (ligand + protein) it returns only the protein.
Given a pdb file containing a complex ( ligand + protein ) it returns only the protein .
"""
    Given a pdb file containing a complex (ligand + protein) it returns only the protein.
    :param pdb_file: pdb file with a complex. string.
    :return: ProDy molecule with only the protein.
    """
ProDy molecule with only the protein.
ProDy molecule with only the protein .
pdb_file
pdb file with a complex. string.
pdb file with a complex . string .