Search in sources :

Example 1 with ABITrace

use of org.jbei.ice.lib.parsers.abi.ABITrace in project ice by JBEI.

the class ABIParser method parse.

public DNASequence parse(byte[] bytes) throws InvalidFormatParserException {
    DNASequence DNASequence = null;
    try {
        ABITrace abiTrace = new ABITrace(bytes);
        SymbolList symbolList = abiTrace.getSequence();
        if (symbolList != null) {
            DNASequence = new DNASequence(symbolList.seqString().toLowerCase());
        }
    } catch (Exception e) {
        throw new InvalidFormatParserException(e);
    }
    return DNASequence;
}
Also used : DNASequence(org.jbei.ice.lib.dto.DNASequence) ABITrace(org.jbei.ice.lib.parsers.abi.ABITrace) SymbolList(org.biojava.bio.symbol.SymbolList)

Aggregations

SymbolList (org.biojava.bio.symbol.SymbolList)1 DNASequence (org.jbei.ice.lib.dto.DNASequence)1 ABITrace (org.jbei.ice.lib.parsers.abi.ABITrace)1