Package gorsat.process
Class GorJavaUtilities
java.lang.Object
gorsat.process.GorJavaUtilities
Created by sigmar on 21/12/15.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classstatic classstatic enumstatic classstatic classstatic class -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic DecimalFormatstatic final Stringstatic double[]static String[]static GorJavaUtilities.PRPRValuestatic GorJavaUtilities.PRPRPRValue -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic StringclearHints(String query) static StringcreateMapString(Map<String, String> createMap) static voidcreateSymbolicLink(Path resultPath, Path cachePath) static org.gorpipe.gor.model.GenomicIteratorgetDbIteratorSource(String sqlQuery, boolean gortable, String source, boolean scoping) getIgnoreCase(Collection<String> c, String str) static GorJavaUtilities.PhenoInfogetPhenotype(String phenoHeader, BufferedReader pheno) static booleanstatic booleanstatic String[]mergeArrays(String[] array1, String[] array2) static StringprojectDataReplacement(String projectRoot, String myCommand) static StringprojectReplacement(String myCommand, String projectRoot, String requestId, String securityContext) static StringprojectReplacement(String myCommand, org.gorpipe.gor.session.GorSession session) static Map<String,GorJavaUtilities.CmdParams> readWhiteList(String cmdConfigFile) static Map<String,GorJavaUtilities.CmdParams> readWhiteList(Path cmdConfigPath) static PathresolveWhiteListFilePath(String whiteListFile, Path projectRoot) Helper method to resolve whitelist file path (from config file) to full path.static StringseekReplacement(String myCommand, String chr, int start, int stop) static String[]splitResourceHints(String query, String validStart) static List<org.gorpipe.gor.model.Row>stream2RowList(Stream<org.gorpipe.gor.model.Row> str) static String[]static StringverifyLinkFileLastModified(org.gorpipe.gor.session.ProjectContext projectContext, String cacheFile) wrapObjectArrayIterator(Iterator<Object[]> iterator) Helper method for wrapping Object[] iterator to Stream.static voidwriteDictionaryFromMeta(org.gorpipe.gor.model.FileReader fileReader, String outfolderpath, String dictionarypath)
-
Field Details
-
GORZ_META
- See Also:
-
fd3
-
pArray
public static double[] pArray -
prArray
-
prprFunction
-
prprprFunction
-
-
Constructor Details
-
GorJavaUtilities
public GorJavaUtilities()
-
-
Method Details
-
getPhenotype
-
clearHints
-
splitResourceHints
-
createMapString
-
stream2RowList
-
seekReplacement
-
projectReplacement
public static String projectReplacement(String myCommand, org.gorpipe.gor.session.GorSession session) throws IOException - Throws:
IOException
-
projectReplacement
public static String projectReplacement(String myCommand, String projectRoot, String requestId, String securityContext) throws IOException - Throws:
IOException
-
projectDataReplacement
public static String projectDataReplacement(String projectRoot, String myCommand) throws IOException - Throws:
IOException
-
getDbIteratorSource
-
wrapObjectArrayIterator
Helper method for wrapping Object[] iterator to Stream.- Parameters:
iterator-- Returns:
- Stream where iterator elements are represented as string joined with tab delimiter
-
readWhiteList
-
readWhiteList
public static Map<String,GorJavaUtilities.CmdParams> readWhiteList(String cmdConfigFile) throws IOException - Throws:
IOException
-
resolveWhiteListFilePath
Helper method to resolve whitelist file path (from config file) to full path.If whitelist path is resolved as follows: 1. If input is absolute or empty then it is returned. 2. Search relative for the project directory. 3. If nothing is found we return the input.
- Parameters:
whiteListFile- white list file path, can not be null or emtpy.projectRoot- project root for the current project.- Returns:
- fully resolved path to the whitelist file.
-
getIgnoreCase
-
toUppercase
-
mergeArrays
-
isGorCmd
-
isPGorCmd
-
createSymbolicLink
- Throws:
IOException
-
verifyLinkFileLastModified
-
writeDictionaryFromMeta
public static void writeDictionaryFromMeta(org.gorpipe.gor.model.FileReader fileReader, String outfolderpath, String dictionarypath) throws IOException - Throws:
IOException
-