multiassayexperiment.io package¶
Submodules¶
multiassayexperiment.io.h5ad module¶
- multiassayexperiment.io.h5ad.read_h5ad(path)[source]¶
Create a
MultiAssayExperiment
from a H5AD file.This function reads the h5ad at the
path
usingread_h5ad()
and converts it into an MAE usingfrom_anndata()
.- Parameters:
path (
str
) – Path to a H5AD file- Return type:
- Returns:
An MAE from the H5ad file.
multiassayexperiment.io.interface module¶
- multiassayexperiment.io.interface.make_mae(experiments)[source]¶
Create an
MultiAssayExperiment
from a dictionary of experiment objects. Each experiment is either anAnnData
object or a subclass ofSummarizedExperiment
.AnnData
objects will be converted to aSingleCellExperiment
.The import naively creates sample mapping, with each
experiment
considered to be a independent sample. We add a sample tocol_data
in this pattern -unknown_sample_{experiment_name}
. All cells from the same experiment are considered to be from the same sample and is reflected insample_map
.- Parameters:
experiments (
Dict
[str
,Any
]) –A dictionary of experiments with experiment names as keys and the experiments as values.
Each
experiment
can be either aAnnData
object or a subclass ofSummarizedExperiment
.- Raises:
If any of the provided objects are not an expected types. - If
experiments
is not a dictionary.
- Return type:
- Returns:
An MAE from the experiments.