Package ffx.utilities

Class TinkerUtils

java.lang.Object
ffx.utilities.TinkerUtils

public class TinkerUtils extends Object
A collection of Utility methods for compatibility with Tinker.
Since:
1.0
Author:
Michael J. Schnieders
  • Method Details

    • parseTinkerAtomList

      public static List<Integer> parseTinkerAtomList(List<String> tokens, int offset, int maxEntries)
      Parse a Tinker selection list. No checking is done to make sure range i
      Parameters:
      tokens - A list of tokens to parse.
      offset - A constant offset that is added to each selected integer (i.e. an offset of -1 will index atoms from 0 to n-1).
      maxEntries - The maximum number of entries to parse (e.g. "4 -9 17 23" is 3 entries). A value less than 1 includes all entries.
      Returns:
      A list of selected integers.
    • previousVersion

      public static File previousVersion(File file)
      Get the previous file based on the TINKER scheme.
      Parameters:
      file - Root file.
      Returns:
      New File created previously to the passed file.
    • version

      public static File version(File file)
      This follows the TINKER file versioning scheme.
      Parameters:
      file - File to find a version for.
      Returns:
      File Versioned File.