Giotto's core object that encapsulates all the components of a spatial-omic project and facilitates analyses.
Details
[initialize]
The giotto class has a robust initialize() method that is automatically
called upon setting data into the object, updates of
the giottoInstructions, and loading of saved objects.
It performs the following steps:
Update the object and subobjects for class definition changes if needed
Ensure a set of
giottoInstructionsare available, otherwise generate defaultsEnsure a giotto python environment is accessible when the options giotto.has_conda and giotto.use_conda are TRUE
Check the active spat_unit and feat_type
Ensure spatial/cell ID consistency and initialize the cell_ID and feat_ID slots for the active spat_unit and feat_type, as well as cell and feature metadata if they do not exist. Values for IDs and metadata are pulled from any existing data in spatial_info/feat_info or expression slots, with a preference for the latter.
Perform slot-specific and hierarchical checks that ensure dependent pieces of information are only added AFTER the data that they depend on and that existing information is consistent across slots.
Object validity checking
Slots
expressionexpression information
expression_featThe different features or modalities such as rna, protein, metabolites, ... that are provided in the expression slot.
spatial_locsspatial location coordinates for cells/spots/grids
spatial_infoinformation about spatial units (Giotto spatVector)
cell_metadatametadata for cells
feat_metadatametadata for available features
feat_infoinformation about features (Giotto spatVector)
cell_IDunique cell IDs
feat_IDunique feature IDs for all features or modalities
spatial_networkspatial network in data.table/data.frame format
spatial_gridspatial grid in data.table/data.frame format
spatial_enrichmentslot to save spatial enrichment-like results
dimension_reductionslot to save dimension reduction coordinates
nn_networknearest neighbor network in igraph format
imagesslot to store giotto image objects
parametersslot to save parameters that have been used
instructionsslot for global function instructions
offset_fileoffset file used to stitch together image fields
versionsgiotto object metadata and versioning info
join_infoinformation about joined Giotto objects
multiomicsmultiomics integration results
h5_filepath to h5 file
