GT#
Interface to read and write graph tool files.
Note
The module utilizes the gt writer/reader from graph_tool.
See also
:mod`ClearMap.Analysis.Graphs`
- class Source(location=None, graph=None, name=None)[source]#
Bases:
Source
GT graph source.
- as_virtual()[source]#
Return virtual source without array data to pass in parallel processing.
Returns
- sourceSource class
The source class without array data.
- property graph#
The underlying graph.
Returns
- graphGraph
The underlying graph of this source.
- property location#
The location where the data of the source is stored.
Returns
- locationstr or None
Returns the location of the data source or None if this source lives in memory only.
- property name#
The name of this source.
Returns
- namestr
Name of this source.
- property shape#
The shape of the source.
Returns
- shapetuple
The shape of the source.
- class VirtualSource(source=None, location=None, name=None)[source]#
Bases:
VirtualSource
- as_virtual()[source]#
Return virtual source without array data to pass in parallel processing.
Returns
- sourceSource class
The source class without array data.
- property graph#
The underlying graph.
Returns
- graphGraph
The underlying graph of this source.
- property name#
The name of this source.
Returns
- namestr
Name of this source.
- property shape#
The shape of the source.
Returns
- shapetuple
The shape of the source.