Package ffx.algorithms.commands
Class ForEachFile
java.lang.Object
ffx.utilities.FFXCommand
ffx.algorithms.cli.AlgorithmsCommand
ffx.algorithms.commands.ForEachFile
Run an FFX command on a series of files. Parallel Java across nodes is supported.
Recursion through the directory structure is supported to a supplied level using the --recurse flag (0 only includes the current directory).
Files can be selected using a regular expression -- the default matches all files (".*").
To control placement of the variable file on the command line, the "FILE" string can be used. If
present, it is replaced with the current file. If absent, the current file is last argument
to the FFX command.
Usage:
ffxc ForEachFile [ForEachFile options] Command [Command options] <FILE> [<FILE2>]
-
Field Summary
Fields inherited from class ffx.algorithms.cli.AlgorithmsCommand
activeAssembly, algorithmFunctions, algorithmListener, baseDirFields inherited from class ffx.utilities.FFXCommand
args, binding, color, help, logger, parseResult, version -
Constructor Summary
ConstructorsConstructorDescriptionForEachFile Constructor.ForEachFile(FFXBinding binding) ForEachFile Constructor.ForEachFile(String[] args) ForEachFile constructor that sets the command line arguments. -
Method Summary
Modifier and TypeMethodDescriptionReturns a List of all Potential objects associated with this script.run()Execute this Command.Methods inherited from class ffx.algorithms.cli.AlgorithmsCommand
destroyPotentials, getActiveAssemblies, getActiveAssembly, getPotentialsFromAssemblies, init, saveDirFile, setBaseDir, updateTitleMethods inherited from class ffx.utilities.FFXCommand
getCommand, helpString, listCommands, setBinding
-
Constructor Details
-
ForEachFile
public ForEachFile()ForEachFile Constructor. -
ForEachFile
ForEachFile Constructor.- Parameters:
binding- The Binding to use.
-
ForEachFile
ForEachFile constructor that sets the command line arguments.- Parameters:
args- Command line arguments.
-
-
Method Details
-
run
Execute this Command.- Overrides:
runin classFFXCommand- Returns:
- The current FFXCommand.
-
getPotentials
Description copied from class:AlgorithmsCommandReturns a List of all Potential objects associated with this script.- Overrides:
getPotentialsin classAlgorithmsCommand- Returns:
- All Potentials. Sometimes empty, never null.
-