hdf5array package¶
Submodules¶
hdf5array.Hdf5CompressedSparseMatrixSeed module¶
- class hdf5array.Hdf5CompressedSparseMatrixSeed.Hdf5CompressedSparseMatrix(path, group_name, shape, by_column, **kwargs)[source]¶
Bases:
DelayedArrayCompressed sparse matrix in a HDF5 file as a
DelayedArray.
- class hdf5array.Hdf5CompressedSparseMatrixSeed.Hdf5CompressedSparseMatrixSeed(path, group_name, shape, by_column, dtype=None, index_dtype=None, data_name=None, indices_name=None, indptr_name=None)[source]¶
Bases:
objectCompressed sparse matrix stored in a HDF5 file, represented as a
DelayedArrayseed.This assumes that there are three datasets;
datacontaining the data values,indicescontaining the indices, andindptrcontaining the pointers to the start of every row/column.- property group_name: str | None¶
Returns: Name of the HDF5 group containing the matrix contents, or None if the matrix is not contained within a single group.
- property index_dtype: <property object at 0x7f7e24ccfe20>¶
Returns: NumPy type of the indices in this matrix.
- hdf5array.Hdf5CompressedSparseMatrixSeed.chunk_grid_Hdf5CompressedSparseMatrixSeed(x)[source]¶
See
chunk_grid().The cost factor is set to 20 to reflect the computational work involved in extracting data from disk.
- hdf5array.Hdf5CompressedSparseMatrixSeed.extract_dense_array_Hdf5CompressedSparseMatrixSeed(x, subset)[source]¶
See
extract_dense_array().- Return type:
- hdf5array.Hdf5CompressedSparseMatrixSeed.extract_sparse_array_Hdf5CompressedSparseMatrixSeed(x, subset)[source]¶
See
extract_sparse_array().- Return type:
- hdf5array.Hdf5CompressedSparseMatrixSeed.is_masked_Hdf5CompressedSparseMatrixSeed(x)[source]¶
See
is_masked().- Return type:
- hdf5array.Hdf5CompressedSparseMatrixSeed.is_sparse_Hdf5CompressedSparseMatrixSeed(x)[source]¶
See
is_sparse().
- hdf5array.Hdf5CompressedSparseMatrixSeed.to_scipy_sparse_matrix_from_Hdf5CompressedSparseMatrix(x, format='csc')[source]¶
See
delayedarray.to_scipy_sparse_matrix.to_scipy_sparse_matrix().- Return type:
hdf5array.Hdf5DenseArraySeed module¶
- class hdf5array.Hdf5DenseArraySeed.Hdf5DenseArray(path, name, **kwargs)[source]¶
Bases:
DelayedArrayHDF5-backed dataset as a
DelayedArraydense array.This subclass allows developers to implement custom methods for HDF5-backed arrays.
- __annotations__ = {}¶
- class hdf5array.Hdf5DenseArraySeed.Hdf5DenseArraySeed(path, name, dtype=None, native_order=False)[source]¶
Bases:
objectHDF5-backed dataset as a
DelayedArraydense array seed.
- hdf5array.Hdf5DenseArraySeed.chunk_grid_Hdf5DenseArraySeed(x)[source]¶
See
chunk_grid().The cost factor is set to 20 to reflect the computational work involved in extracting data from disk.
- hdf5array.Hdf5DenseArraySeed.extract_dense_array_Hdf5DenseArraySeed(x, subset)[source]¶
See
extract_dense_array().- Return type: