public final class DownloadUtil extends Object
| Modifier and Type | Field and Description |
|---|---|
static String |
DOWNLOAD_LIST
Name of the file holding the list of pipeline files to include when running
DownloadUtil |
| Modifier and Type | Method and Description |
|---|---|
protected static List<File> |
buildDownloadList(Collection<File> files)
Add files to "downloadList.txt" in pipeline root directory.
|
protected static String |
getClusterUser()
If System.user.home is a file path (like /usr/home/johnDoe), return last directory name (johnDoe).
|
protected static org.apache.commons.io.filefilter.IOFileFilter |
getDirFilter(boolean includeOutput,
boolean includeScript,
boolean includeTemp)
Get a directory name filter to include module sub-directories.
|
static String |
getDownloadCmd()
If running on cluster, build command for user to download pipeline analysis.
|
static String |
getDownloadDirPath()
Get validated
Config. if running on cluster, otherwise return null |
static File |
getDownloadListFile()
Get the download list file.
|
protected static List<BioModule> |
getDownloadModules()
Get the modules to download.
|
protected static BigInteger |
getDownloadSize(List<File> files)
Get the total size of all files included for download.
|
protected static File |
makeRunAllScript(List<BioModule> modules)
This script allows a user to run all R scripts together from a single script.
|
public static final String DOWNLOAD_LIST
DownloadUtilpublic static String getDownloadCmd() throws Exception
The pipeline analysis is extracted from the last module output directory (except Email).
Download target = ModuleUtil.getDownloadDir() on the local workstation.
Example download command: scp -rp johnDoe@myUniversity.usa.edu:"dir1, dir2, file1"
/Users/johnDoe/projects/downloads
public static String getDownloadDirPath()
Config. if running on cluster, otherwise return nullpublic static File getDownloadListFile()
protected static List<File> buildDownloadList(Collection<File> files) throws Exception
files - - files to add to the download listException - if errors occurprotected static String getClusterUser()
protected static org.apache.commons.io.filefilter.IOFileFilter getDirFilter(boolean includeOutput,
boolean includeScript,
boolean includeTemp)
includeOutput - include the output directoryincludeScript - include the script directoryincludeTemp - include the temp directoryprotected static List<BioModule> getDownloadModules()
AddMetadataToTaxaTables
AddMetadataToPathwayTables
JsonReport
R_Module
R_PlotEffectSize and
Config.="N"
include additional modules:
protected static BigInteger getDownloadSize(List<File> files)
files - List of download files