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

pl.poznan.put.protein.Backbone 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 java.util.Set;
import java.util.stream.Collectors;
import java.util.stream.Stream;

/** A backbone in a protein. */
@Value.Immutable(singleton = true)
public interface Backbone extends ResidueComponent {
  @Override
  default Set requiredAtoms() {
    return Stream.of(AtomName.N, AtomName.HN, AtomName.CA, AtomName.HA, AtomName.C, AtomName.O)
        .collect(Collectors.toSet());
  }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy