Package org.snpeff
Class RegulationFileSplitBytType
java.lang.Object
org.snpeff.RegulationFileSplitBytType
Split regulation files into smaller files (one per 'regulation type')
Regulation files can be quite large and we cannot read them into
memory. Also there might be thousands of different regulation types
We read chunks of BLOCK_SIZE lines at a time to avoid running out of
memory. Note that we cannot open one file descriptor per 'regulation
type' and save each line into it, since we may also run out of file
descriptors.
- Author:
- pcingola
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
setVerbose
(boolean verbose) void
splitFile
(RegulationFileIterator regulationFileIterator, String path) Read a regulation file and split into one file for each "regulation type"
-
Constructor Details
-
RegulationFileSplitBytType
public RegulationFileSplitBytType()
-
-
Method Details
-
getRegFileNames
-
getRegTypes
-
setVerbose
public void setVerbose(boolean verbose) -
splitFile
Read a regulation file and split into one file for each "regulation type"
-