All Downloads are FREE. Search and download functionalities are using the official Maven repository.

pl.poznan.put.protein.Histidine Maven / Gradle / Ivy

package pl.poznan.put.protein;

import org.immutables.value.Value;
import pl.poznan.put.atom.AtomName;
import pl.poznan.put.pdb.analysis.ResidueComponent;
import pl.poznan.put.torsion.TorsionAngleType;

import java.util.List;
import java.util.Set;
import java.util.stream.Collectors;
import java.util.stream.Stream;

@Value.Immutable(singleton = true)
abstract class Histidine implements Sidechain {
  @Override
  public final List moleculeComponents() {
    return Stream.of(ImmutableBackbone.of(), ImmutableHistidine.of())
        .collect(Collectors.toList());
  }

  @Override
  public final char oneLetterName() {
    return 'H';
  }

  @Override
  public final List aliases() {
    return Stream.of("HIS", "HSD", "HSE", "HSP").collect(Collectors.toList());
  }

  @Override
  public final List torsionAngleTypes() {
    return Stream.of(
            AminoAcidTorsionAngle.PHI.angleTypes().get(0),
            AminoAcidTorsionAngle.PSI.angleTypes().get(0),
            AminoAcidTorsionAngle.OMEGA.angleTypes().get(0),
            AminoAcidTorsionAngle.CALPHA.angleTypes().get(0),
            Chi1.getInstance(Chi1.HISTIDINE_ATOMS),
            Chi2.getInstance(Chi2.HISTIDINE_ATOMS))
        .collect(Collectors.toList());
  }

  @Override
  public final Set requiredAtoms() {
    return Stream.of(
            AtomName.CB,
            AtomName.HB1,
            AtomName.HB2,
            AtomName.ND1,
            AtomName.HD1,
            AtomName.CG,
            AtomName.CE1,
            AtomName.HE1,
            AtomName.NE2,
            AtomName.HE2,
            AtomName.CD2,
            AtomName.HD2)
        .collect(Collectors.toSet());
  }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy