hdmf.common package¶
Subpackages¶
Submodules¶
- hdmf.common.alignedtable module
AlignedDynamicTable
AlignedDynamicTable.category_tables
AlignedDynamicTable.categories
AlignedDynamicTable.add_category
AlignedDynamicTable.get_category
AlignedDynamicTable.add_column
AlignedDynamicTable.add_row
AlignedDynamicTable.get_colnames
AlignedDynamicTable.to_dataframe
AlignedDynamicTable.__getitem__
AlignedDynamicTable.get
AlignedDynamicTable.has_foreign_columns
AlignedDynamicTable.get_foreign_columns
AlignedDynamicTable.get_linked_tables
AlignedDynamicTable.data_type
AlignedDynamicTable.namespace
- hdmf.common.hierarchicaltable module
- hdmf.common.multi module
- hdmf.common.resources module
KeyTable
Key
EntityTable
Entity
FileTable
File
ObjectTable
Object
ObjectKeyTable
EntityKeyTable
EntityKey
ObjectKey
HERD
HERD.keys
HERD.files
HERD.entities
HERD.objects
HERD.object_keys
HERD.entity_keys
HERD.assert_external_resources_equal
HERD.add_ref_container
HERD.add_ref_termset
HERD.add_ref
HERD.get_key
HERD.get_entity
HERD.get_object_type
HERD.get_object_entities
HERD.to_dataframe
HERD.to_zip
HERD.get_zip_directory
HERD.from_zip
HERD.data_type
HERD.namespace
- hdmf.common.sparse module
- hdmf.common.table module
VectorData
VectorIndex
ElementIdentifiers
DynamicTable
DynamicTable.description
DynamicTable.id
DynamicTable.colnames
DynamicTable.columns
DynamicTable.add_row
DynamicTable.add_column
DynamicTable.create_region
DynamicTable.__getitem__
DynamicTable.get
DynamicTable.get_foreign_columns
DynamicTable.has_foreign_columns
DynamicTable.get_linked_tables
DynamicTable.to_dataframe
DynamicTable.generate_html_repr
DynamicTable.from_dataframe
DynamicTable.copy
DynamicTable.data_type
DynamicTable.namespace
DynamicTableRegion
EnumData
Module contents¶
This package will contain functions, classes, and objects for reading and writing data in according to the HDMF-common specification
- hdmf.common.load_type_config(config_path, type_map=None)¶
- This method will either load the default config or the config provided by the path.
NOTE: This config is global and shared across all type maps.
- hdmf.common.get_loaded_type_config(type_map=None)¶
This method returns the entire config file.
- Parameters:
type_map (
TypeMap
) – The TypeMap.
- hdmf.common.unload_type_config(type_map=None)¶
Unload the configuration file.
- Parameters:
type_map (
TypeMap
) – The TypeMap.
- 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, post_init_method=None)¶
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, aws_region=None, herd_path=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 (
TypeMap
orBuildManager
) – the BuildManager or a TypeMap to construct a BuildManager to use for I/Ocomm (
Intracomm
) – the MPI communicator to use for parallel I/Ofile (
File
orS3File
orRemFile
) – a pre-existing h5py.File, S3File, or RemFile objectdriver (
str
) – driver for h5py to use when opening HDF5 fileaws_region (
str
) – If driver is ros3, then specify the aws region of the url.herd_path (
str
) – The path to read/write the HERD file