Examples of IdfileReaderFactory


Examples of com.compomics.util.experiment.io.identifications.IdfileReaderFactory

    /**
     * Loads the identification files advocate and version from the id files.
     */
    public void backwardCompatibilityFix() {
        identificationAlgorithms = new HashMap<String, HashMap<String, ArrayList<String>>>();
        IdfileReaderFactory idFileReaderFactory = IdfileReaderFactory.getInstance();
        ArrayList<File> idFiles = identificationFiles;
        for (File idFile : idFiles) {
            String idFileName = Util.getFileName(idFile);
            try {
                IdfileReader idFileReader = idFileReaderFactory.getFileReader(idFile);
                identificationAlgorithms.put(idFileName, idFileReader.getSoftwareVersions());
            } catch (Exception e) {
                // File was moved, use the extension to map it manually
                Advocate advocate = Advocate.getAdvocateFromFile(idFileName);
                if (advocate != null) {
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.