use of org.nextprot.api.core.domain.IsoformPEFFHeader in project nextprot-api by calipho-sib.
the class IsoformPEFFHeaderBuilderTest method testProcessedInsulinMoleculeFormat.
@Test
public void testProcessedInsulinMoleculeFormat() throws Exception {
IsoformPEFFHeader peff = newIsoformPEFFHeaderBuilder("NX_P01308-1").withProcessedMoleculeFormat().build();
Assert.assertEquals("\\Processed=(1|24|signal peptide)(25|54|mature protein)(57|87|maturation peptide)(90|110|mature protein)", peff.getProcessedMoleculeFormat());
}
use of org.nextprot.api.core.domain.IsoformPEFFHeader in project nextprot-api by calipho-sib.
the class IsoformPEFFHeaderBuilderTest method testSequenceLengthFormat.
@Test
public void testSequenceLengthFormat() throws Exception {
IsoformPEFFHeader peff = newIsoformPEFFHeaderBuilder("NX_P52701-1").withSequenceLengthFormat().build();
Assert.assertEquals("\\Length=1360", peff.getSequenceLengthFormat());
}
use of org.nextprot.api.core.domain.IsoformPEFFHeader in project nextprot-api by calipho-sib.
the class IsoformPEFFHeaderBuilderTest method testUndefinedPsiPTM2.
@Test
public void testUndefinedPsiPTM2() throws Exception {
IsoformPEFFHeader peff = newIsoformPEFFHeaderBuilder("NX_Q96B02-1").withModResFormats().build();
String modResPSI = peff.getModResPsiFormat();
Assert.assertTrue(!modResPSI.contains("(1|"));
String modRes = peff.getModResFormat();
Assert.assertEquals("\\ModRes=(1||Peptide (Met-Gly) (interchain with G-...))", modRes);
}
use of org.nextprot.api.core.domain.IsoformPEFFHeader in project nextprot-api by calipho-sib.
the class IsoformPEFFHeaderBuilderTest method testTaxonomyNameFormat.
@Test
public void testTaxonomyNameFormat() throws Exception {
IsoformPEFFHeader peff = newIsoformPEFFHeaderBuilder("NX_P52701-1").withTaxonomyNameFormat().build();
Assert.assertEquals("\\TaxName=Homo Sapiens", peff.getTaxonomyNameFormat());
}
use of org.nextprot.api.core.domain.IsoformPEFFHeader in project nextprot-api by calipho-sib.
the class IsoformPEFFHeaderBuilderTest method testDisulfidePosIsNotNull.
@Test
public void testDisulfidePosIsNotNull() throws Exception {
IsoformPEFFHeader peff = newIsoformPEFFHeaderBuilder("NX_A2VEC9-1").withModResFormats().build();
Assert.assertTrue(!peff.getModResFormat().contains("null"));
peff = newIsoformPEFFHeaderBuilder("NX_O43240-1").withModResFormats().build();
Assert.assertTrue(!peff.getModResFormat().contains("null"));
peff = newIsoformPEFFHeaderBuilder("NX_P04275-1").withModResFormats().build();
Assert.assertTrue(!peff.getModResFormat().contains("null"));
}
Aggregations