public class CMPH5FileBase extends HDF5File
Modifier and Type | Field and Description |
---|---|
protected java.lang.String |
file_version |
protected float[] |
movie_frame_rates |
protected java.lang.String[] |
movie_names_info |
protected CMPH5ReadGroupInfo |
read_group_info |
protected java.lang.String |
read_type |
protected java.util.ArrayList<CMPH5ReferenceInfo> |
reference_info |
hdf_file_format, hdf_file_root_group, hdf_file_root_node, MAX_NUM_CACHED_OBJECTS, MAX_NUM_CACHED_OBJECTS_KINETOGRAM
Constructor and Description |
---|
CMPH5FileBase(java.io.File file,
int access,
int num_cached_objects) |
Modifier and Type | Method and Description |
---|---|
void |
clearDataSet(H5ScalarDS dataset)
Clears memory held by the dataset, such as data buffer
|
UIntMatrixArray |
getAlignmentIndexDataChunk(H5ScalarDS dataset,
HDF5HyperslabInfo info)
Reads a chunk of data from alignment index dataset.
|
H5ScalarDS |
getAlignmentIndexDataset()
returns the alignment index dataset
|
AlignmentIndexTable |
getAlignmentIndexTableForContig(java.lang.String contig_id)
Simple method to get cmp.h5 alignment index data for a specific contig.
|
protected H5ScalarDS |
getAlnGroupPathDataset()
returns the aln group path dataset
|
protected int |
getContigIndexFromID(java.lang.String contig_id)
Returns index of contig in cmp.h5 from contig id (ref00001, ref00002...)
|
java.lang.String[] |
getContigNames(boolean full)
Returns list of references in this file.
|
protected java.lang.String |
getFullSequenceName(java.lang.String[] read_group_names,
java.lang.String[] ref_info_full_names,
int[] read_group_ref_info_id,
int read_group_index)
Reads full sequence (contig) name from cmp.h5 metadata
|
protected H5ScalarDS |
getMovieFrameRateDataset()
returns the movie framerate
|
float |
getMovieFrameRateFromMovieID(int index)
public as it is used in cmp.h5 wrapper
|
java.lang.String |
getMovieNameFromMovieID(int index)
public as it is used in cmp.h5 wrapper
|
protected H5ScalarDS |
getMovieNameIDsDataset()
returns the movie name ids
|
protected H5ScalarDS |
getMovieNamesDataset()
returns the movie names
|
long |
getNumRows(H5ScalarDS dataset)
Returns total rows in dataset
|
java.lang.String |
getReadGroupAlignmentIndexPath(int index)
public as it is used in cmp.h5 wrapper
|
UCharMatrixArray |
getReadGroupDataChunk(H5ScalarDS dataset,
HDF5HyperslabInfo info)
Reads a chunk of data from a readgroup dataset.
|
protected H5ScalarDS |
getReadGroupIDDataset()
returns the read group id
|
int |
getReadGroupIndexFromReadGroupValue(int value)
public as it is used in cmp.h5 wrapper
|
java.lang.String |
getReadGroupMetricsPath(int index,
int mode)
Returns path to selected metrics array
|
protected java.lang.String |
getReadGroupNormalizedIPDPath(int index)
Returns path to normalized IPD metrics
|
protected java.lang.String |
getReadGroupPulseWidthPath(int index)
Returns path to Pulse Width metrics
|
protected java.lang.String |
getReadGroupQualityValuePath(int index)
Returns path to QV metrics
|
protected java.lang.String |
getReadGroupRawIPDPath(int index)
Returns path to raw IPD metrics
|
protected H5ScalarDS |
getRefGroupIDDataset()
returns the ref group id dataset
|
protected H5ScalarDS |
getRefGroupPathDataset()
returns the ref group path dataset
|
protected H5ScalarDS |
getRefGroupRefInfoIDDataset()
returns the ref group refinfo id dataset
|
protected H5ScalarDS |
getRefInfoFullNamesDataset()
returns the refinfo fullname
|
protected H5ScalarDS |
getSortedRefIndexDataset()
returns the sorted ref index dataset
|
boolean |
isStrobeReadType()
ReadType attribute
|
boolean |
isVersion1_3()
Version specific tags
|
boolean |
isVersion2_0()
Version specific tags
|
boolean |
isVersionAtLeast1_2()
Version specific tags
|
protected void |
readCmpH5ReferenceInfo()
reads reference info from file and stores in local arraylist
|
java.lang.String |
toString() |
protected void |
updateMovieInfoFromMovieIDs()
reads movie ids and eventually update table of movie names and frame rates
|
createEmptyDataset, createFilledDataset, createGroup, dispose, getAllAttributes, getAllChildDatasets, getAllChildGroups, getAttributeFloatValues, getAttributeLongValues, getAttributeStringValues, getChildDataset, getChildGroup, getDataset, getDatasetChunkInfo, getDatasetHyperslabInfo, getDataStreamFromDataset, getFileHandle, getFilePath, getGroup, getNamedRootObject, getUCharDataChunk, getUIntDataChunk, readDatasetHyperslab, readUnsignedDatasetHyperslab, testPrintDatasetInfo, writeChunkToDataset, writeStringAttribute, writeUIntAttribute
protected java.lang.String file_version
protected java.lang.String read_type
protected java.util.ArrayList<CMPH5ReferenceInfo> reference_info
protected CMPH5ReadGroupInfo read_group_info
protected java.lang.String[] movie_names_info
protected float[] movie_frame_rates
public CMPH5FileBase(java.io.File file, int access, int num_cached_objects) throws HDF5ExceptionEx
file
- the path to the file to open or createaccess
- mode: FileFormat.READ, FileFormat.WRITE, FileFormat.CREATEHDF5ExceptionEx
protected void readCmpH5ReferenceInfo()
protected void updateMovieInfoFromMovieIDs()
public void clearDataSet(H5ScalarDS dataset)
dataset
- protected java.lang.String getFullSequenceName(java.lang.String[] read_group_names, java.lang.String[] ref_info_full_names, int[] read_group_ref_info_id, int read_group_index) throws HDF5Exception
read_group_ref_info_id
- ref_info_full_names
- read_group
- HDF5Exception
public AlignmentIndexTable getAlignmentIndexTableForContig(java.lang.String contig_id)
contig_index
- index of selected contigstart
- end
- public long getNumRows(H5ScalarDS dataset)
dataset
- the dataset to search for lastRowpublic java.lang.String[] getContigNames(boolean full)
full
- if false returns sequence id (ref00001..) if true returns full sequence name (chr1..)protected int getContigIndexFromID(java.lang.String contig_id)
contig_id
- contig we want to retrieve indexpublic UIntMatrixArray getAlignmentIndexDataChunk(H5ScalarDS dataset, HDF5HyperslabInfo info)
ncsa.hdf.object.ScalarDS.convertFromUnsignedC()
public UCharMatrixArray getReadGroupDataChunk(H5ScalarDS dataset, HDF5HyperslabInfo info)
ncsa.hdf.object.ScalarDS.convertFromUnsignedC()
public java.lang.String getReadGroupMetricsPath(int index, int mode)
index
- mode
- protected java.lang.String getReadGroupQualityValuePath(int index)
index
- protected java.lang.String getReadGroupRawIPDPath(int index)
index
- protected java.lang.String getReadGroupNormalizedIPDPath(int index)
index
- protected java.lang.String getReadGroupPulseWidthPath(int index)
index
- public java.lang.String getReadGroupAlignmentIndexPath(int index)
public int getReadGroupIndexFromReadGroupValue(int value)
public java.lang.String getMovieNameFromMovieID(int index)
public float getMovieFrameRateFromMovieID(int index)
public boolean isVersionAtLeast1_2()
public boolean isVersion1_3()
public boolean isVersion2_0()
public boolean isStrobeReadType()
protected H5ScalarDS getSortedRefIndexDataset()
protected H5ScalarDS getRefGroupIDDataset()
protected H5ScalarDS getRefGroupPathDataset()
protected H5ScalarDS getRefGroupRefInfoIDDataset()
protected H5ScalarDS getAlnGroupPathDataset()
protected H5ScalarDS getReadGroupIDDataset()
public H5ScalarDS getAlignmentIndexDataset()
protected H5ScalarDS getMovieNamesDataset()
protected H5ScalarDS getMovieNameIDsDataset()
protected H5ScalarDS getMovieFrameRateDataset()
protected H5ScalarDS getRefInfoFullNamesDataset()
Copyright © 2010-2014 Pacific Biosciences. All Rights Reserved.