frag_pele/Covalent/pdb_corrector.py
def _correct_ligand_to_be_residue(self):
        """
        It corrects the ligand lines to transform it in to residue lines
        """
        new_ligand_lines = []
        for lig_line in self._ligand_lines:
            lig_line = list(lig_line)
            lig_line[0:6] = "ATOM  "  # Atom section
            lig_line[17:20] = self.residue_type  # Residue name
            lig_line[21:22] = self._residue_chain  # Chain
            lig_line[22:26] = "{:>4}".format(self._residue_number)  # Residue number, must be right-aligned
            new_ligand_lines.append(''.join(lig_line))
        self._ligand = ''.join(new_ligand_lines)
        self._ligand_lines = new_ligand_lines
        if self._verbose:
            print('New ligand lines:\n' + self._ligand)

        It corrects the ligand lines to transform it in to residue lines
        
It corrects the ligand lines to transform it in to residue lines
It corrects the ligand lines to transform it in to residue lines
def _correct_ligand_to_be_residue(self):
        new_ligand_lines = []
        for lig_line in self._ligand_lines:
            lig_line = list(lig_line)
            lig_line[0:6] = "ATOM  "  
            lig_line[17:20] = self.residue_type  
            lig_line[21:22] = self._residue_chain  
            lig_line[22:26] = "{:>4}".format(self._residue_number)  
            new_ligand_lines.append(''.join(lig_line))
        self._ligand = ''.join(new_ligand_lines)
        self._ligand_lines = new_ligand_lines
        if self._verbose:
            print('New ligand lines:\n' + self._ligand)
def _correct_ligand_to_be_residue ( self ) : new_ligand_lines = [ ] for lig_line in self . _ligand_lines : lig_line = list ( lig_line ) lig_line [ 0 : 6 ] = "ATOM  " lig_line [ 17 : 20 ] = self . residue_type lig_line [ 21 : 22 ] = self . _residue_chain lig_line [ 22 : 26 ] = "{:>4}" . format ( self . _residue_number ) new_ligand_lines . append ( '' . join ( lig_line ) ) self . _ligand = '' . join ( new_ligand_lines ) self . _ligand_lines = new_ligand_lines if self . _verbose : print ( 'New ligand lines:\n' + self . _ligand )
It corrects the ligand lines to transform it in to residue lines
It corrects the ligand lines to transform it in to residue lines
"""
        It corrects the ligand lines to transform it in to residue lines
        """ # Atom section # Residue name # Chain # Residue number, must be right-aligned
self