public class GlobalParams
extends java.lang.Object
When this class file gets loaded it checks to see if it can see itself at ./edu/dartmouth/bglab/GlobalParams.class"
. If so,
relative path names are used. If not, we are probably in Tomcat's runtime environment on hydra, so the absolute path names for hydra are
used. If you are on a computer other than hydra and need to execute the command-line program from somewhere other than the
scope
directory, you should edit line 29 of this file, along with scope/data/params/absolutePaths.param
, so
that the absolute links reflect your directory structure.
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
DEFAULT_PARAM_FILE |
static java.lang.String |
FIELD_SEPARATOR |
private static java.lang.String |
ROOT |
Constructor and Description |
---|
GlobalParams() |
Modifier and Type | Method and Description |
---|---|
static java.lang.String |
classpath()
classpath, with absolute paths
|
static java.lang.String |
geneFileRoot() |
static java.lang.String |
join(java.lang.String d,
java.util.Collection<java.lang.String> c)
join items in a collection into a delimited String
|
static java.lang.String |
log4jProps() |
static java.lang.String |
logFileRoot() |
static java.lang.String |
motifFileRoot() |
static java.lang.String |
objFileRoot() |
static java.lang.String |
paramFileRoot() |
static java.lang.String |
root() |
static java.lang.String |
seqFileRoot() |
static void |
setRoot(java.lang.String dir)
Sets the root directory (usually "SCOPE"), where the data/, src/ and tempDownloads/ are immediate sub-directories.
|
static java.lang.String |
tempDownloadDir() |
public static final java.lang.String DEFAULT_PARAM_FILE
public static final java.lang.String FIELD_SEPARATOR
private static java.lang.String ROOT
public static java.lang.String classpath()
public static java.lang.String geneFileRoot()
public static java.lang.String join(java.lang.String d, java.util.Collection<java.lang.String> c)
d
- delimiterc
- list of Strings to joinpublic static java.lang.String log4jProps()
public static java.lang.String logFileRoot()
public static java.lang.String motifFileRoot()
public static java.lang.String objFileRoot()
public static java.lang.String paramFileRoot()
public static java.lang.String root()
public static java.lang.String seqFileRoot()
public static void setRoot(java.lang.String dir)
public static java.lang.String tempDownloadDir()