pl.poznan.put.rna.Uracil Maven / Gradle / Ivy
package pl.poznan.put.rna;
import org.immutables.value.Value;
import pl.poznan.put.atom.AtomName;
import pl.poznan.put.pdb.analysis.ResidueComponent;
import java.util.List;
import java.util.Set;
import java.util.stream.Collectors;
import java.util.stream.Stream;
@Value.Immutable(singleton = true)
abstract class Uracil implements Pyrimidine {
@Override
public final Set requiredAtoms() {
return Stream.of(
AtomName.N1,
AtomName.C6,
AtomName.H6,
AtomName.C2,
AtomName.O2,
AtomName.N3,
AtomName.H3,
AtomName.C4,
AtomName.O4,
AtomName.C5,
AtomName.H5)
.collect(Collectors.toSet());
}
@Override
public final List moleculeComponents() {
return Stream.of(ImmutablePhosphate.of(), ImmutableRibose.of(), ImmutableUracil.of())
.collect(Collectors.toList());
}
@Override
public final char oneLetterName() {
return 'U';
}
@Override
public final List aliases() {
return Stream.of("U", "URA", "URI", "DU").collect(Collectors.toList());
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy