pl.poznan.put.protein.Arginine 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.Collections;
import java.util.List;
import java.util.Set;
import java.util.stream.Collectors;
import java.util.stream.Stream;
@Value.Immutable(singleton = true)
abstract class Arginine implements Sidechain {
@Override
public final List moleculeComponents() {
return Stream.of(ImmutableBackbone.of(), ImmutableArginine.of())
.collect(Collectors.toList());
}
@Override
public final char oneLetterName() {
return 'R';
}
@Override
public final List aliases() {
return Collections.singletonList("ARG");
}
@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.ARGININE_ATOMS),
Chi2.getInstance(Chi2.ARGININE_ATOMS),
Chi3.getInstance(Chi3.ARGININE_ATOMS),
Chi4.getInstance(Chi4.ARGININE_ATOMS),
Chi5.getInstance(Chi5.ARGININE_ATOMS))
.collect(Collectors.toList());
}
@Override
public final Set requiredAtoms() {
return Stream.of(
AtomName.CB,
AtomName.HB1,
AtomName.HB2,
AtomName.CG,
AtomName.HG1,
AtomName.HG2,
AtomName.CD,
AtomName.HD1,
AtomName.HD2,
AtomName.NE,
AtomName.HE,
AtomName.CZ,
AtomName.NH1,
AtomName.HH11,
AtomName.HH12,
AtomName.NH2,
AtomName.HH21,
AtomName.HH22)
.collect(Collectors.toSet());
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy