Raise NotImplementedError from unused functions
This commit is contained in:
@@ -8,6 +8,7 @@ The :class:`Atom` class contains all atom information found in the PDB file.
|
|||||||
|
|
||||||
import string
|
import string
|
||||||
from typing import cast, List, NoReturn, Optional, TYPE_CHECKING
|
from typing import cast, List, NoReturn, Optional, TYPE_CHECKING
|
||||||
|
import warnings
|
||||||
|
|
||||||
from propka.lib import make_tidy_atom_label
|
from propka.lib import make_tidy_atom_label
|
||||||
from . import hybrid36
|
from . import hybrid36
|
||||||
@@ -303,6 +304,7 @@ class Atom:
|
|||||||
Returns:
|
Returns:
|
||||||
String with PDB line.
|
String with PDB line.
|
||||||
"""
|
"""
|
||||||
|
warnings.warn("only used by unused function")
|
||||||
if numb is None:
|
if numb is None:
|
||||||
numb = self.numb
|
numb = self.numb
|
||||||
if name is None:
|
if name is None:
|
||||||
@@ -349,5 +351,6 @@ class Atom:
|
|||||||
Args:
|
Args:
|
||||||
residue: the parent residue
|
residue: the parent residue
|
||||||
"""
|
"""
|
||||||
|
raise NotImplementedError("unused")
|
||||||
if self.residue is None:
|
if self.residue is None:
|
||||||
self.residue = residue
|
self.residue = residue
|
||||||
|
|||||||
@@ -93,6 +93,7 @@ class BondMaker:
|
|||||||
Args:
|
Args:
|
||||||
protein: the protein to search for bonds
|
protein: the protein to search for bonds
|
||||||
"""
|
"""
|
||||||
|
raise NotImplementedError("unused")
|
||||||
_LOGGER.info('++++ Side chains ++++')
|
_LOGGER.info('++++ Side chains ++++')
|
||||||
# side chains
|
# side chains
|
||||||
for chain in protein.chains:
|
for chain in protein.chains:
|
||||||
@@ -132,6 +133,7 @@ class BondMaker:
|
|||||||
cys1: one of the cysteines to check
|
cys1: one of the cysteines to check
|
||||||
cys1: one of the cysteines to check
|
cys1: one of the cysteines to check
|
||||||
"""
|
"""
|
||||||
|
raise NotImplementedError("unused")
|
||||||
for atom1 in cys1.atoms:
|
for atom1 in cys1.atoms:
|
||||||
if atom1.name == 'SG':
|
if atom1.name == 'SG':
|
||||||
for atom2 in cys2.atoms:
|
for atom2 in cys2.atoms:
|
||||||
|
|||||||
@@ -167,6 +167,7 @@ class Group:
|
|||||||
Args:
|
Args:
|
||||||
others: list of other groups
|
others: list of other groups
|
||||||
"""
|
"""
|
||||||
|
raise NotImplementedError("unused")
|
||||||
# for each determinant type
|
# for each determinant type
|
||||||
for other in others:
|
for other in others:
|
||||||
if other == self:
|
if other == self:
|
||||||
@@ -1400,6 +1401,7 @@ def is_ligand_group_by_marvin_pkas(parameters, atom: Atom) -> Optional[Group]:
|
|||||||
if not o == atom][0]
|
if not o == atom][0]
|
||||||
atom.marvin_pka = other_oxygen.marvin_pka
|
atom.marvin_pka = other_oxygen.marvin_pka
|
||||||
return TitratableLigandGroup(atom)
|
return TitratableLigandGroup(atom)
|
||||||
|
raise NotImplementedError("hydrogen_bonds")
|
||||||
if atom.element in parameters.hydrogen_bonds.elements:
|
if atom.element in parameters.hydrogen_bonds.elements:
|
||||||
return NonTitratableLigandGroup(atom)
|
return NonTitratableLigandGroup(atom)
|
||||||
return None
|
return None
|
||||||
|
|||||||
@@ -13,6 +13,7 @@ import logging
|
|||||||
import os
|
import os
|
||||||
import subprocess
|
import subprocess
|
||||||
import sys
|
import sys
|
||||||
|
import warnings
|
||||||
from propka.output import write_mol2_for_atoms
|
from propka.output import write_mol2_for_atoms
|
||||||
from propka.lib import split_atoms_into_molecules
|
from propka.lib import split_atoms_into_molecules
|
||||||
|
|
||||||
@@ -69,6 +70,7 @@ class LigandPkaValues:
|
|||||||
min_ph: minimum pH value
|
min_ph: minimum pH value
|
||||||
max_ph: maximum pH value
|
max_ph: maximum pH value
|
||||||
"""
|
"""
|
||||||
|
warnings.warn("unused and untested by propka")
|
||||||
self.get_marvin_pkas_for_molecular_container(
|
self.get_marvin_pkas_for_molecular_container(
|
||||||
molecule, num_pkas=num_pkas, min_ph=min_ph, max_ph=max_ph)
|
molecule, num_pkas=num_pkas, min_ph=min_ph, max_ph=max_ph)
|
||||||
|
|
||||||
|
|||||||
@@ -72,6 +72,7 @@ def write_pdb_for_protein(
|
|||||||
include_hydrogens: Boolean indicating whether to include hydrogens
|
include_hydrogens: Boolean indicating whether to include hydrogens
|
||||||
options: options object
|
options: options object
|
||||||
"""
|
"""
|
||||||
|
raise NotImplementedError("unused")
|
||||||
if pdbfile is None:
|
if pdbfile is None:
|
||||||
# opening file if not given
|
# opening file if not given
|
||||||
if filename is None:
|
if filename is None:
|
||||||
@@ -169,6 +170,7 @@ def print_tm_profile(protein, reference="neutral", window=[0., 14., 1.],
|
|||||||
_: Boolean for verbosity
|
_: Boolean for verbosity
|
||||||
options: options object
|
options: options object
|
||||||
"""
|
"""
|
||||||
|
raise NotImplementedError("unused")
|
||||||
profile = protein.getTmProfile(
|
profile = protein.getTmProfile(
|
||||||
reference=reference, grid=[0., 14., 0.1], tms=tms, ref=ref,
|
reference=reference, grid=[0., 14., 0.1], tms=tms, ref=ref,
|
||||||
options=options)
|
options=options)
|
||||||
@@ -358,6 +360,7 @@ def write_jackal_scap_file(mutation_data=None, filename="1xxx_scap.list",
|
|||||||
|
|
||||||
TODO - figure out what this is
|
TODO - figure out what this is
|
||||||
"""
|
"""
|
||||||
|
raise NotImplementedError("unused")
|
||||||
with open(filename, 'w') as file_:
|
with open(filename, 'w') as file_:
|
||||||
for chain_id, _, res_num, code2 in mutation_data:
|
for chain_id, _, res_num, code2 in mutation_data:
|
||||||
str_ = "{chain:s}, {num:d}, {code:s}\n".format(
|
str_ = "{chain:s}, {num:d}, {code:s}\n".format(
|
||||||
|
|||||||
Reference in New Issue
Block a user