use of org.nextprot.api.isoform.mapper.domain.FeatureQueryResult in project nextprot-api by calipho-sib.
the class IsoformMappingServiceTest method shouldNotMapMet1_Arg424Deletion.
@Test
public void shouldNotMapMet1_Arg424Deletion() throws Exception {
SingleFeatureQuery query = new SingleFeatureQuery("BARD1-p.Met1_Arg424del", AnnotationCategory.VARIANT.getApiTypeName(), "");
FeatureQueryResult result = service.propagateFeature(query);
assertIsoformFeatureValid(result, "NX_Q99728-1", 1, 424, true);
assertIsoformFeatureValid(result, "NX_Q99728-2", null, null, false);
assertIsoformFeatureValid(result, "NX_Q99728-3", null, null, false);
assertIsoformFeatureValid(result, "NX_Q99728-4", null, null, false);
}
use of org.nextprot.api.isoform.mapper.domain.FeatureQueryResult in project nextprot-api by calipho-sib.
the class IsoformMappingServiceTest method shouldValidatePtmOnCanonicalIsoform.
@Test
public void shouldValidatePtmOnCanonicalIsoform() throws Exception {
FeatureQueryResult result = service.validateFeature(new SingleFeatureQuery("BRCA1-P-Ser988", AnnotationCategory.GENERIC_PTM.getApiTypeName(), "NX_P38398"));
assertIsoformFeatureValid(result, "NX_P38398-1", 988, 988, true);
}
use of org.nextprot.api.isoform.mapper.domain.FeatureQueryResult in project nextprot-api by calipho-sib.
the class IsoformMappingServiceTest method shouldValidateExtensionVariantOnCanonicalIsoformBadPos.
@Test
public void shouldValidateExtensionVariantOnCanonicalIsoformBadPos() throws Exception {
SingleFeatureQuery query = new SingleFeatureQuery("RAD50-p.Ter1314Tyrext*66", AnnotationCategory.VARIANT.getApiTypeName(), "");
FeatureQueryResult result = service.validateFeature(query);
assertIsoformFeatureNotValid((FeatureQueryFailureImpl) result, new OutOfBoundSequencePositionException(query, 1313));
}
Aggregations