Search in sources :

Example 11 with IsoformPEFFHeader

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());
}
Also used : IsoformPEFFHeader(org.nextprot.api.core.domain.IsoformPEFFHeader) CoreUnitBaseTest(org.nextprot.api.core.test.base.CoreUnitBaseTest) Test(org.junit.Test)

Example 12 with IsoformPEFFHeader

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());
}
Also used : IsoformPEFFHeader(org.nextprot.api.core.domain.IsoformPEFFHeader) CoreUnitBaseTest(org.nextprot.api.core.test.base.CoreUnitBaseTest) Test(org.junit.Test)

Example 13 with IsoformPEFFHeader

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);
}
Also used : IsoformPEFFHeader(org.nextprot.api.core.domain.IsoformPEFFHeader) CoreUnitBaseTest(org.nextprot.api.core.test.base.CoreUnitBaseTest) Test(org.junit.Test)

Example 14 with IsoformPEFFHeader

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());
}
Also used : IsoformPEFFHeader(org.nextprot.api.core.domain.IsoformPEFFHeader) CoreUnitBaseTest(org.nextprot.api.core.test.base.CoreUnitBaseTest) Test(org.junit.Test)

Example 15 with IsoformPEFFHeader

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"));
}
Also used : IsoformPEFFHeader(org.nextprot.api.core.domain.IsoformPEFFHeader) CoreUnitBaseTest(org.nextprot.api.core.test.base.CoreUnitBaseTest) Test(org.junit.Test)

Aggregations

Test (org.junit.Test)18 IsoformPEFFHeader (org.nextprot.api.core.domain.IsoformPEFFHeader)18 CoreUnitBaseTest (org.nextprot.api.core.test.base.CoreUnitBaseTest)18