use of de.bioforscher.jstructure.model.structure.Chain in project jstructure by JonStargaryen.
the class SelectionTest method shouldSelectChains.
@Test
public void shouldSelectChains() {
System.out.println("Chain 'A':");
Chain chainA = protein.select().asChain();
System.out.println(chainA);
System.out.println("Chain 'B':");
Chain chainB = protein.select().chainName("B").asChain();
System.out.println(chainB);
System.out.println("Chains 'B', 'C':");
List<Chain> chains = protein.select().chainName("B", "C").asFilteredChains().collect(Collectors.toList());
Assert.assertEquals("chains do not match, expected 'B' and 'C' - found: " + chains, 2, chains.size());
chains.forEach(System.out::println);
}
Aggregations