Package no.uib.jsparklines.data

Examples of no.uib.jsparklines.data.Chromosome


        int possibleCpt = 0, retainedCpt = 0;

        for (String protein : possibleProteins) {

            String description, geneName, proteinEvidenceLevel;
            Chromosome chromosome;

            try {
                description = sequenceFactory.getHeader(protein).getSimpleProteinDescription();

                // if description is not set, return the accession instead - fix for home made fasta headers
                if (description == null || description.trim().isEmpty()) {
                    description = protein;
                }

                geneName = sequenceFactory.getHeader(protein).getGeneName();
                proteinEvidenceLevel = sequenceFactory.getHeader(protein).getProteinEvidence();

                if (proteinEvidenceLevel != null) {
                    try {
                        Integer level = new Integer(proteinEvidenceLevel);
                        proteinEvidenceLevel = GenePreferences.getProteinEvidencAsString(level);
                    } catch (NumberFormatException e) {
                        // ignore
                    }
                }

                String chromosomeNumber = geneFactory.getChromosomeForGeneName(geneName);
                chromosome = new Chromosome(chromosomeNumber);

            } catch (Exception e) {
                peptideShakerGUI.catchException(e);
                description = "Error";
                geneName = "Error";
View Full Code Here


                    }
                case 5:
                    try {
                        String geneName = sequenceFactory.getHeader(accessions.get(row)).getGeneName();
                        String chromosomeNumber = geneFactory.getChromosomeForGeneName(geneName);
                        return new Chromosome(chromosomeNumber);
                    } catch (Exception e) {
                        peptideShakerGUI.catchException(e);
                        return "Database Error";
                    }
                case 6:
View Full Code Here

                                return DisplayPreferences.LOADING_MESSAGE;
                            }
                        }
                        String geneName = sequenceFactory.getHeader(proteinMatch.getMainMatch()).getGeneName();
                        String chromosomeNumber = geneFactory.getChromosomeForGeneName(geneName);
                        return new Chromosome(chromosomeNumber);
                    case 6:
                        if (isScrolling) {
                            return null;
                        }
                        proteinMatch = identification.getProteinMatch(proteinKey, useDB);
View Full Code Here

TOP

Related Classes of no.uib.jsparklines.data.Chromosome

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.