Class ResidueTypeDetector


  • public final class ResidueTypeDetector
    extends Object
    A detector of residue type based on its name and atom content.
    • Method Detail

      • detectResidueType

        public static ResidueInformationProvider detectResidueType​(String residueName,
                                                                   Set<AtomName> atomNames)
        Detects the type of residue by its name or atom content. Works by checking if there is a ribose or protein backbone among the atoms. Then it finds the most similar nucleobase or protein sidechain respectively.
        Parameters:
        residueName - The name of the residue.
        atomNames - The names of atoms in the residue.
        Returns:
        An instance of class with all details about the residue type.