omicsdata.npz package
Submodules
omicsdata.npz.archive module
- class omicsdata.npz.archive.Archive(fn)[source]
Bases:
objectThis is a derivative of the ‘resultserializer’ file format that’s compatible with the visualization tools provides by Pairtree. This class is used to compress numpy data into an npz file type
- add(name, data)[source]
Adds key, value pair to the archive
- Parameters:
name (str) – The key to store the data under in the archive
data (object) – The data to store in the archive (np.ndarray, list, np.int32, etc.)
- Return type:
None
- get(name)[source]
Gets the value associated with a particular key in the archive
- Parameters:
name (str) – A key to extract from the archive
- Returns:
the data associated with the name input
- Return type:
object