public class AbstractTagsHDF5
extends AbstractTags
Basic implementations of HDF5 tags. This is designed to annotate tags with a bunch of attributes, to solve the memory issues
protected ch.systemsx.cisd.hdf5.IHDF5Writer h5
protected int currentBlockIndex
protected int currentIndex
public int getBlockSize()
Returns the size of HDF5 block
public int getBlockNum()
Returns the number of block
public int getBlockIndex(int tagIndex)
Returns the block index based on the tag index in a full list
tagIndex - as the query tag index in the full listpublic int getCurrentBlockIndex()
Returns current block index
public int getCurrentIndex()
Returns current index
public int getCurrentIndexWithinBlock()
Returns current index relative to current block
protected void initializeMatrix(int tagCount,
int tagLengthInLong)
Initialize tag matrix
tagCount - tagLengthInLong - public boolean isInCurrentBlock(int queryIndex)
Return boolean value if an index belongs to current block
queryIndex - public ch.systemsx.cisd.hdf5.HDF5IntStorageFeatures getIntStorageFeatures()
Returns default deflation level of boolean, byte, short, int, long, Enum See class Tassel5HDF5Constants
class Tassel5HDF5Constantspublic ch.systemsx.cisd.hdf5.HDF5GenericStorageFeatures getGenericStorageFeatures()
Returns default deflation level of String and Class See class Tassel5HDF5Constants
class Tassel5HDF5Constantspublic ch.systemsx.cisd.hdf5.HDF5FloatStorageFeatures getFloatStorageFeatures()
Returns default deflation level of float and double See class Tassel5HDF5Constants
class Tassel5HDF5Constantspublic void sort()
public void swap(int index1,
int index2)
public void writeToFasta(java.lang.String outfileS)
public void initializeHDF5(java.lang.String inputFileS)
Initialize a HDF5 file
inputFileS - public void readHDF5(java.lang.String hdf5FileS)
Read in HDF5 file
hdf5FileS - public void populateBlock(int blockIndex)
Populate a block in memory with default values, update current block index at the same time
blockIndex - public void readBlock(int blockIndex)
Read in a block from HDF5 file
blockIndex - public void writeBlock(int blockIndex)
Write current block to HDF5 file
blockIndex -