Package au.org.intersect.samifier.parser

Examples of au.org.intersect.samifier.parser.GenomeFileParsingException


            List <GeneSequence> newEntries = new ArrayList<GeneSequence>();
            for (GeneSequence sequence : genInfo.getLocations()) {
                if (sequence.getStart() < start) {
                    String errorMessage = "Gene " + genInfo.getId() + " in chromosome " +  genInfo.getChromosome() + " has overlaping part at position (" + sequence.getStart() + "," + start + "). Can not continue.";
                    LOG.error(errorMessage);
                    throw new GenomeFileParsingException(errorMessage);
                }
                if (sequence.getStart() != start) {
                    LOG.warn("Gene " + genInfo.getId() + " in chromosome " +  genInfo.getChromosome() + " has missing part at position (" + start + "," + (sequence.getStart() - 1) + "). Assuming non coding sequence.");
                    GeneSequence seq = new GeneSequence(sequence.getParentId(), false, start, sequence.getStart() - 1, sequence.getDirection());
                    newEntries.add(seq);
View Full Code Here

TOP

Related Classes of au.org.intersect.samifier.parser.GenomeFileParsingException

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.