frag_pele/Growing/add_fragment_from_pdbs.py
def from_pdb_to_bioatomlist(list_of_pdb_names):
    """
    Given a pdb name string (without the extension ".pdb") the function reads it as a Bio.PDB structure and extract the
    atoms found as a list of Bio.PDB.Atom objects.
    :param list_of_pdb_names: list of strings with pdb names.
    :return: list of lists with the Bio.PDB.Atom objects found in each pdb file.
    """
    list_of_lists = []
    for pdb in list_of_pdb_names:
        # Now, read the PDBs as BioPython object
        bio_structure = pdb_joiner.get_ligand_from_PDB("{}.pdb".format(pdb))
        # Get a list of atoms (BioPython Atoms) for each structure
        bioatomlist = pdb_joiner.get_atoms_from_structure(bio_structure)
        list_of_lists.append(bioatomlist)
    return list_of_lists

    Given a pdb name string (without the extension ".pdb") the function reads it as a Bio.PDB structure and extract the
    atoms found as a list of Bio.PDB.Atom objects.
    :param list_of_pdb_names: list of strings with pdb names.
    :return: list of lists with the Bio.PDB.Atom objects found in each pdb file.
    
Given a pdb name string (without the extension ".pdb") the function reads it as a Bio.PDB structure and extract the
atoms found as a list of Bio.PDB.Atom objects.
Given a pdb name string ( without the extension " . pdb " ) the function reads it as a Bio . PDB structure and extract the atoms found as a list of Bio . PDB . Atom objects .
def from_pdb_to_bioatomlist(list_of_pdb_names):
    list_of_lists = []
    for pdb in list_of_pdb_names:
        bio_structure = pdb_joiner.get_ligand_from_PDB("{}.pdb".format(pdb))
        bioatomlist = pdb_joiner.get_atoms_from_structure(bio_structure)
        list_of_lists.append(bioatomlist)
    return list_of_lists
def from_pdb_to_bioatomlist ( list_of_pdb_names ) : list_of_lists = [ ] for pdb in list_of_pdb_names : bio_structure = pdb_joiner . get_ligand_from_PDB ( "{}.pdb" . format ( pdb ) ) bioatomlist = pdb_joiner . get_atoms_from_structure ( bio_structure ) list_of_lists . append ( bioatomlist ) return list_of_lists
Given a pdb name string (without the extension ".pdb") the function reads it as a Bio.PDB structure and extract the
atoms found as a list of Bio.PDB.Atom objects.
Given a pdb name string ( without the extension " . pdb " ) the function reads it as a Bio . PDB structure and extract the atoms found as a list of Bio . PDB . Atom objects .
"""
    Given a pdb name string (without the extension ".pdb") the function reads it as a Bio.PDB structure and extract the
    atoms found as a list of Bio.PDB.Atom objects.
    :param list_of_pdb_names: list of strings with pdb names.
    :return: list of lists with the Bio.PDB.Atom objects found in each pdb file.
    """ # Now, read the PDBs as BioPython object # Get a list of atoms (BioPython Atoms) for each structure
list of lists with the Bio.PDB.Atom objects found in each pdb file.
list of lists with the Bio . PDB . Atom objects found in each pdb file .
list_of_pdb_names
list of strings with pdb names.
list of strings with pdb names .