java.lang.Object
ubic.gemma.core.util.matrix.AbstractMatrixReader<M,V>
- Direct Known Subclasses:
DoubleMatrixReader, StringMatrixReader
Abstract class representing an object that can read in a
Matrix2D from a file.
Ported in-tree from ubic.basecode.io.reader.AbstractMatrixReader as part of the baseCode in-tree
migration; previously consumed via the MatrixUtil.fromBaseCode shim.
- Author:
- Paul Pavlidis
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionabstract Mread(InputStream stream) abstract Mabstract MreadHeader(BufferedReader dis, int skipColumns)
-
Field Details
-
log
protected static final org.slf4j.Logger log
-
-
Constructor Details
-
AbstractMatrixReader
public AbstractMatrixReader()
-
-
Method Details
-
read
- Throws:
IOException
-
read
- Throws:
IOException
-
read
- Throws:
IOException
-
readHeader
- Parameters:
dis- input reader positioned at the start of the header lineskipColumns- how many data columns should be ignored- Returns:
- list of column header names (excluding the corner cell)
- Throws:
IOException- on I/O error or malformed header
-