Package org.snpeff.fileIterator
Class GuessTableTypes
java.lang.Object
org.snpeff.fileIterator.GuessTableTypes
Given a table in a TXT file, try to guess the value types for each column
- Author:
- pcingola
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionboolean
String[]
boolean[]
Get field typegetTypes()
Get an array of types (ordered by column)Guess data type for this valueboolean
Find column names form header and guess data types from valuesisMultipleValues
(String fieldName) Has this field multiple valuesboolean
void
setColumnSeparator
(String columnSeparator) void
setSubfieldSeparator
(String subfieldSeparator) toString()
-
Field Details
-
debug
public static boolean debug -
MIN_LINES
public static int MIN_LINES
-
-
Constructor Details
-
GuessTableTypes
-
-
Method Details
-
foundAllTypes
public boolean foundAllTypes() -
getFieldNames
-
getFileName
-
getMultipleValues
public boolean[] getMultipleValues() -
getNames2index
-
getType
Get field type- Parameters:
fieldName
-- Returns:
-
getTypes
Get an array of types (ordered by column)- Returns:
-
guessType
Guess data type for this value- Parameters:
value
-- Returns:
-
guessTypes
public boolean guessTypes()Find column names form header and guess data types from values- Returns:
- true of OK, false if there was an error parsing header or data
-
isMultipleValues
Has this field multiple values- Parameters:
fieldName
-- Returns:
-
parsedHeader
public boolean parsedHeader() -
setColumnSeparator
-
setSubfieldSeparator
-
toString
-