use of org.nextprot.api.isoform.mapper.domain.FeatureQueryException in project nextprot-api by calipho-sib.
the class IsoformMappingServiceImpl method validateFeature.
@Override
public BaseFeatureQueryResult validateFeature(SingleFeatureQuery query) {
try {
SequenceFeature sequenceFeature = SequenceFeatureBase.newFeature(query);
if (Strings.isNullOrEmpty(query.getAccession()))
query.setAccession(findAccessionFromGeneName(query, sequenceFeature.getGeneName()));
Entry entry = entryBuilderService.build(EntryConfig.newConfig(query.getAccession()).withTargetIsoforms().withOverview());
SequenceFeatureValidator validator = new SequenceFeatureValidator(entry, query);
return validator.validate(sequenceFeature);
} catch (FeatureQueryException e) {
return new FeatureQueryFailureImpl(e);
}
}
Aggregations