Package pl.poznan.put.pdb.analysis
Class ResidueTypeDetector
- java.lang.Object
-
- pl.poznan.put.pdb.analysis.ResidueTypeDetector
-
public final class ResidueTypeDetector extends Object
A detector of residue type based on its name and atom content.
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static ResidueInformationProviderdetectResidueType(String residueName, Set<AtomName> atomNames)Detects the type of residue by its name or 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.
-
-