public class PeptideShakerPathParameters extends Object
| Modifier and Type | Class and Description |
|---|---|
static class |
PeptideShakerPathParameters.PeptideShakerPathKey
Enum of the paths which can be set in PeptideShaker.
|
| Constructor and Description |
|---|
PeptideShakerPathParameters() |
| Modifier and Type | Method and Description |
|---|---|
static ArrayList<com.compomics.software.settings.PathKey> |
getErrorKeys()
Returns a list containing the keys of the paths where the tool is not
able to write.
|
static String |
getPathPreference(PeptideShakerPathParameters.PeptideShakerPathKey peptideShakerPathKey)
Sets the path according to the given key and path.
|
static void |
loadPathParametersFromFile(File inputFile)
Loads the path preferences from a text file.
|
static void |
loadPathParametersFromLine(String line)
Loads a path to be set from a line.
|
static void |
setAllPathsIn(String path)
Sets all the paths inside a given folder.
|
static void |
setPathParameters(com.compomics.software.settings.PathKey pathKey,
String path)
Sets the path according to the given key and path.
|
static void |
setPathPreference(PeptideShakerPathParameters.PeptideShakerPathKey peptideShakerPathKey,
String path)
Sets the path according to the given key and path.
|
static void |
writeConfigurationToFile(File file)
Writes all path configurations to the given file.
|
static void |
writeConfigurationToFile(com.compomics.util.io.flat.SimpleFileWriter writer)
Writes the configuration file using the provided buffered writer.
|
static void |
writePathToFile(com.compomics.util.io.flat.SimpleFileWriter writer,
PeptideShakerPathParameters.PeptideShakerPathKey pathKey)
Writes the path of interest using the provided buffered writer.
|
public static void loadPathParametersFromFile(File inputFile) throws FileNotFoundException, IOException
inputFile - the file to load the path preferences fromFileNotFoundException - thrown if an FileNotFoundException occursIOException - thrown if an IOException occurspublic static void loadPathParametersFromLine(String line) throws FileNotFoundException, IOException
line - the line where to read the path fromFileNotFoundException - thrown if an FileNotFoundException occursIOExceptionpublic static String getPathPreference(PeptideShakerPathParameters.PeptideShakerPathKey peptideShakerPathKey) throws IOException
peptideShakerPathKey - the key of the pathFileNotFoundException - thrown if an FileNotFoundException occursIOExceptionpublic static void setPathPreference(PeptideShakerPathParameters.PeptideShakerPathKey peptideShakerPathKey, String path) throws IOException
peptideShakerPathKey - the key of the pathpath - the path to be setFileNotFoundException - thrown if an FileNotFoundException occursIOExceptionpublic static void setPathParameters(com.compomics.software.settings.PathKey pathKey,
String path)
throws IOException
pathKey - the key of the pathpath - the path to be setFileNotFoundException - thrown if an FileNotFoundException occursIOExceptionpublic static void setAllPathsIn(String path) throws FileNotFoundException, IOException
path - the path of the folder where to redirect all paths.FileNotFoundException - thrown if an FileNotFoundException occursIOExceptionpublic static void writeConfigurationToFile(File file) throws IOException
file - the destination fileFileNotFoundException - thrown if an FileNotFoundException occursIOExceptionpublic static void writeConfigurationToFile(com.compomics.util.io.flat.SimpleFileWriter writer)
throws IOException
writer - the writer to use for writing.FileNotFoundException - thrown if an FileNotFoundException occursIOExceptionpublic static void writePathToFile(com.compomics.util.io.flat.SimpleFileWriter writer,
PeptideShakerPathParameters.PeptideShakerPathKey pathKey)
throws IOException
writer - the writer to use for writingpathKey - the key of the path of interestFileNotFoundException - thrown if an FileNotFoundException occursIOExceptionpublic static ArrayList<com.compomics.software.settings.PathKey> getErrorKeys() throws IOException
IOException - exception thrown whenever an error occurred while
loading the path configurationCopyright © 2021. All rights reserved.