All Downloads are FREE. Search and download functionalities are using the official Maven repository.

uk.ac.liv.pgb.analytica.lib.RTaskWithoutManifest Maven / Gradle / Ivy

Go to download

Library allowing generation of plots and data from proteomics and metabolomics mass spectrometry data through the use of R and java methods.

The newest version!
package uk.ac.liv.pgb.analytica.lib;

import java.io.File;

/**
 * Wraps a piece of R code that does not have a manifest describing what to do with it.
 * @author sperkins
 */
public final class RTaskWithoutManifest implements Task {

    /**
     * Gets the name of associated with this task.
     * @return The task name.
     */
    @Override
    public String getName() {
        return "heatmap";
    }

    /**
     * Checks whether the given file is compatible with this task.
     * @param file Input file.
     * @return True if the given file is compatible with this task.
     */
    @Override
    public boolean compatibleWith(final File file) {
        return file.getName().toUpperCase().endsWith("MZQUANTML") || file.getName().toUpperCase().endsWith("MZQ");
    }

    /**
     * Executes this R task with the given file and graphics policy.
     * @param file The input file.
     * @param policy The graphics policy.
     * @return The execution result describing the output of the task.
     */
    @Override
    public TaskExecutionResult execute(final File file, final GraphicsPolicy policy) {
        throw new UnsupportedOperationException("Not supported yet."); //To change body of generated methods, choose Tools | Templates.
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy