neurosnap.structure.filters module#
Convenience structure-filtering functions.
- neurosnap.structure.filters.fix_nucleic_termini(structure, strip_3prime=False, chain=None)[source]#
Normalize nucleotide phosphate names and strip terminal phosphate atoms.
- neurosnap.structure.filters.remove_atoms(structure, predicate, chain=None)[source]#
Remove atoms from a structure in-place when they match a predicate.
- neurosnap.structure.filters.remove_chains(structure, predicate)[source]#
Remove chains from a structure in-place when they match a predicate.
- neurosnap.structure.filters.remove_non_biopolymers(structure, chain=None)[source]#
Remove non-protein and non-nucleotide residues from a structure in-place.
- Parameters:
- Returns:
None. The input structure is modified in-place.
Notes
Hetero residues are always removed by this filter, even if their residue names overlap with amino-acid or nucleotide dictionaries such as
UNK.
- neurosnap.structure.filters.remove_nucleotides(structure, chain=None)[source]#
Remove DNA and RNA residues from a structure in-place.
- neurosnap.structure.filters.remove_residues(structure, predicate, chain)[source]#
Remove residues from a structure in-place when they match a predicate.