use of de.bioforscher.jstructure.model.structure.Protein in project jstructure by JonStargaryen.
the class ProteinParserTest method shouldParseAlternativePositions.
@Test
public void shouldParseAlternativePositions() {
Protein protein = ProteinParser.source("4bpm").parse();
protein.select().pdbSerial(61).asAtom();
}
use of de.bioforscher.jstructure.model.structure.Protein in project jstructure by JonStargaryen.
the class ProteinParserTest method shouldHandleProteinWithOligopeptide.
@Test
public void shouldHandleProteinWithOligopeptide() {
Protein protein = ProteinParser.source("1lyb").parse();
// contains peptide-like groups - ought to be an AminoAcid
AminoAcid statine = (AminoAcid) protein.select().groupName("STA").asGroup();
Assert.assertTrue(statine.getPolymerType() == GroupPrototype.PolymerType.PEPTIDE_LIKE);
Assert.assertTrue(statine.isAminoAcid());
Assert.assertFalse(statine.isLigand());
Assert.assertTrue(protein.aminoAcids().collect(Collectors.toList()).contains(statine));
}
use of de.bioforscher.jstructure.model.structure.Protein in project jstructure by JonStargaryen.
the class UniProtAnnotatorTest method shouldAnnotate4lgd.
@Test
public void shouldAnnotate4lgd() {
Protein protein = ProteinParser.source("4lgd").parse();
uniProtAnnotator.process(protein);
protein.select().chainName("A", "B", "C", "D").asFilteredChains().forEach(chain -> {
UniProtAnnotationContainer container = chain.getFeatureContainer().getFeature(UniProtAnnotationContainer.class);
});
}
use of de.bioforscher.jstructure.model.structure.Protein in project jstructure by JonStargaryen.
the class SiftsMappingAnnotatorTest method shouldDetermineUniProtNumbering.
@Test
public void shouldDetermineUniProtNumbering() {
Protein protein = ProteinParser.source("1acj").parse();
annotator.process(protein);
ChainMapping chainSiftsMapping = protein.getChains().get(0).getFeatureContainer().getFeature(ChainMapping.class);
Assert.assertEquals("P04058", chainSiftsMapping.getUniProtId());
Assert.assertEquals("3.1.1.7", chainSiftsMapping.getEcNumber());
Assert.assertEquals("PF00135", chainSiftsMapping.getPfamId());
protein.aminoAcids().forEach(group -> Assert.assertTrue(group.getFeatureContainer().getFeatureOptional(ResidueMapping.class).isPresent()));
}
use of de.bioforscher.jstructure.model.structure.Protein in project jstructure by JonStargaryen.
the class PLIPAnnotatorTest method shouldAnnotateProteinWithHalogenBond.
@Test
public void shouldAnnotateProteinWithHalogenBond() {
Protein protein = ProteinParser.source("4BPM").parse();
plipAnnotator.process(protein);
}
Aggregations