hdmf.common package¶
Subpackages¶
Submodules¶
- hdmf.common.alignedtable module
AlignedDynamicTableAlignedDynamicTable.category_tablesAlignedDynamicTable.categoriesAlignedDynamicTable.add_categoryAlignedDynamicTable.get_categoryAlignedDynamicTable.add_columnAlignedDynamicTable.add_rowAlignedDynamicTable.get_colnamesAlignedDynamicTable.to_dataframeAlignedDynamicTable.__getitem__AlignedDynamicTable.getAlignedDynamicTable.has_foreign_columnsAlignedDynamicTable.get_foreign_columnsAlignedDynamicTable.get_linked_tablesAlignedDynamicTable.data_typeAlignedDynamicTable.namespace
- hdmf.common.hierarchicaltable module
- hdmf.common.multi module
- hdmf.common.resources module
KeyTableKeyResourceTableResourceEntityTableEntityObjectTableObjectObjectKeyTableObjectKeyExternalResourcesExternalResources.keysExternalResources.resourcesExternalResources.entitiesExternalResources.objectsExternalResources.object_keysExternalResources.get_keyExternalResources.get_resourceExternalResources.add_refExternalResources.get_object_resourcesExternalResources.get_keysExternalResources.to_dataframeExternalResources.export_to_sqliteExternalResources.data_typeExternalResources.namespace
- hdmf.common.sparse module
- hdmf.common.table module
VectorDataVectorIndexElementIdentifiersDynamicTableDynamicTable.descriptionDynamicTable.idDynamicTable.colnamesDynamicTable.columnsDynamicTable.add_rowDynamicTable.add_columnDynamicTable.create_regionDynamicTable.__getitem__DynamicTable.getDynamicTable.get_foreign_columnsDynamicTable.has_foreign_columnsDynamicTable.get_linked_tablesDynamicTable.to_dataframeDynamicTable.from_dataframeDynamicTable.copyDynamicTable.data_typeDynamicTable.namespace
DynamicTableRegionEnumData
Module contents¶
This package will contain functions, classes, and objects for reading and writing data in according to the HDMF-common specification
- hdmf.common.register_class(data_type, namespace='hdmf-common', container_cls=None)¶
- Register an Container class to use for reading and writing a data_type from a specification
If container_cls is not specified, returns a decorator for registering an Container subclass as the class for data_type in namespace.
- hdmf.common.register_map(container_cls, mapper_cls=None)¶
- Register an ObjectMapper to use for a Container class type
If mapper_cls is not specified, returns a decorator for registering an ObjectMapper class as the mapper for container_cls. If mapper_cls specified, register the class as the mapper for container_cls
- hdmf.common.load_namespaces(namespace_path)¶
Load namespaces from file
- hdmf.common.available_namespaces()¶
- hdmf.common.get_class(data_type, namespace)¶
Get the class object of the Container subclass corresponding to a given neurdata_type.
- hdmf.common.get_type_map(extensions=None)¶
- Get a BuildManager to use for I/O using the given extensions. If no extensions are provided,
return a BuildManager that uses the core namespace
- hdmf.common.get_manager(extensions=None)¶
- Get a BuildManager to use for I/O using the given extensions. If no extensions are provided,
return a BuildManager that uses the core namespace
- hdmf.common.validate(io, namespace='hdmf-common', experimental=False)¶
Validate an file against a namespace
- hdmf.common.get_hdf5io(path=None, mode='r', manager=None, comm=None, file=None, driver=None)¶
A convenience method for getting an HDF5IO object using an HDMF-common build manager if none is provided.
- Parameters
mode (
str) – the mode to open the HDF5 file with, one of (“w”, “r”, “r+”, “a”, “w-”, “x”). See h5py.File for more details.manager (
TypeMaporBuildManager) – the BuildManager or a TypeMap to construct a BuildManager to use for I/Ocomm (Intracomm) – the MPI communicator to use for parallel I/O
file (
Fileor S3File) – a pre-existing h5py.File objectdriver (
str) – driver for h5py to use when opening HDF5 file