python - Tree of trees? Table of trees? What kind of data structure have I created? -


i creating python module creates , operates on data structures store lots of semantically tagged data , metadata real experiments. in experiment have:

  • subjects
  • treatments
  • replicates

enclosing these 3 categories experiment, , combinations of 3 categories calling "units". there no inherently correct hierarchy between 3 (table-like) analyses useful think of permutation of 3 hierarchy,

e.g. (subjects-->(treatments-->(replicates)))

or

(replicates-->(treatments-->(subjects)))

moreover, when collecting data, files copy-pasted folder on desktop, data @ least coming in tree. have thought lot hierarchy "better" keep coming use cases of 6 possible permutations. want module flexible in user can think of experiment or collect data using whatever hierarchy, table, hierarchy-table hybrid makes sense them.

also "units" or (table entries) containers arbitrary amounts of data (bytes gigabytes, whatever ideally) of organizational complexity. why didn't think relational database approach way go , nosql type solution makes more sense. have problem of how order 3 categories if none "correct".

so question multifaceted data structure?

does sort of fluid data structure or set of algorithms exist inter-convert or produce structured views?

the short answer hdf5 addresses these common concerns , suggest it. http://www.hdfgroup.org/hdf5/

in python: http://docs.h5py.org/en/latest/high/group.html http://odo.pydata.org/en/latest/hdf5.html

will help.


Popular posts from this blog

c# - ODP.NET Oracle.ManagedDataAccess causes ORA-12537 network session end of file -

matlab - Compression and Decompression of ECG Signal using HUFFMAN ALGORITHM -

utf 8 - split utf-8 string into bytes in python -