Search in sources :

Example 1 with SequenceVariant

use of org.nextprot.api.isoform.mapper.domain.impl.SequenceVariant in project nextprot-api by calipho-sib.

the class StatementTranformerServiceImpl method getIsoAccession.

private String getIsoAccession(String featureName, String entryAccession) {
    SequenceVariant sv;
    try {
        sv = new SequenceVariant(featureName);
    } catch (ParseException e) {
        throw new NextProtException(e);
    }
    List<Isoform> isoforms = isoformService.findIsoformsByEntryName(entryAccession);
    Isoform isoSpecific = IsoformUtils.getIsoformByName(isoforms, sv.getIsoformName());
    return isoSpecific.getIsoformAccession();
}
Also used : SequenceVariant(org.nextprot.api.isoform.mapper.domain.impl.SequenceVariant) NextProtException(org.nextprot.api.commons.exception.NextProtException) Isoform(org.nextprot.api.core.domain.Isoform) ParseException(java.text.ParseException)

Aggregations

ParseException (java.text.ParseException)1 NextProtException (org.nextprot.api.commons.exception.NextProtException)1 Isoform (org.nextprot.api.core.domain.Isoform)1 SequenceVariant (org.nextprot.api.isoform.mapper.domain.impl.SequenceVariant)1